[X/Z/A][PATCH 0/5] fix memory-hotplug test

Po-Hsu Lin po-hsu.lin at canonical.com
Thu Aug 10 06:32:34 UTC 2017

The memory-hotplug test in the kernel selftest directory has a flag which is
called "percent-of-memory-to-offline". However it is using a random number
to decide if each memory block needs to be offlined (with 10% chance).
This might cause all memory blocks being skipped, or throw an error if the
block is busy. Also, it does not match with the meaning of the flag.

This patch set will fix the test by offlining a certain amount of memory blocks
and it will try to offline them one-by-one instead of doing this randomly to
avoid the block is busy issue and make it more reproducible.

Skipping Trusty as the ubuntu_kernel_selftests test suite was blacklisted on it.

Po-Hsu Lin (5):
  selftests: typo correction for memory-hotplug test
  selftests: check hot-pluggagble memory for memory-hotplug test
  selftests: check percentage range for memory-hotplug test
  selftests: add missing test name in memory-hotplug test
  selftests: fix memory-hotplug test

 .../selftests/memory-hotplug/mem-on-off-test.sh    | 86 +++++++++++++++++-----
 1 file changed, 67 insertions(+), 19 deletions(-)


More information about the kernel-team mailing list