CentOS 5 :: Control Groups To Limit The Memory Usage?

Aug 13, 2011

I was looking into using control groups to limit the memory usage of each user on my CentOS system. I was told that this required me to recompile the kernel to have cgroup support. Is this true? Or is there a kernel module that will allow cgroups to work for users and groups on the system without kernel re-compile? Or, is there another way to limit the users memory usage? I have tried ulimit and it doesn't seem to work right.

I ask since this setup will be on a VPS system, that means to re-compile the kernel I need to use Xen instead of OpenVZ. Plus I have never in my life re-compiled the kernel, least of all with different modules ha ha ha so I would have to pay my NOC to do it. So if I don't HAVE to recompile the kernel to get cgroup support.

View 2 Replies


ADVERTISEMENT

General :: Limit The Memory Usage Of A Specific Process?

Apr 24, 2010

I've written a program for a class that my professor will be testing in various low memory environments to see how it behaves when the program runs out of memory. Is there a way I can simulate the execution in a low memory environment without creating a virtual machine?

View 1 Replies View Related

CentOS 5 :: Limit The Ram Usage Up To 4GB?

Aug 18, 2010

I need to limit the ram usage under the below scenario,

" having 8GB of ram, need to limit the ram usage up to 4GB, thereafter must use swap only"

View 3 Replies View Related

CentOS 5 :: Memory Usage - How To Read Those Numbers Exactly At Top

Jul 14, 2010

My Centos PC has got 1 gig of rams. I'm running a webserver with 2 websites and a mysql service. also i need to start two other programs, which uses ~300-350 mbs/each. My memory usage without them is around 450-500 without them. It was 100MB~ free with everything i need on a sec ago. I've refreshed those two sites and it was ~50 left. SO what, site refresh for each user takes 20 megabytes or something? Is there any way to lower the overall usage without turning off mysql, apache and the two other programs? If there is how? And about number read, it says in the top command on mem like 4.4, 1.2, 2.0, etc.

What does that mean? I thought it's like 2.0=20 megabytes, but it doesn't add up to 450-500 then. And by the way, swap memory is 0kb. I have no possibility adding more rams except paying more 5 dollars a month for another 512. 5$/month is a lot for me (sounds funny)? Check out my country, you'll have to rethink. Especially being a student with no possibility to find a job). As for webhostings, i cannot find anything for free, that I could host my wehsites with ping less than 100 actually. Or <80 if say, then it's php memory limit is too low for my WP blog needs.

View 12 Replies View Related

Server :: Limit The Suphp User Memory Limit?

May 12, 2010

I have a VPS server with 512 MB memory. The php.ini is set so script memory limit = 16 MB. However, I have noticed in my top report, instances like the following:

Quote:

5484 coldclim 25 0 46476 32m 5920 R 0.0 6.4 0:00.93 php

The bold number of 6.4 is the % of sever memory this process is using. 6.4 % of 512 MB of memory is about 32 MB of memory, so it appears that this isn't being limited by php.ini. Am I correct? This leads to the next question: Is there some way to limit the amount of memory a single suphp process can use? (Basically, something like the setting in php.ini which limits suphp processes in the same way.)

View 2 Replies View Related

General :: Status Of Memory Usage And Disk Usage Using Sigar In Windows And Ubuntu

Mar 15, 2010

I was trying to get the status of memory usage and disk usage using sigar in windows and ubuntu. done this in windows by just copying the sigar library into jdk library. But i was unable to do so in ubuntu. I've copied the library to java-6-sun library but still can't run the program.

View 14 Replies View Related

General :: Ubuntu - Memory Full, Process Memory Usage Doesn't Add Up In Top?

Mar 18, 2011

I have a computer with 16GB of ram. At the moment, top shows all the RAM is taken, (NOT by cache), but the RAM used by the various processes is very far from 16GB.I have seen this problem several times, but I don't understand what is happening.My only remedy so far has been to reboot the machine.

View 1 Replies View Related

Software :: Free Database That Has Low Memory Usage And Innodb And Memory Like Engin

May 3, 2011

I am looking for free database that has low memory usage and innodb and memory like engins that has C API and support trigger and client/server support for using in embedded linux systems.

View 8 Replies View Related

Ubuntu Servers :: IPsec - Limit Users Or Groups

Jun 22, 2011

I successfully configured a VPN using IPSec(Openswan) and xl2ptd. While roughly following this guide (among countless others): [URL]

The VPN-Connection works fine, connecting to it is also a swirl, I can reach all that I want in the network, and also the gateway to the Internet works - everything being routed through that VPN.

Now my problem is actually the next steps, and I didn't succeed finding the right result on any possible search:

a) I want to limit, that the VPN-Connection is only used for distinct connections to hosts, that aren't in a "company subnet", but the IP's are publicly available. (Example: The Target-IP 8.8.8.8 allows per iptables, that only my VPN-Host 1.2.3.4 accesses it via SSH, and thus I only can access that Target-IP via SSH when I'm on the VPN). When actually browsing to the ubuntu-website, I want, that NOT the VPN-Connection is used but rather my normal connection (as a reference: i'm on a Windows-Client - not my choice, btw.)

b) I want to have several such "limitations" grouped, and give users 'access-rights' to certain hosts (Examples: Admin gets access to all on all ports Testers get access to some machines on distinct ports CEO gets access only to the mailserver via POP3 or IMAP

View 1 Replies View Related

Red Hat / Fedora :: Get The Value Of CPU Usage - Memory Usage ?

Jan 13, 2009

I am sure that all of us know the result of top command in linux. i want to get the value that the top command return as CPU usage, memory usage. so how do i do(programming relation)?

View 3 Replies View Related

Server :: "free" Shows Far More Memory Usage Than Summing Up Application Usage?

Aug 6, 2010

I've come across a really strange issue with one of my RHEL servers. The "free" command shows that 7019 MB of memory are actually in use by my system, but when summing up the actual usage (or even virtual usage like the example below) it doesn't add up - the sum is far less than what is reported by "free":

Code:

[root@server1 ~]# free -m
total used free shared buffers cached
Mem: 12011 7946 4065 0 4 23
-/+ buffers/cache: 7919 4092

[code]....

View 2 Replies View Related

Ubuntu :: Limit CPU To 75% Of Usage

Apr 1, 2011

Everytime CPU reaches around 85% of maximum it shuts down due to overheating. What I want to do is be able to throttle the cpu to 75% so it never goes above that. I don't want to just throttle individual programs which I think is what CPULimit does right? The fans are failing but I can't afford to get fixed. I just want to use it for email and web browsing usually.

I have cleaned dust out, use in a well ventilated room, use a cooling stand etc but still when CPU gets to approx 85% then whala it shuts itself down. Have been using with XP but just switched to Ubuntu and have only had it shut down once so far.

View 3 Replies View Related

General :: Way To Limit CPU Usage For Some Process?

Sep 21, 2009

I'm writing a shell script which aims to create a safe gtared (xxx.sql.gz) copy of MySQL databases.This script is planned to be Cron-Jobed.

Well, what I need to add to this shell, is something that limit CPU usage for the whole process (just in case if the database being generating is a huge one.)So, after few time of googling I found couple of solutions:

- Using cpulimit.
I tried to place the code in Position(1) and Position(2) but it didn't seem to be working fine.. Any idea about the right use?

And the other Solution is:- Using nice.

Well, assuming I named my shell script (sqlbacker)..

Finally, this is my first time I ever write a shell, so correct me if somewhere I made a mistake :-)
(The script itself works perfectly)

View 6 Replies View Related

General :: Need To Limit CPU Usage Of Process

Jan 26, 2010

There's a disfunctional process eating copious cpu time.Is there a way to effectively assign it a high nice value? I need to do this whenever it runs, for whatever reason, and I can't be bothered to track down all the scripts and scenarios that cause it to run and change the script to use nice. And I can't be bothered to manually run renice whenever I notice that it's running.

I want the OS to automatically assign a high nice value to this process, perhaps based on the processes name. Is this possible?Presumably, a cron job could run every 5 minutes and run "renice" on every process matching a given name, but I'm hoping for a solution with more finess.

View 2 Replies View Related

Ubuntu :: How To Limit Bandwidth Usage For Updates

Dec 13, 2010

I recently read a windows tip which read: - Windows allots 20% of the bandwidth by default for various services like Windows update, spyware checks etc. We can get hold of this bandwith by changing the values of limit reserve bandwidth under QOS packet scheduler. Now my questions: How to limit the bandwidth usage used by ubuntu updates in the above lines?

View 4 Replies View Related

Debian :: Limit The Bandwith Usage For Each User On Server?

Jan 7, 2011

I have a webserver with a few users on and i wonder how i can limit the bandwith usage for each user on my server ?

View 1 Replies View Related

General :: How To Limit Printer Usage By Samba Server

Dec 4, 2010

How can I limit printer usage by SAMBA server?

View 6 Replies View Related

Security :: Limit Incoming HTTP Bandwidth Usage With IPtables

Apr 5, 2011

Can I, with only the use of IPTABLES, limit the incoming bandwith for a protocol? We have for example servers that have a FTP and HTTP server running and whenever HTTP has a lot of connections open, the other uploads/downloads get a timeout. I know I can limit the number of connections but prefer to limit on protocol level. Is this possible using IPTABLES and if so, can someone indicate how to proceed or provide a link? If it's not possible can someone point me to the right tool for the job?

View 6 Replies View Related

General :: Physical And Virtual Memory Upper Limit For 32 Bit?

Jun 26, 2010

I have a 32 bit Ubuntu installed and my Laptop has 4GB RAM, but only 3GB is considered by Linux. My question is: what is the reason for the upper limit on physical memory ?

Code:
dmesg | grep Memory [0.000000] Memory: 3052428k/3112960k available (4673k kernel code, 56364k reserved, 2121k data, 656k init, 2200904k highmem) I am familiar with the virtual memory concept where linux splits upper 1GB for kernel and lower 3GB for user processes. In total, linux 32bit can address 4GB virtual addresses. Does this meant that 1GB of physical memory is already mapped to 1GB of kernel space and Linux only shows the remaining 3GB physical memory left for the user in the above command.

I did some searching on the internet and found some articles related to this, but it only confused me further since some articles suggest 4GB is the upper limit with mentioning whether it's virtual or physical memory, some bring in the concept of PAE, etc. I'm relative new to Linux's memory management, so it'd be really helpful if someone could answer this.

View 4 Replies View Related

Slackware :: Limit For Maximum Amount Of Locked Memory?

May 9, 2011

When I run ardour sound editing I get this message , but it starts ok Your system has a limit for maximum amount of locked memory! This might cause Ardour to run out of memory before your system runs out of memory. You can view the memory limit with 'ulimit -l', and it is normally controlled by /etc/security/limits.conf

bash-4.1$ ulimit -l
64
my limits.conf is like this
audio - rtprio 99
@audio - memlock 250000

[Code]...

View 2 Replies View Related

Debian Hardware :: How To Limit Access Flash Memory For Users

Dec 22, 2014

How to limit access flash memory (read / write) for users on debian?

View 2 Replies View Related

Fedora Installation :: Options Which Will Allow To Exceed The I386 Memory Limit?

Jun 25, 2010

I presently have Fedora 12 running on a Dell Optiplex with a Pentium 4 CPU. I want to buy a new computer, probably from Dell, I don't completely understand the options I have available for which Fedora 13 will run.I more or less understand what 64 bit means since I also have an HP with an AMD 64 bit processor. But are there other options which will allow me to exceed the i386 memory limit? How about dual processors?

I used to understand CPU architecture pretty well, but i've lost track of more recent developments. Can anyone recommend a primer of CPU types, including assoicated memory limits? Similarly, I would like to be sure that Fedora 13 will run on whatever machine I decide to get. So a list of available processors, which are equivalent to which, and which Fedora 13 has been tested on,

View 7 Replies View Related

Ubuntu :: 10.04 64-bit Using Over 1GB Memory Usage?

May 11, 2010

Is this normal? I check system monitor and the top most is xorg followed by compiz. When I first started with 10.04 few days ago it was around 300-500MB.

View 3 Replies View Related

Programming :: How To Get Usage Of CPU Memory?

Jan 11, 2009

i am wondering How to get usage of CPU, Memory in linux environment? So would you able to tell me the ways?

View 10 Replies View Related

Red Hat :: Red Hat Box Involving Memory Usage

Jun 2, 2010

I am having a few problems with a red hat box involving memory usage. I have 64Gb memory and 'top' tells me I'm using 60Gb of it, but if I add up all the '%MEM' figures I get no more than 20%. Where is the other 80% ?

We have an ORACLE instance that is using shared memory but this is ceilinged at 45Gb. That means there is about 15Gb unnaccounted for . What utilities can I use on red hat to ascertain memory usage other than 'top' ? Any better ones, more detailed, looking at shared memory etc and swap ?

View 2 Replies View Related

General :: Control The Cpu Usage For The Whole System?

Jul 12, 2010

I want to control the limit of cpu usage of the whole system to a certain percentage, similar to cap the VCPU usage of a virtual machine. Is it possible?

View 4 Replies View Related

Ubuntu Servers :: Consequences Of Giving PHP Scripts A High Memory Limit?

May 28, 2010

I have an Ubuntu server running in our small office. Among its many duties is report generation. It uses PHP and DOMPDF (a PHP library for converting HTML/CSS to PDFs for printing). PHP's default memory limit of 32MB is not even close to being enough to pull large amounts of data from the database and generate images/tables/PDFs with that data.

I increased the memory limit to 64MB and that is adequate for reports under 3 pages or so (varies based on table complexity, images, etc). If any user tries to generate a report longer than that, PHP just throws a "out of memory" error and doesn't make the report.

My question is: what are the possible consequences of increasing the memory limit yet again to 128MB or maybe even higher? The server isn't terribly powerful. It has 2GB RAM and 4GB swap space. I know that isn't much but this is a small office and at most I can only see two or three people trying to run reports at the same time. As for security, apache is currently only serving pages in the local network, but sometime within the next year I'll probably have it hosting a public website (currently using a hosting service). Is a high memory limit a potential security risk when exposed to the internet?

EDIT: Sorry, PHP's default memory limit is 16 not 32 as I said. Question still stands, however

View 5 Replies View Related

Programming :: Why Different Signals Send To Programs That Exceeded Memory Limit Set By Setrlimit()?

Sep 2, 2010

I'm having a problem with setrlimit() under linux.

If i used setrlimit(RLIMIT_AS) to set a hard ceiling of virtual memory usage first, then request memory more than that, shouldn't i receive a signal like SIGSEGV?

First i tried the command ulimit in bash, which acted as if i called setrlimit(). i tried 3 programs that overflowed the memory limit i set. i though all the programs would be terminated by a SIGSEGV. but the pascal program received SIGKILL; the C++ program got SIGABRT› the C program, SIGSEGV.

I though there maybe something different between setrlimit() and ulimit, so i wrote a program in C++, fork() first, setrlimit() then execv() in the child, and wait(&status) in the parent. but i got the same result.

I was wondering why these could happen, and could anyone tell me how could i deal with them? i mean, how can i judge that the program exited abnormally because it exceed memory limit?

View 2 Replies View Related

Fedora :: Memory Usage Isn't Adding Up

Sep 17, 2009

I'm trying to understand the performance of my machine and memory usage just isn't adding up. When I run top it will typically show 301M of 308M used but the total of everything in the RES column is no where near 300M and the total of %MEM column isn't more than 20-30%. So how do I figure out what is using all the memory? Then is there some way to control it to optimize performance?

View 3 Replies View Related

General :: TOP Command Memory Usage?

Apr 13, 2011

Under SuSE, (Mem: 31908592k total, 31421504k used,) how do i know which process or program using my memory?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved