From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58919 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDgy1-0003Sz-AZ for qemu-devel@nongnu.org; Wed, 03 Nov 2010 13:17:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDgy0-0001TO-6M for qemu-devel@nongnu.org; Wed, 03 Nov 2010 13:17:45 -0400 Received: from e38.co.us.ibm.com ([32.97.110.159]:35841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDgxz-0001St-Qp for qemu-devel@nongnu.org; Wed, 03 Nov 2010 13:17:44 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e38.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id oA3H9Ylm018586 for ; Wed, 3 Nov 2010 11:09:34 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oA3HHajv140760 for ; Wed, 3 Nov 2010 11:17:36 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oA3HHZkC026147 for ; Wed, 3 Nov 2010 11:17:35 -0600 Date: Wed, 3 Nov 2010 22:47:33 +0530 From: Balbir Singh Message-ID: <20101103171733.GP3769@balbir.in.ibm.com> References: <20101028224002.32626.13015.sendpatchset@localhost.localdomain> <20101028224008.32626.69769.sendpatchset@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: [RFC][PATCH 1/3] Linux/Guest unmapped page cache control Reply-To: balbir@linux.vnet.ibm.com List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Lameter Cc: linux-mm@kvack.org, qemu-devel@nongnu.org, kvm@vger.kernel.org * Christoph Lameter [2010-11-03 09:35:33]: > On Fri, 29 Oct 2010, Balbir Singh wrote: > > > A lot of the code is borrowed from zone_reclaim_mode logic for > > __zone_reclaim(). One might argue that the with ballooning and > > KSM this feature is not very useful, but even with ballooning, > > Interesting use of zone reclaim. I am having a difficult time reviewing > the patch since you move and modify functions at the same time. Could you > separate that out a bit? > Sure, I'll split it out into more readable bits and repost the mm versions first. > > +#define UNMAPPED_PAGE_RATIO 16 > > Maybe come up with a scheme that allows better configuration of the > mininum? I think in some setting we may want an absolute limit and in > other a fraction of something (total zone size or working set?) > Are you suggesting a sysctl or computation based on zone size and limit, etc? I understand it to be the latter. > > > +bool should_balance_unmapped_pages(struct zone *zone) > > +{ > > + if (unmapped_page_control && > > + (zone_unmapped_file_pages(zone) > > > + UNMAPPED_PAGE_RATIO * zone->min_unmapped_pages)) > > + return true; > > + return false; > > +} > Thanks for your review. -- Three Cheers, Balbir