
REGISTER TODAY!
LOPSA Training at OLFUNavigationEvents
Recent Updates |
Example of using "ulimit" to limit memory usageSubmitted by Aleksey Tsalolikhin on Wed, 2009-04-01 21:28.Unix
ulimit can be used to limit memory utilization (among other things) Here is an example of setting memory usage so low that /bin/ls (which is larger than /bin/cat) no longer works, but /bin/cat still works. $ ls -lh /bin/ls /bin/cat Note: If I set the limits to 1000 kilobytes, neither program works, because they load libraries, which increase their size. above 1000 KB. -d data segment size -m max memory size -v virtual memory size Run ulimit -a to see all the resource caps ulimits can set. Trackback URL for this post:http://lopsa.org/trackback/1755
Aleksey Tsalolikhin's blog | add new comment | 5147 reads
|
|||||||||||||||||||||||||||||||||||||||||||||||||