[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Oom Killer - How to simulate an "out_of_memory"?



Hi,

On Mon, 26 Sep 2005 09:24:40 -0300
Andre Luiz da Silva <andrack@xxxxxxxxx> wrote:

> I user space, I'm tried to simulate an "out_of_memory" creating a
> simple program
> that call sometimes the funcion malloc (with the swap space
> desactived), but I I did
> not have much success.

Try:

$ tail -f /dev/zero

Will eat all memory until OOM killer kills it.

Sincerly,

Thomas
-- 
PETAZZONI Thomas - thomas.petazzoni@xxxxxxxx 
http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni@xxxxxxxxx
http://{agenda,livret}dulibre.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

Attachment: pgp00006.pgp
Description: PGP signature