From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with SMTP id D87BD600309 for ; Tue, 1 Dec 2009 01:32:07 -0500 (EST) Date: Mon, 30 Nov 2009 22:32:01 -0800 From: Chris Wright Subject: Re: [PATCH 2/9] ksm: let shared pages be swappable Message-ID: <20091201063201.GD14368@x200.localdomain> References: <20091130094616.8f3d94a7.kamezawa.hiroyu@jp.fujitsu.com> <20091130120705.GD30235@random.random> <20091201093945.8c24687f.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091201093945.8c24687f.kamezawa.hiroyu@jp.fujitsu.com> Sender: owner-linux-mm@kvack.org To: KAMEZAWA Hiroyuki Cc: Andrea Arcangeli , Hugh Dickins , Andrew Morton , Izik Eidus , Chris Wright , linux-kernel@vger.kernel.org, linux-mm@kvack.org, "kosaki.motohiro@jp.fujitsu.com" List-ID: * KAMEZAWA Hiroyuki (kamezawa.hiroyu@jp.fujitsu.com) wrote: > Hmm. Can KSM coalesce 10000+ of pages to a page ? Yes. The zero page is a prime example of this. > In such case, lru > need to scan 10000+ ptes with 10000+ anon_vma->lock and 10000+ pte locks > for reclaiming a page. Would likely be a poor choice too. With so many references it's likely to be touched soon and swapped right back in. thanks, -chris -- 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