Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760309Ab1D0XxK (ORCPT ); Wed, 27 Apr 2011 19:53:10 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:36154 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753669Ab1D0XxI (ORCPT ); Wed, 27 Apr 2011 19:53:08 -0400 MIME-Version: 1.0 In-Reply-To: References: <20110425214933.GO2468@linux.vnet.ibm.com> <20110426081904.0d2b1494@pluto.restena.lu> <20110426112756.GF4308@linux.vnet.ibm.com> <20110426183859.6ff6279b@neptune.home> <20110426190918.01660ccf@neptune.home> <20110427081501.5ba28155@pluto.restena.lu> <20110427204139.1b0ea23b@neptune.home> <20110427222727.GU2135@linux.vnet.ibm.com> From: Linus Torvalds Date: Wed, 27 Apr 2011 16:46:16 -0700 Message-ID: Subject: Re: 2.6.39-rc4+: Kernel leaking memory during FS scanning, regression? To: Thomas Gleixner Cc: "Paul E. McKenney" , =?ISO-8859-1?Q?Bruno_Pr=E9mont?= , Ingo Molnar , Peter Zijlstra , Mike Frysinger , KOSAKI Motohiro , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, "Paul E. McKenney" , Pekka Enberg Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1061 Lines: 25 On Wed, Apr 27, 2011 at 4:28 PM, Linus Torvalds wrote: > > We _know_ it didn't run continuously for 950ms. That number is totally > made up. There's not enough work for it to run that long, but more > importantly, the thread has zero CPU time. There is _zero_ reason to > believe that it runs for long periods. Hmm. But it might certainly have run for a _total_ of 950ms. Since that's just under a second, we wouldn't see it in the "ps" output. Where is rt_time cleared? I see that subtract in do_sched_rt_period_timer(), but judging by the caller that is only called for some timer overrun case (I didn't look at what the definition of such an overrun is, though). Shouldn't rt_time be cleared when the task goes to sleep voluntarily? What am I missing? Linus -- 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/