The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Monitoring a single process in solaris jayana SUN Solaris 3 05-30-2008 11:35 PM
upper limit of accessible memory space for a single process in Unix/Linux cy163 UNIX for Dummies Questions & Answers 1 04-30-2007 07:09 AM
Process using the most memory janet AIX 5 03-22-2006 02:33 AM
Memory in Use by a process khopdi Shell Programming and Scripting 0 10-18-2005 11:59 AM
Memory used by a process luft UNIX for Dummies Questions & Answers 3 08-18-2005 03:27 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-29-2007
Registered User
 

Join Date: Mar 2005
Posts: 74
mamimum memory single process

How can i Globally set the maximum core memory a single process can take. IE, i want to set that no single process may get more than 11GB.

I am running red hat enterprise unix 4.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-29-2007
awk awk is offline
Registered User
 

Join Date: Feb 2007
Posts: 115
Don't know if Red Hat has this command, but see if it has "ulimit"

On solaris, it is the -v parameter

-v maximum size of virtual memory (in kbytes)
Reply With Quote
  #3 (permalink)  
Old 10-31-2007
Registered User
 

Join Date: Mar 2005
Posts: 74
max memory

ulimit is specific to bash on red hat linux. and i don't need to limit virtual memory i need to limit actual memory usage by a task. And i also need to limit it globally, not on a task by task basis. Red hat has so far responded with the following:

There is an option to limit the rss usage by a process for a given user using /etc/security/limits.conf, but I found references that it does not work as expected.

I am escalating this to a senior engineer for further investigation, you should get an update soon.
Reply With Quote
  #4 (permalink)  
Old 10-31-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by frankkahle View Post
core memory
Do you mean physical silicon memory rather than virtual spilled over into swap?

How big is your machine?
Reply With Quote
  #5 (permalink)  
Old 10-31-2007
Registered User
 

Join Date: Mar 2005
Posts: 74
equipment

Quote:
Originally Posted by porter View Post
Do you mean physical silicon memory rather than virtual spilled over into swap?

How big is your machine?
The machine is a dual opteron system with 12GB of ram and 20GB of swap configured. I want to prevent a single process from getting more than lets say 90% of ram. (maybe max around 10GB). I have one user running a development progrm which has grown to 14.3Gb on this machine which really killed the machines ability to do stuff.
Reply With Quote
  #6 (permalink)  
Old 10-31-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by frankkahle View Post
I have one user running a development progrm which has grown to 14.3Gb on this machine which really killed the machines ability to do stuff.
14.3Gb

Is it a Java environment that is not running a garbage collector?
Reply With Quote
  #7 (permalink)  
Old 10-31-2007
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,573
Quote:
Originally Posted by porter View Post
14.3Gb

Is it a Java environment that is not running a garbage collector?
We had a similar kind of issue recently

but not 14.3 GB, that was around 3 GB

where there were construction of too many hash maps.
when drilled down to the solving the problem; we diagnosed that after using the hash components we made sure we deleted the contents in the hash one by one .

Well, that's a quite an easy one to address and resolve.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0