LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Ethan Solomita <solo@google.com>
To: Andrew Morton <akpm@linux-foundation.org>,
"Eric W. Biederman" <ebiederm@xmission.com>,
containers@lists.osdl.org, linux-kernel@vger.kernel.org,
Dave Hansen <hansendc@us.ibm.com>
Subject: Re: Linux-VServer example results for sharing vs. separate mappings ...
Date: Tue, 27 Mar 2007 18:22:02 -0700 [thread overview]
Message-ID: <4609C33A.1040907@google.com> (raw)
In-Reply-To: <20070325022156.GA12442@MAIL.13thfloor.at>
Herbert Poetzl wrote:
> On Sat, Mar 24, 2007 at 12:19:06PM -0800, Andrew Morton wrote:
>
>> Or change the reclaim code so that a page which hasn't
>> been referenced from a process within its hardware
>> container is considered unreferenced (so it gets reclaimed).
>>
>
> that might easily lead to some ping-pong behaviour,
> when two similar guest are executing similar binaries
> but not at the same time ...
>
It might lead to that, but I don't think it would become
pathological "easily". If a system has been up for a long time, it's
easy to image pagecache pages lying everywhere just because someone
somewhere is still using them.
I suggest a variant on what Andrew says: don't change reclaim.
Instead, when referencing a page, don't mark the page as referenced if
the current task is not permitted to allocate from the page's node. I'm
thinking in terms of cpusets, with each task having a nodemask of
mems_allowed. This may result in a page being thrown out unnecessarily
and brought back in from disk, but when memory is tight that is what
happens. An optimization might be to keep track of who is referencing
the page and migrate it to their memory instead of reclaiming it, but
that would require reclaim to know the task/cpuset/container of the
referencing task.
-- Ethan
next prev parent reply other threads:[~2007-03-28 1:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-23 19:30 Linux-VServer example results for sharing vs. separate mappings Herbert Poetzl
2007-03-24 5:42 ` Andrew Morton
2007-03-24 18:38 ` Herbert Poetzl
2007-03-24 20:19 ` Andrew Morton
2007-03-25 2:21 ` Herbert Poetzl
2007-03-25 4:29 ` Andrew Morton
2007-03-25 14:40 ` Herbert Poetzl
2007-03-28 1:22 ` Ethan Solomita [this message]
2007-03-25 9:50 ` Balbir Singh
2007-03-25 18:51 ` Andrew Morton
2007-03-26 2:36 ` Balbir Singh
2007-03-26 5:26 ` Andrew Morton
2007-03-26 6:05 ` Balbir Singh
2007-03-26 9:26 ` [Devel] " Kirill Korotaev
[not found] <81XMo-Fl-19@gated-at.bofh.it>
[not found] ` <827iC-6DZ-7@gated-at.bofh.it>
[not found] ` <82jjS-89s-11@gated-at.bofh.it>
[not found] ` <82l2j-2lv-11@gated-at.bofh.it>
[not found] ` <82qEC-2yM-9@gated-at.bofh.it>
[not found] ` <83v9d-3kf-1@gated-at.bofh.it>
2007-03-29 7:24 ` Bodo Eggert
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=4609C33A.1040907@google.com \
--to=solo@google.com \
--cc=akpm@linux-foundation.org \
--cc=containers@lists.osdl.org \
--cc=ebiederm@xmission.com \
--cc=hansendc@us.ibm.com \
--cc=linux-kernel@vger.kernel.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).