From: Christoph Lameter <christoph@lameter.com>
To: Andi Kleen <ak@suse.de>
Cc: Paul Jackson <pj@sgi.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: NUMA policy interface
Date: Thu, 4 Aug 2005 15:19:52 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.62.0508041509330.10813@graphe.net> (raw)
In-Reply-To: <20050804214132.GF8266@wotan.suse.de>
On Thu, 4 Aug 2005, Andi Kleen wrote:
> > There is this scan over the page table that verifies if all nodes are
> > allocated according to the policy. That scan could easily be used to
> > provide a map to the application (and to /proc/<pid>/smap) of where the
>
> The application can already get it. But it's an ugly feature
> that I only used for debugging and I was actually considering
> to remove it.
>
> Doing it for external users is a completely different thing though.
> I still think those have business in messing with other people's
> virtual addresses. In addition I expect it will cause problems
> longer term
> (did you ever look why mmap on /proc/*/mem is not allowed - it used
> to be long ago, but it was impossible to make it work race free and
> before that was always a gapping security hole)
The proc stuff is fake anyways. I would not worry about that. The biggest
worry is the locking mechanism to make this clean.
There are three possibilites:
1. do what cpusets is doing by versioning.
2. Have the task notifier access the task_struct information.
See http://lwn.net/Articles/145232/ "A new path to the refrigerator"
3. Maybe the easiest: Require mmap_sem to be taken for all policy
accesses. Currently its only require for vma policies. Then we need
to make a copy of the policy at some point so that alloc_pages can
access policy information lock free. This may also allow us to fix
the bind issue if we would f.e. keep a bitmap in the taskstruct or (ab)use
the cpusets map.
> If they cannot afford enough disk space it might be possible
> to do the page migration in swap cache like Hugh proposed.
This code already exist in the memory hotplug code base and Ray already
had a working implementation for page migration. The migration code will
also be necessary in order to relocate pages with ECC single bit failures
that Russ is working on (of course that will only work for some pages) and
for Mel Gorman's defragmentation approach (if we ever get the split into
differnet types of memory chunks in).
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2005-08-04 22:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050730181418.65caed1f.pj@sgi.com>
[not found] ` <Pine.LNX.4.62.0507301814540.31359@graphe.net>
[not found] ` <20050730190126.6bec9186.pj@sgi.com>
[not found] ` <Pine.LNX.4.62.0507301904420.31882@graphe.net>
[not found] ` <20050730191228.15b71533.pj@sgi.com>
[not found] ` <Pine.LNX.4.62.0508011147030.5541@graphe.net>
[not found] ` <20050803084849.GB10895@wotan.suse.de>
[not found] ` <Pine.LNX.4.62.0508040704590.3319@graphe.net>
[not found] ` <20050804142942.GY8266@wotan.suse.de>
[not found] ` <Pine.LNX.4.62.0508040922110.6650@graphe.net>
[not found] ` <20050804170803.GB8266@wotan.suse.de>
2005-08-04 17:34 ` Christoph Lameter
2005-08-04 21:14 ` Andi Kleen
2005-08-04 21:21 ` Christoph Lameter
2005-08-04 21:41 ` Andi Kleen
2005-08-04 22:19 ` Christoph Lameter [this message]
2005-08-04 22:44 ` Mike Kravetz
2005-08-04 23:40 ` Andi Kleen
2005-08-04 23:49 ` Christoph Lameter
2005-08-05 9:16 ` Andi Kleen
2005-08-05 14:52 ` Christoph Lameter
2005-08-05 14:58 ` Christoph Lameter
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=Pine.LNX.4.62.0508041509330.10813@graphe.net \
--to=christoph@lameter.com \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pj@sgi.com \
/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