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

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

 



Hi,

There is a good website that explains about Overcommit
and OOM.

http://www.win.tue.nl/~aeb/linux/lk/lk-9.html

You can also change the main memory size through the
boot string (I use grub) to speed up the OOM. For
instance, on my laptop with 1GB of RAM memory I put
mem=128M to reduce system memory.

BR,

Mauricio Lin.


--- Andre Luiz da Silva <andrack@xxxxxxxxx> escreveu:

> Hello Wei!
> 
>
http://www.cnet.com/Resources/Info/Glossary/Terms/imho.html
> 
> 
> Thanks!
> 
> On 9/30/05, Wei Wang <weiwang0227@xxxxxxxxx> wrote:
> >
> >
> >
> > 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/
> > >
> > >
> >
> 



	



	
		
_______________________________________________________ 
Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons e muito mais. Instale agora! 
www.yahoo.com.br/messenger/

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