Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Amount of swap/virtual memory a process is allowed to use

Status
Not open for further replies.

pneely

MIS
Apr 3, 2001
23
US
I'm running Solaris 2.5.1 on Ultra II's with 1gb of RAM and 1.5Gb of swap. I'm wondering if there is a setting/configuration that would set the amount of swap a process is allowed to use or is that all handled by the program/application ?
 
You can limit the memory a process can use (via ulimit), which would indirectly limit the swap space.
 
Thanks....
So, if I wanted to limit the amount of swap "all" processes can use down to 400mb I would use;
ulimit -v 400000 (in kbytes)

Can it be set for only certain processes that are giving us problems...(memory leaks) ?


 
I'm not aware of any way to do this by process... processes inherit this from the parent shell. You could write a wrapper shell for a specific process that sets ulimit within the wrapper.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top