Open wingo opened 8 years ago
There are a few CI issues.
For automated tests you should be able to at least call get_mempolicy
and check it returns something, setting might not be worth testing, although maybe you could set the same policy as returned by get to make sure it round trips?
Tx for the feedback, will poke.
Would be nice to fix the CI issues...
tx for the ping, will poke
Related: https://github.com/snabbco/snabb/issues/1200
I should get back on this upstreaming horse!
Yes I think https://github.com/snabbco/snabb/pull/1268/files is needed...
Calling get_mempolicy() will return an object with "mode" and "mask" keys, corresponding to the two output arguments of the get_mempolicy function. The mask is implemented along the lines of cpu_set, except that it can hold any number of bits, defaulting to the size of a long.
set_mempolicy(mode, mask) imposes a mode and possibly a mask as well.
I have tested this in Snabb and interactively but I would appreciate suggestions on what automated tests would be required.