Out of memory vs memory leak

2010-01-08 Thread Anand Raj Manickam
I have a few doubts regarding Out of Memory . 1.Does memory leak in the kernel always lead to OOM ? 2. I wrote a kernel test module testing the memory leak , which on exit kmallocs exit_module () { while(1) kmalloc((8*1024),GFP_KERNEL); } so when i rmmod test , the kernel never

Re: Out of memory vs memory leak

2010-01-08 Thread Anand Raj Manickam
I have a few doubts regarding Out of Memory . 1.Does memory leak in the kernel always lead to OOM ? 2. I wrote a kernel test module testing the memory leak , which on exit kmallocs exit_module () { while(1) kmalloc((8*1024),GFP_KERNEL); } so when i rmmod test , the kernel never panicked

Re: Out of memory vs memory leak

2010-01-08 Thread Bernd Petrovitsch
On Don, 2010-01-07 at 20:34 +0530, Anand Raj Manickam wrote: I have a few doubts regarding Out of Memory . 1.Does memory leak in the kernel always lead to OOM ? If the leaking code is occasionally used, it's just a question of time. 2. I wrote a kernel test module testing the memory leak ,

Re: Out of memory vs memory leak

2010-01-08 Thread Manish Katiyar
On Thu, Jan 7, 2010 at 8:34 PM, Anand Raj Manickam anan...@gmail.com wrote: I have a few doubts regarding Out of Memory  . 1.Does memory leak in the kernel always lead to OOM ? 2. I wrote a kernel  test module testing the memory leak , which on exit kmallocs exit_module () {   while(1)  

Re: Out of memory vs memory leak

2010-01-08 Thread Mulyadi Santosa
Hi... I saw that others had replied your questions with good answers, so probably I just add something... On Thu, Jan 7, 2010 at 10:04 PM, Anand Raj Manickam anan...@gmail.com wrote: I have a few doubts regarding Out of Memory  . 1.Does memory leak in the kernel always lead to OOM ? sooner