Re: [RFC] bitmap onto and fold operators for mempolicy extensions

2008-02-18 Thread Paul Jackson
David wrote: > So what is the MPOL_F_RELATIVE_NODES behavior? Is it a combination of > nodes_onto() and nodes_fold()? MPOL_F_RELATIVE_NODES should always combination of nodes_onto() and nodes_fold(). The reason I say that is consistency with the end cases. That is, we need fold in the case tha

Re: [RFC] bitmap onto and fold operators for mempolicy extensions

2008-02-18 Thread David Rientjes
On Sat, 16 Feb 2008, Paul Jackson wrote: > Let's say an application has specified some mempolicies > that presume 16 memory nodes, including say a mempolicy that > specified MPOL_F_RELATIVE_NODES (cpuset relative) nodes 12-15. > Then lets say that application is crammed into a cpuset that only > h

Re: [RFC] bitmap onto and fold operators for mempolicy extensions

2008-02-16 Thread Paul Jackson
Thank-you for the kind and prompt review, kosaki-san. -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <[EMAIL PROTECTED]> 1.940.382.4214 -- To unsubscribe from this list: send the line "unsubscribe linux-kerne

Re: [RFC] bitmap onto and fold operators for mempolicy extensions

2008-02-16 Thread KOSAKI Motohiro
Hi Paul, > > iff? > > other portions looks good :) > > "iff" -- "if and only if" > > It is from my days, a long long time ago, as a student of mathematical > logic and set theory. I was too lazy to spell that one out. My bad. not at all. I did't know the abbreviation, sorry. I think your pat

Re: [RFC] bitmap onto and fold operators for mempolicy extensions

2008-02-16 Thread Paul Jackson
KOSAKI-san wrote: > iff? > other portions looks good :) "iff" -- "if and only if" It is from my days, a long long time ago, as a student of mathematical logic and set theory. I was too lazy to spell that one out. My bad. -- I won't rest till it's the best ...

Re: [RFC] bitmap onto and fold operators for mempolicy extensions

2008-02-16 Thread KOSAKI Motohiro
Hi Paul, > The bitmap_fold() operator folds a bitmap into a second that > has bit m set iff the input bitmap has some bit n set, where > m == n mod sz, for the specified sz value. iff? other portions looks good :) Reviewed-by: KOSAKI Motohiro <[EMAIL PROTECTED]> Thanks! -- To unsubscribe from t

[RFC] bitmap onto and fold operators for mempolicy extensions

2008-02-16 Thread Paul Jackson
[Beware - never tested, never booted.] From: Paul Jackson <[EMAIL PROTECTED]> The following adds two more bitmap operators, bitmap_onto() and bitmap_fold(), with the usual cpumask and nodemask wrappers. The bitmap_onto() operator computes one bitmap relative to another. If the n-th bit in the o