From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 31 Jan 2007 11:30:01 -0800 (PST) From: Christoph Lameter Subject: Re: [patch] not to disturb page LRU state when unmapping memory range In-Reply-To: <45C0EAB7.5040903@in.ibm.com> Message-ID: References: <1170246396.9516.39.camel@twins> <45C0EAB7.5040903@in.ibm.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Balbir Singh Cc: Peter Zijlstra , Ken Chen , Hugh Dickins , Andrew Morton , linux-mm@kvack.org List-ID: On Thu, 1 Feb 2007, Balbir Singh wrote: > Does it make sense to do this only for shared mapped pages? > > if (pte_young(ptent) && (page_mapcount(page) > 1)) > SetPageReferenced(page); If the page is only mapped by the process releasing the memory then it may be considered less likely that the page is reused. But the basic issue that Huge mentioned remains. -- 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: email@kvack.org