-----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.lezc...@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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOgxDXAAoJEAKBbMCpUGYAfsoH/2eDkwbmNYAqGln5UZYyz/sJ vlhLJbSRIxO2kcu/M7fF1PFKax41JdK2VaaZem9bb+Bjn5Z+YhSGtQ9XoFyN02xC QSBPtLY4I97GfZdGzb/6kMGuJkRJwbd7kyJPPq040GxKznbksep+Kx0P9YKeoQcp IPl+cD7t19fowiBKe+BqvpQrTHxfDibaNP5nKnOzm8wuaOiMEseelpW6EW2lCoHH C+Ig2XC5pNMrgJsuM1710Imz3/OZ2iYJShL6cHfRF8OJ6TK520a81zjoiL8u+NHh W3JjX1L8pUDb68FxTD9DYCR/Brns5gpgfdn9KfRxOgXqU/zc8vDsB2YDn/dttI0= =SyH/ -----END PGP SIGNATURE----- _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev