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 on OOM , but it
panicked on the page allocation stat (sorry for not attaching the
dump)
Does the kernel differentiate between a Memory Leak and a Out of
memory situation ?

Google didnt help me in the releation between memory leak and OOM .

Thanks,
Anand

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to