On Sat, 24 Feb 2007 18:29:32 -0500 Richard Troth <[EMAIL PROTECTED]> wrote:
> Alan Cox spake: > > ... > > you can also turn it off and > > do zero overcommit policies. > > Tell me more! > Specifically, is there a particular sysctl for zero overcommit? On Red Hat 2.4 RHEL kernels and upstream in 2.6 (so 2.6 in general) you have [from memory] /proc/sys/vm/overcommit_memory 0 Heuristic (fail obviously stupid allocations) 1 Anything goes 2 No overcommit beyond RAM + 50 % swap (2.6 overcommit_memory% of swap) 3 (RHEL 2.4 only), No overcommit beyond swap (for 2.6 use 2 and set overcommit_memory to 0) On later kernels also /proc/sys/vm/overcommit_memory Limit of allocated user space memory is swap + this value % of RAM - default 50, for any large amount of RAM you can set much higher. Alan ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
