-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi all,
here are some tests to test the cpu hotplug.
Any feedback would be appreciate
Thanks a lot
-- Daniel
Test 1: check the sysfs files are present =========================================
for each cpu * check /sys/devices/system/cpu/cpuX/online is there
What about the particular case for cpu0 where the 'online' file is there but shouldn't as the other arch ?
Test 2: check cpu state is reflected in sysfs =============================================
for each cpu * set cpuX offline * check cpuX status is offline * set cpuX back online * check cpuX status is online
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
Test 4: check cpus are reflected on /proc/cpuinfo correctly ===========================================================
NRCPUS=<number of configured cpu on the system>
for each cpu * set cpuX offline * check /proc/cpuinfo 'processor' keyword count is 'NRCPUS - 1' * check the processor keyword contains a cpu id different from the cpu we offlined * set cpuX back online
Test 5: test userspace notification ===================================
for each cpu * set cpuX offline * check from userspace notification has been done with the command 'udevadm monitor --kernel --subsystem-match=cpu' * and the event is related to the cpuX and 'offline' * set the cpu online * check from userspace notification has been done with the command 'udevadm monitor --kernel --subsystem-match=cpu' * and the event is related to the cpuX and 'online'
Test 6: do some stress test ===========================
for each cpu * for i in 1 .. 50 * set cpuX offline * set cpuX back online
- -- 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