Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754896Ab1D3JOT (ORCPT ); Sat, 30 Apr 2011 05:14:19 -0400 Received: from mail-qy0-f181.google.com ([209.85.216.181]:47547 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754360Ab1D3JOQ convert rfc822-to-8bit (ORCPT ); Sat, 30 Apr 2011 05:14:16 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=i3Ln6tOAHscECTv/x/FysCayaIZueRELJVWMOs6dPY/U2JXBAIQYqYhUwRhdyGeGvg XK+X4kNIr3PovQ06VKeb2uiVsCCuNuzioExy7WZWYGB8Z8Y36e1aoVbXfuHXF6DtFInP CEoMWbppPiGQremGx9Kwl3ip50yO3gzYuLzlI= MIME-Version: 1.0 Reply-To: sedat.dilek@gmail.com In-Reply-To: <20110429221450.5af5d22b@neptune.home> References: <20110426112756.GF4308@linux.vnet.ibm.com> <20110426183859.6ff6279b@neptune.home> <20110426190918.01660ccf@neptune.home> <20110427081501.5ba28155@pluto.restena.lu> <20110427204139.1b0ea23b@neptune.home> <20110428102609.GJ2135@linux.vnet.ibm.com> <1303997401.7819.5.camel@marge.simson.net> <20110428222301.0b745a0a@neptune.home> <20110428224444.43107883@neptune.home> <1304027480.2971.121.camel@work-vm> <20110429213100.75f771eb@neptune.home> <20110429221450.5af5d22b@neptune.home> Date: Sat, 30 Apr 2011 11:14:15 +0200 Message-ID: Subject: Re: 2.6.39-rc4+: Kernel leaking memory during FS scanning, regression? From: Sedat Dilek To: =?UTF-8?Q?Bruno_Pr=C3=A9mont?= Cc: Thomas Gleixner , john stultz , Mike Galbraith , "Paul E. McKenney" , Linus Torvalds , Ingo Molnar , Peter Zijlstra , Mike Frysinger , KOSAKI Motohiro , LKML , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, "Paul E. McKenney" , Pekka Enberg Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2302 Lines: 55 On Fri, Apr 29, 2011 at 10:14 PM, Bruno Prémont wrote: > On Fri, 29 April 2011 Thomas Gleixner wrote: >> On Fri, 29 Apr 2011, Bruno Prémont wrote: >> > On Fri, 29 April 2011 Thomas Gleixner wrote: >> > > On Thu, 28 Apr 2011, john stultz wrote: >> > > > On Thu, 2011-04-28 at 23:04 +0200, Thomas Gleixner wrote: >> > > > > /me suspects hrtimer changes to be the real culprit. >> > > > >> > > > I'm not seeing anything on right off, but it does smell like >> > > > e06383db9ec591696a06654257474b85bac1f8cb would be where such an issue >> > > > would crop up. >> > > > >> > > > Bruno, could you try checking out e06383db9ec, confirming it still >> > > > occurs (and then maybe seeing if it goes away at e06383db9ec^1)? >> > > > >> > > > I'll keep digging in the meantime. >> > > >> > > I found the bug already. The problem is that sched_init() calls >> > > init_rt_bandwidth() which calls hrtimer_init() _BEFORE_ >> > > hrtimers_init() is called. >> > > >> > > That was unnoticed so far as the CLOCK id to hrtimer base conversion >> > > was hardcoded. Now we use a table which is set up at hrtimers_init(), >> > > so the bandwith hrtimer ends up on CLOCK_REALTIME because the table is >> > > in the bss. >> > > >> > > The patch below fixes this, by providing the table statically rather >> > > than runtime initialized. Though that whole ordering wants to be >> > > revisited. >> > >> > Works here as well (applied alone), /proc/$(pidof rcu_kthread)/sched shows >> > total runtime continuing to increase beyond 950 and slubs continue being >> > released! >> >> Does the CPU time show up in top/ps as well now ? > > Yes, it does (currently at 0:09 in ps for 9336.075 in > /proc/$(pidof rcu_kthread)/sched) > > Thanks, > Bruno > Just FYI: The patch is now in mainline (2.6.39-rc5-git3). - Sedat - [1] http://git.us.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ce31332d3c77532d6ea97ddcb475a2b02dd358b4 [2] http://www.kernel.org/diff/diffview.cgi?file=/pub/linux/kernel/v2.6/snapshots/patch-2.6.39-rc5-git3.bz2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/