** Changed in: linux (Ubuntu)
       Status: Incomplete => In Progress

** Changed in: linux (Ubuntu)
     Assignee: (unassigned) => Po-Hsu Lin (cypressyew)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1710868

Title:
  memory-hotplug test needs to be fixed

Status in linux package in Ubuntu:
  In Progress

Bug description:
  SRU Justification:

  Impact: 
  The memory-hotplug test in the kernel tree 
(tools/testing/selftests/memory-hotplug/) needs to be fixed:
  1. The test will pass even the memory blocks are failed to be offlined [1].
  2. It's using a random number generator to decide if each memory block needs 
to be offlined, which is not ideal for testing as the block it tries to unplug 
might be different between two runs.
  3. The "-r" flag, percent-of-memory-to-offline, does not match what is says. 
It's being used as the percentage to get a memory block offlined instead.

  Fix: 
  Apply the following patch from upstream can fix these issues:
  593f9278 - selftests: typo correction for memory-hotplug test
  a34b28c9 - selftests: check hot-pluggagble memory for memory-hotplug test
  72441ea5 - selftests: check percentage range for memory-hotplug test
  02d8f075 - selftests: add missing test name in memory-hotplug test
  5ff0c60b - selftests: fix memory-hotplug test

  Testcase:
  Run the script directly, it will fail when all memory blocks are busy. And it 
will try to unplug memory blocks in a fixed order.

  Regression Potential:
  Negligible, it's just affecting this specific test case among those testing 
tools.

  [1] https://paste.ubuntu.com/25318445/

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1710868/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to