Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cpu-affinity test fail on Archlinux #956
The test value for
It would seem that if cpu-hotplugging is enabled this value is the mask with all the bits flipped by default at boot-time, even if they're non-existent.
FWIW, if you call
Can you show me what happens if you try to set a non eligible CPU?
...and show me the exception?
Digging through the kernels source, the cpumask will accept a new mask so long as there is an intersection with the present cpus. So setting affinity to just one invalid will throw the
Both are fine.
My suggestion was to parse out
I don't think this is great but it was the closest to how you currently have the test. The other option is you could parse out
Considering that CPU affinity on Linux should be determined at runtime I would say this is not an issue with the test per se but something which requires a brand new functionality.