-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 09/28/2011 12:33 PM, David Gilbert wrote:
On 28 September 2011 11:18, Daniel Lezcano daniel.lezcano@linaro.org wrote:
Hi all,
here are some tests to test the cpu hotplug.
Any feedback would be appreciate
Thanks a lot
-- Daniel
Test 3: check the affinity does not work on an online cpu
for each cpu
- set cpuX offline
- check 'taskset -c X /bin/true' fails
- set cpuX back online
An interesting test might be what happens to tasks that had affinity only on the CPU that just went offline?
right. I will add this test.
Interaction with irqbalancing?
Can you elaborate ? Do you mean we check irq affinity for a offlined cpu is moved to another cpu ? Or something like that ?
What about interaction with various forms of power save or
suspend/resume?
Right. I am not sure what interactions we really want to check in the test suite but we have to keep this in mind.
(Hmm side note - how do I detect that I have ARMv7MP as opposed to plain v7 - i.e. that I can do a PLDW - if anything is doing it by detecting multiple CPUs it might get confused by hotplug sometimes only showing one - I suspect that's the wrong way).
Well I guess there a several way to do that: sysfs will give the configured cpu on the system in /sys/devices/system/cpu/cpuX or sysconf(_SC_NPROCESSORS_CONF and _SC_NPROCESSORS_ONLN)
Thanks -- Daniel
- -- http://www.linaro.org/ Linaro.org │ Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro Facebook | http://twitter.com/#!/linaroorg Twitter | http://www.linaro.org/linaro-blog/ Blog