All of lore.kernel.org
 help / color / mirror / Atom feed
From: Justin Schoeman <justin@expertron.co.za>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Tracing memory leaks (slabs) in 2.6.9+ kernels?
Date: Thu, 03 Mar 2005 14:19:23 +0200	[thread overview]
Message-ID: <422700CB.2070109@expertron.co.za> (raw)
In-Reply-To: <20050302012444.4ed05c23.akpm@osdl.org>

OK - I have the patch working now, but there seems to be a flaw in the 
address reporting. When I look up the reported address in 
/proc/kallsyms, then look in the objdump of the module, the reported 
adress _does_not_ point to a call.

Am I missing something simple here?

Justin

Andrew Morton wrote:
> Justin Schoeman <justin@expertron.co.za> wrote:
> 
>>I am having a problem with memory leaking on a patched kernel.  In order 
>> to pinpoint the leak, I would like to try to trace the allocation points 
>> for the memory.
>>
>> I have found some vague references to patches that allow the user to 
>> dump the caller address for slab allocations, but I cannot find the 
>> patch itself.
>>
>> Can anybody please point me in the right direction - either for that 
>> patch, or any other way to track down leaking slabs?
> 
> 
> 
> From: Manfred Spraul <manfred@colorfullife.com>
> 
> With the patch applied,
> 
> 	echo "size-4096 0 0 0" > /proc/slabinfo
> 
> walks the objects in the size-4096 slab, printing out the calling address
> of whoever allocated that object.
> 
> It is for leak detection.
...

  parent reply	other threads:[~2005-03-03 12:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-02  8:17 Tracing memory leaks (slabs) in 2.6.9+ kernels? Justin Schoeman
2005-03-02  9:24 ` Andrew Morton
2005-03-02 13:32   ` OGAWA Hirofumi
2005-03-02 16:32     ` Andrew Morton
2005-03-02 19:46       ` Manfred Spraul
2005-03-03 12:19   ` Justin Schoeman [this message]
2005-03-03 12:26     ` Andrew Morton
2005-03-04  7:48       ` Justin Schoeman
2005-03-04  7:56         ` Andrew Morton
2005-03-02  9:31 ` Alexander Nyberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=422700CB.2070109@expertron.co.za \
    --to=justin@expertron.co.za \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.