-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJOgvR5AAoJEAKBbMCpUGYAd+cH/Al3bFhii/cgUqUxD9tWohoi
+J7vfcbWbeDfX8cpYSzYczThfO97TYgGQdMjRkcq3MUkQ0xy/wWw96mZFl87L0eq
5bYnOgnZa/glUUeENyPs8/hrSJ2Mhf/Kcnp8VLK53E9OrzQ6bYOs7ms1ap81gsvW
Ub9UL4Zzq0YkPMP1T0M63tt3qioukNlUDPV2ZNTAg0iTHy7tXuaWp6bx8bk+ggXA
wqs+XCridjzD5YjZcvKyn0f5nSlGDx1rH+rOEGSktudZInvJBsyCmOMa3upWMJUf
loBqhK4LqrYwIU/JbCTQaB9F1U1yYioqvgZBlO/LuOR/nbLmJFXtfeQOLbA9lRk=
=Jrc3
-----END PGP SIGNATURE-----
_______________________________________________
linaro-dev mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-dev