linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
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: NUMA policy interface
Date: Thu, 4 Aug 2005 10:34:24 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.62.0508041011590.7314@graphe.net> (raw)
In-Reply-To: <20050804170803.GB8266@wotan.suse.de>

On Thu, 4 Aug 2005, Andi Kleen wrote:

> > So your point of view is that there will be no control and monitoring of 
> > the memory usage and policies?
> 
> External control is implemented for named objects and for process policy.
> A process can also monitor its own policies if it wants.

Named objects like files and not processes and/or threads? But then these 
named objects do not have memory allocated to them.

> I think the payoff for external monitoring of policies vs complexity 
> and cleanliness of interface and long term code impact is too bad to make 
> it an attractive option.

Well the implementation has the following issues right now:

1. BIND policy implemented in a way that fills up nodes from the lowest 
   to the higest instead of allocating memory on the local node.

2. No separation between sys_ and do_ functions. Therefore difficult
   to use from kernel context.

3. Functions have weird side effect (f.e. get_nodes updating 
   and using cpuset policies). Code is therefore difficult 
   to maintain.

4. Uses bitmaps instead of nodemask_t.

5. No means to figure out where the memory was allocated although
   mempoliy.c implements scans over ptes that would allow that 
   determination.
 
6. Needs hook into page migration layer to move pages to either conform
   to policy or to move them menually.

The long term impact of this missing functionality is already showing 
in the numbers of workarounds that I have seen at a various sites, 

The code is currently complex and difficult to handle because some of the 
issues mentioned above. We need to fix this in order to have clean code 
and in order to control future complexity.
--
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>

       reply	other threads:[~2005-08-04 17:34 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 [this message]
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
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.0508041011590.7314@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