From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: Christoph Lameter <cl@linux.com>
Cc: linux-mm@kvack.org, qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [RFC][PATCH 1/3] Linux/Guest unmapped page cache control
Date: Wed, 3 Nov 2010 22:47:33 +0530 [thread overview]
Message-ID: <20101103171733.GP3769@balbir.in.ibm.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1011030932260.10599@router.home>
* Christoph Lameter <cl@linux.com> [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
next prev parent reply other threads:[~2010-11-03 17:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-28 22:40 [Qemu-devel] [RFC][PATCH 0/3] KVM page cache optimization (v3) Balbir Singh
2010-10-28 22:40 ` [Qemu-devel] [RFC][PATCH 1/3] Linux/Guest unmapped page cache control Balbir Singh
2010-11-03 14:35 ` [Qemu-devel] " Christoph Lameter
2010-11-03 17:17 ` Balbir Singh [this message]
2010-11-03 17:58 ` Christoph Lameter
2010-10-28 22:40 ` [Qemu-devel] [RFC][PATCH 2/3] Linux/Guest cooperative " Balbir Singh
2010-10-28 22:40 ` [Qemu-devel] [RFC][PATCH 3/3] QEmu changes to provide balloon hint Balbir Singh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101103171733.GP3769@balbir.in.ibm.com \
--to=balbir@linux.vnet.ibm.com \
--cc=cl@linux.com \
--cc=kvm@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).