linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* RE: KPATCH] Reserve VM for root (was: Re: Looking for better VM)
@ 1997-01-02  6:21 pavel-velo
  2000-11-16 15:01 ` Szabolcs Szakacsits
  0 siblings, 1 reply; 7+ messages in thread
From: pavel-velo @ 1997-01-02  6:21 UTC (permalink / raw)
  To: Szabolcs Szakacsits, Rik van Riel
  Cc: linux-kernel, linux-mm, Linus Torvalds, Ingo Molnar

Hi!

   >I've also never said OOM killer should be disabled. In theory the
   >non-overcommitting systems deadlock, Linux survives. Ironically
   >usually it's just the opposite in practice. Any user can
   >deadlock/crash Linux [default install, no quotas] but not an
   >non-overcommitting system [root can clean up]. Here is an example code
   >"simulating" a leaking daemon that will "deadlock" Linux even with
   >your OOM killer patch [that is anyway *MUCH* better than the actually
   >non-existing one in 2.2.x kernels]:
   >
   >main() { while(1) if (fork()) malloc(1); }
   >
   >With the patch below I could ssh to the host and killall the offending
   >processes. To enable reserving VM space for root do 

what about main() { while(1) system("ftp localhost &"); }

This. or so,ething similar should allow you to kill your machine even with your
patch from normal user account

														Pavel

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-11-18 20:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-02  6:21 KPATCH] Reserve VM for root (was: Re: Looking for better VM) pavel-velo
2000-11-16 15:01 ` Szabolcs Szakacsits
2000-11-16 15:51   ` Rik van Riel
2000-11-16 16:03     ` Christoph Hellwig
2000-11-16 16:05       ` Rik van Riel
2000-11-16 21:33     ` Szabolcs Szakacsits
2000-11-18 20:49   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox