Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751816AbZIXKiB (ORCPT ); Thu, 24 Sep 2009 06:38:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751389AbZIXKh4 (ORCPT ); Thu, 24 Sep 2009 06:37:56 -0400 Received: from cmpxchg.org ([85.214.51.133]:40667 "EHLO cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751386AbZIXKhz (ORCPT ); Thu, 24 Sep 2009 06:37:55 -0400 Date: Thu, 24 Sep 2009 12:37:18 +0200 From: Johannes Weiner To: Mel Gorman Cc: KOSAKI Motohiro , KOSAKI Motohiro , Andrew Morton , Christoph Lameter , LKML , linux-mm@kvack.org, Lee Schermerhorn , Hugh Dickins Subject: Re: a patch drop request in -mm Message-ID: <20090924103718.GA8316@cmpxchg.org> References: <2f11576a0909210800l639560e4jad6cfc2e7f74538f@mail.gmail.com> <20090921152219.GQ12726@csn.ul.ie> <20090924092903.B648.A69D9226@jp.fujitsu.com> <20090924090923.GA8800@csn.ul.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090924090923.GA8800@csn.ul.ie> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3051 Lines: 78 Hi, On Thu, Sep 24, 2009 at 10:09:23AM +0100, Mel Gorman wrote: > On Thu, Sep 24, 2009 at 09:40:34AM +0900, KOSAKI Motohiro wrote: > > > On Tue, Sep 22, 2009 at 12:00:51AM +0900, KOSAKI Motohiro wrote: > > > > Mel, > > > > > > > > Today, my test found following patch makes false-positive warning. > > > > because, truncate can free the pages > > > > although the pages are mlock()ed. > > > > > > > > So, I think following patch should be dropped. > > > > .. or, do you think truncate should clear PG_mlock before free the page? > > > > > > Is there a reason that truncate cannot clear PG_mlock before freeing the > > > page? > > > > CC to Lee. > > IIRC, Lee tried it at first. but after some trouble, he decided change free_hot_cold_page(). > > but unfortunately, I don't recall the reason ;-) > > > > Lee, Can you recall it? > > > > > > > > Can I ask your patch intention? > > > > > > Locked pages being freed to the page allocator were considered > > > unexpected and a counter was in place to determine how often that > > > situation occurred. However, I considered it unlikely that the counter > > > would be noticed so the warning was put in place to catch what class of > > > pages were getting freed locked inappropriately. I think a few anomolies > > > have been cleared up since. Ultimately, it should have been safe to > > > delete the check. > > > > OK. it seems reasonable. so, I only hope no see linus tree output false-positive warnings. > > Thus, I propse > > > > - don't merge this patch to linus tree > > - but, no drop from -mm > > it be holded in mm until this issue fixed. > > - I'll working on fixing this issue. > > > > I think this is enough fair. > > > > I'm afraid I'm just about to run out the door and will be offline until > Tuesday at the very least. I haven't had the chance to review the patch. > However, I have no problem with this patch not being merged to Linus's tree > if it remains in -mm to catch this and other false positives. > > > Hannes, I'm sorry. I haven't review your patch. I'm too busy now. please gime me more > > sevaral time. > > > > It'll be Tuesday at the very earliest before I get a chance to review. Hugh already pointed out its defects, so the patch as it stands is not usable. The problem, if I understood it correctly, is that truncation munlocks page cache pages but we also unmap (and free) their private COWs, which can still be mlocked. So my patch moved the munlocking from truncation to unmap code to make sure we catch the cows, but for nonlinear unmapping we also want non-linear munlocking, where my patch is broken. Perhaps we can do page-wise munlocking in zap_pte_range(), where zap_details are taken into account. Hopefully, I will have time on the weekend to look further into it. Thanks, Hannes -- 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/