kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Kernel memory leak
@ 2014-06-28  6:59 Santhosh Kumar
  2014-06-28  9:21 ` Anil Shashikumar Belur
  0 siblings, 1 reply; 2+ messages in thread
From: Santhosh Kumar @ 2014-06-28  6:59 UTC (permalink / raw)
  To: kernelnewbies

I am suspecting a memory leak in a kernel module that does layer 2
switching of data packets.

In the vmstat -m output the Num and Total keeps going up for the
kmalloc-512..

kmalloc-512               15232  15264    512     16

Is this a clear indication of leak in the kernel or can there be false
positives ?

Is there a way to trace the allocations of memory from different buckets of
kmalloc ?

-Santhosh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140627/171e5636/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Kernel memory leak
  2014-06-28  6:59 Kernel memory leak Santhosh Kumar
@ 2014-06-28  9:21 ` Anil Shashikumar Belur
  0 siblings, 0 replies; 2+ messages in thread
From: Anil Shashikumar Belur @ 2014-06-28  9:21 UTC (permalink / raw)
  To: kernelnewbies


On Saturday 28 June 2014 12:29 PM, Santhosh Kumar wrote:
>
> Is there a way to trace the allocations of memory from different buckets of
> kmalloc ?
You could try out kmemleak -
https://www.kernel.org/doc/Documentation/kmemleak.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-28  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-28  6:59 Kernel memory leak Santhosh Kumar
2014-06-28  9:21 ` Anil Shashikumar Belur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).