Hello,
I was able to do this by allocating alot of memory via malloc and making sure it was commited by touching every single page allocated.
Also make sure you do "echo 1 >/proc/sys/vm/overcommit_memory" to allow memory overcommit. (read linux/Documentation/vm/overcommit-accounting)
-Aman
On 9/26/05, Andre Luiz da Silva <andrack@xxxxxxxxx> wrote:
Hello Friends!
I'm studyind some things about VM in Linux, and I was read in other place, that the
oom_kill.c is the best point to start.
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.
The only form that I obtained an "out_of_memory", was calling the command:
"rpm" at the bash shell in a infinite loop (the poor form). ;-)
Some suggestion?
Thanks!
(sure for my poor english...)