From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 24 May 2005 14:04:40 -0700 From: "Martin J. Bligh" Reply-To: "Martin J. Bligh" Subject: Re: [Lhms-devel] Re: [PATCH 2.6.12-rc3 1/8] mm: manual page migration-rc2 -- xfs-extended-attributes-rc2.patch Message-ID: <87250000.1116968680@[10.10.2.4]> In-Reply-To: References: <20050511043756.10876.72079.60115@jackhammer.engr.sgi.com><20050511043802.10876.60521.51027@jackhammer.engr.sgi.com><20050511071538.GA23090@infradead.org> <4281F650.2020807@engr.sgi.com><20050511125932.GW25612@wotan.suse.de> <42825236.1030503@engr.sgi.com><20050511193207.GE11200@wotan.suse.de> <20050512104543.GA14799@infradead.org><428E6427.7060401@engr.sgi.com> <429217F8.5020202@mwwireless.net><4292B361.80500@engr.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter , Ray Bryant Cc: Steve Longerbeam , Christoph Hellwig , Andi Kleen , Ray Bryant , Hirokazu Takahashi , Marcelo Tosatti , Dave Hansen , linux-mm , Nathan Scott , Ray Bryant , lhms-devel@lists.sourceforge.net, Jes Sorensen List-ID: --Christoph Lameter wrote (on Tuesday, May 24, 2005 13:59:30 -0700): > On Mon, 23 May 2005, Ray Bryant wrote: > >> We need to take a different migration action based on which case we >> are in: >> >> (1) Migrate all of the pages. >> (2) Migrate the non-shared pages. >> (3) Migrate none of the pages. >> >> So we need some external way for the kernel to be told which kind of >> mapped file this is. That is why we need some kind of interface for >> the user (or admininistrator) to tell us how to classify each shared >> mapped file. > > Sorry I am a bit late to the party and I know you must have said this > before but what is the reason again not to use the page reference count to > determine if a page is shared? Maybe its possible to live with some > restrictions that the use of the page reference count brings. > > Seems that touching a filesystem and the ELF headers is way off from the > vm. I forget the context of this conversation, but in general if you want to find out if the page is shared, you want mapcount, not the reference count. Is so much easier now that we have that field ... M. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: aart@kvack.org