NUMA API on ppc64 issues
Hi,
I tried running the NUMA API on a ppc64 box (version numactl-0.7pre2, I hope thats the latest). I noticed is that the cpu affinity code is not endian safe. Watching a 64bit version of numademo:
19206 sched_setaffinity(19206, 64, { 300000000, 0, 0, 0, 0, 0, 0, 0 }) = -1 EINVAL (Invalid argument)
...
19206 sched_setaffinity(19206, 64, { f000000000000, 0, 0, 0, 0, 0, 0, 0 }) = -1 EINVAL (Invalid argument)
Whereas my cpumask is 000000000000f003 - its swapping the two 32bit words. Looks like numa_node_to_cpus needs some work to be endian safe.
Anton
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>