2012-05-09 06:27:41

by Pekka Enberg

[permalink] [raw]
Subject: Re: Kmemleak feature

On Tue, 8 May 2012, Anbu Manikandan wrote:
> I am very much interested in learning about kmemleak feature in linux
> 3.0-RT kernel.
> I have already read the kmemleak document (Documentation/kmemleak.txt)
> provided in the kernel source.
>
> Furthermore, I would like to understand the internal functionality of
> kmemleak source code.
> Could you please share some documents, links or presentations to
> understand the kmemleak internal functionality?

Catalin is the main author of kmemleak. I'm not aware of such
presentations.

> One more thing, I have tried kmemleak test module in an ARM Target
> board(CortexA9 SMP Dual core Board) with 3.0-RT kernel and found that
> memory leak entries are not properly shown in
> sys/kernel/debug/kmemleak file.
> Instead of getting 25 memory leak entries in
> /sys/kernel/debug/kmemleak file, I have got only 5 memory leaks
> entries.
> May be the other memory leaks are called as false negatives as per the
> kmemleak document.
> Please suggest some way to overcome this problem.

I'm CC'ing LKML.

Pekka


2012-05-09 08:38:09

by Catalin Marinas

[permalink] [raw]
Subject: Re: Kmemleak feature

On Wed, May 09, 2012 at 07:27:28AM +0100, Pekka Enberg wrote:
> On Tue, 8 May 2012, Anbu Manikandan wrote:
> > I am very much interested in learning about kmemleak feature in linux
> > 3.0-RT kernel.
> > I have already read the kmemleak document (Documentation/kmemleak.txt)
> > provided in the kernel source.
> >
> > Furthermore, I would like to understand the internal functionality of
> > kmemleak source code.
> > Could you please share some documents, links or presentations to
> > understand the kmemleak internal functionality?
>
> Catalin is the main author of kmemleak. I'm not aware of such
> presentations.

There was one last year at LinuxCon in Prague:

https://events.linuxfoundation.org/images/stories/pdf/lceu11_marinas.pdf

--
Catalin