Re: [PATCH] strict VM overcommit for stock 2.4
From: Szakacsits Szabolcs <hidden>
Date: 2002-07-18 17:31:15
Also in:
lkml
From: Szakacsits Szabolcs <hidden>
Date: 2002-07-18 17:31:15
Also in:
lkml
On 18 Jul 2002, Robert Love wrote:
I do not see anything in this email related to the issue at hand.
You solve a problem and introduce a potentially more serious one. Strict overcommit is requisite but not satisfactory.
Specifically, what livelock situation are you insinuating? If we only allow allocation that are met by the backing store, we cannot get anywhere near OOM.
This is what I would do first [make sure you don't hit any resource,
malloc, kernel memory mapping, etc limits -- this is a simulation that
must eat all available memory continually]:
main(){void *x;while(1)if(x=malloc(4096))memset(x,666,4096);}
When the above used up all the memory try to ssh/login to the box as
root and clean up the mess. Can you do it?
Szaka
--
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-mm.org/