[ACT][PATCH 2/2] UBUNTU: SAUCE: ubuntu_kernel_selftests: disable memory-hotplug on Azure and AWS

Krzysztof Kozlowski krzysztof.kozlowski at canonical.com
Tue Jun 15 15:23:39 UTC 2021


Azure and AWS cloud instances since to have unmovable pages spread all
around this there are several memory-hotplug/mem-on-off-test.sh failures
each cycle:

    online->offline memory0
    ./mem-on-off-test.sh: line 78: echo: write error: Invalid argument
    offline_memory_expect_success 0: unexpected fail
    online->offline memory1
    ./mem-on-off-test.sh: line 78: echo: write error: Device or resource busy
    offline_memory_expect_success 1: unexpected fail

In dmesg:

    flags: 0xfffffc0010200(slab|head)
    raw: 000fffffc0010200 dead000000000100 dead000000000122 ffff99956151ec40
    raw: 0000000000000000 00000000001d001d 00000001ffffffff 0000000000000000
    page dumped because: unmovable page

This fails on multiple instances so disable the test on Azure and AWS
clouds.

BugLink: https://bugs.launchpad.net/bugs/1897764
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at canonical.com>
---
 ubuntu_kernel_selftests/ubuntu_kernel_selftests.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
index 6f889fbb639f..d05700ca0e9d 100644
--- a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
+++ b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
@@ -182,14 +182,16 @@ class ubuntu_kernel_selftests(test.test):
                 utils.system(cmd)
 
             #
-            # memory hotplug test will fail on arm platforms from 5.6+
+            # memory hotplug test will fail on arm and several cloud platforms from 5.6+
             # as it was enabled in 5.6 but needs memory that does not
             # have boot time pages in the regions to be offlined and
-            # current test hardware cannot guarantee that constraint
-            # so disable it for arm platforms for now
+            # current test hardware cannot guarantee that constraint.
+            # Except ARM, also all cloud platforms on amd64 seems to have unmovable
+            # pages which makes memory hotplug failing.
             #
-            if self.arch.startswith('arm') or self.arch == 'aarch64':
-                print("Disabling memory hotplug test on ARM platform")
+            if self.arch.startswith('arm') or self.arch == 'aarch64' or \
+               self.flavour in ['aws', 'azure', 'azure-fips']:
+                print("Disabling memory hotplug test")
                 fn = 'linux/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh'
                 mk = 'linux/tools/testing/selftests/memory-hotplug/Makefile'
                 if os.path.exists(fn):
-- 
2.27.0




More information about the kernel-team mailing list