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

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

 





BTW: Perego, what is the meaning of "IMHO" :-P

On 9/26/05, Perego Paolo Franco <p.perego@xxxxxxxx> wrote:
You can malloc() inside an infinite loop... IMHO is good to simulate a memory emergency situation.

Ciao ciao
sp0nge



________________________________

Da: kernelnewbies-bounce@xxxxxxxxxxxx per conto di Andre Luiz da Silva
Inviato: lun 26/09/2005 14.24
A: kernelnewbies@xxxxxxxxxxxx
Oggetto: Oom Killer - How to simulate an "out_of_memory"?


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...)

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux