public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Galbraith <efault@gmx.de>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>,
	"nmeyers@vestmark.com" <nmeyers@vestmark.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Major slab mem leak with 2.6.17 / GCC 4.1.1
Date: Mon, 16 Oct 2006 09:33:35 +0000	[thread overview]
Message-ID: <1160991215.17131.26.camel@Homer.simpson.net> (raw)
In-Reply-To: <b0943d9e0610160144y2a432683s886c1a19b33a91ee@mail.gmail.com>

On Mon, 2006-10-16 at 09:44 +0100, Catalin Marinas wrote:
> On 16/10/06, Mike Galbraith <efault@gmx.de> wrote:
> > On Mon, 2006-10-16 at 09:07 +0100, Catalin Marinas wrote:
> > > Kmemleak introduces some overhead but shouldn't be that bad.
> > > DEBUG_SLAB also introduces an overhead by erasing the data in the
> > > allocated blocks.
> >
> > 2.6.18 with your rc6 patch booted normally with stack unwind enabled.
> 
> The only difference is that kmemleak now uses save_stack_trace() to
> generate the call chain. In the previous versions I implemented a
> simple stack backtrace myself, with the disadvantage that it only
> worked on ARM and x86.
> 
> I think kmemleak should use the common stack trace API and investigate
> why it is slower (either save_stack_trace is slower with stack unwind
> enabled or kmemleak doesn't use these functions properly).

The stack traces look fine without unwind, and at a glance looked fine
with unwind as well, so I speculate you must be using save_stack_trace
properly.  The only difference I noticed was the incredible speed
difference.  I gave up on getting to run level 5 with unwind, getting to
level 2 took ages, and the box was horribly slow at everything.

	-Mike


  reply	other threads:[~2006-10-16  9:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-13  0:49 Major slab mem leak with 2.6.17 / GCC 4.1.1 nmeyers
2006-10-13  5:56 ` Pekka Enberg
2006-10-13 11:59   ` Catalin Marinas
2006-10-15  7:59     ` Mike Galbraith
2006-10-15 14:14       ` nmeyers
2006-10-15 17:59         ` Mike Galbraith
2006-10-18 13:59           ` Nathan Meyers
2006-10-16  5:32       ` Mike Galbraith
2006-10-16  8:07         ` Catalin Marinas
2006-10-16  9:08           ` Mike Galbraith
2006-10-16  8:44             ` Catalin Marinas
2006-10-16  9:33               ` Mike Galbraith [this message]
2006-10-13  8:25 ` Mike Galbraith
2006-10-13 10:55   ` nmeyers
2006-10-13 21:28     ` Mike Galbraith

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=1160991215.17131.26.camel@Homer.simpson.net \
    --to=efault@gmx.de \
    --cc=catalin.marinas@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nmeyers@vestmark.com \
    --cc=penberg@cs.helsinki.fi \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox