lkml.org 
[lkml]   [1996]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Out of memory for ... - suggestion
Date
In article <Pine.LNX.3.91.960730125803.1050B-100000@localhost>,
Bernhard Kaindl <bartelt@computerhaus.at> wrote:
>Is it possible to add a config option for disabling virtual memory over-
>commitment and therefore disabling the need to kill random processes?
>Thanks! I would like to have one, so I can trust my system again...

I wrote some code to do this in 1.2, but with a.out shared libraries
its just not possible. With 2.0 and ELF it is doable if you want to write
to code to track committed virtual address space then you should be able
to add the stuff needed.

Just watch ptrace as it provides an additional "suprise" way to overcommit
memory (the fork bomb using ptrace to alter each page of code space can
be very funny on some 'no overcommit' systems).

Alan
--
--------------------------------.----------------------------------------------
UKUU free UUCP Project Swansea | Alan Cox, <alan.cox@linux.org>
+44 1792 422028 (Cabletel) | Custom Linux Software Projects.
Sonix 33.6K 24x7 | Linux Consultancy. Linux Networking.

\
 
 \ /
  Last update: 2005-03-22 13:37    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site