lkml.org 
[lkml]   [2008]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
> So basically the "relative" nodemask that is passed with 
> MPOL_F_RELATIVE_NODES is wrapped around the allowed nodes?
>
> relative nodemask mems_allowed result
> 1,3,5 4 4
> 1,3,5 4-6 4-6
> 1,3,5 4-8 4-5,7
> 1,3,5 4-10 4,6,8
>
> Is that correct?

By my calculation, all but the last line is correct.

We use zero-based numbering, so relative node '1' is the
'second' node, and the 'second' node in allowed nodes 4-10
is node 5, not 4. Similarly for relative nodes '3' and '5'.

So that last line should be:

> 1,3,5 4-10 5,7,9


--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.940.382.4214


\
 
 \ /
  Last update: 2008-02-15 11:23    [W:0.393 / U:0.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site