lkml.org 
[lkml]   [2005]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 2.6.11-rc2-mm2 7/7] mm: manual page migration -- sys_page_migrate
Robin wrote:
> Then how do you handle overlapping nodes. If I am doing a 5->4, 4->3,
> 3->2, 2->1 shift ...

Then do the shifts in the other order, first 2->1, then 3->2, ...

So now you ask, what if you are doing a rotation? Use a temporary
node: 2->tmp, 3->2, ..., N->(N-1), tmp->N.

So now you ask, what if you are doing a rotation involving _all_
nodes, and have nothing you can use as a temporary node?

Argh I say ... would anyone really do that? Or perhaps it makes
sense to have the system call take a virtual address range (and
hence a pid). In which case, you can do one page at a time, if
need be, and get any foolhardy migration possible.

Or perhaps some integration with Andi's mbind/mempolicy make sense.
I'm not quite following Andi's comments on this, so I can't say
one way or the other if this is good.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373, 1.925.600.0401
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.199 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site