From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422693AbXCGKIU (ORCPT ); Wed, 7 Mar 2007 05:08:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422708AbXCGKIU (ORCPT ); Wed, 7 Mar 2007 05:08:20 -0500 Received: from amsfep16-int.chello.nl ([62.179.120.11]:48482 "EHLO amsfep16-int.chello.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422693AbXCGKIS (ORCPT ); Wed, 7 Mar 2007 05:08:18 -0500 Subject: Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear) From: Peter Zijlstra To: Nick Piggin Cc: Andrew Morton , Miklos Szeredi , mingo@elte.hu, linux-mm@kvack.org, linux-kernel@vger.kernel.org, benh@kernel.crashing.org In-Reply-To: <20070307100430.GA5080@wotan.suse.de> References: <20070306225101.f393632c.akpm@linux-foundation.org> <20070307070853.GB15877@wotan.suse.de> <20070307081948.GA9563@wotan.suse.de> <20070307082755.GA25733@elte.hu> <20070307004709.432ddf97.akpm@linux-foundation.org> <20070307010756.b31c8190.akpm@linux-foundation.org> <1173259942.6374.125.camel@twins> <20070307094503.GD8609@wotan.suse.de> <20070307100430.GA5080@wotan.suse.de> Content-Type: text/plain Date: Wed, 07 Mar 2007 11:06:42 +0100 Message-Id: <1173262002.6374.128.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2007-03-07 at 11:04 +0100, Nick Piggin wrote: > On Wed, Mar 07, 2007 at 10:45:03AM +0100, Nick Piggin wrote: > > On Wed, Mar 07, 2007 at 10:32:22AM +0100, Peter Zijlstra wrote: > > > > > > Can recollect as much, I modelled it after page_referenced() and can't > > > find any VM_NONLINEAR specific code in there either. > > > > > > Will have a hard look, but if its broken, then page_referenced if > > > equally broken it seems, which would make page reclaim funny in the > > > light of nonlinear mappings. > > > > page_referenced is just an heuristic, and it ignores nonlinear mappings > > and the page which will get filtered down to try_to_unmap. > > > > Page reclaim is already "funny" for nonlinear mappings, page_referenced > > is the least of its worries ;) It works, though. > > Or, to be more helpful, unmap_mapping_range is what it should be > modelled on. *sigh* yes was looking at all that code, thats gonna be darn slow though, but I'll whip up a patch. /me feels terribly bad about having missed this..