Message ID | 20210615152339.41252-2-krzysztof.kozlowski@canonical.com |
---|---|
State | New |
Headers | show |
Series | [ACT,1/2] UBUNTU: SAUCE: ubuntu_kernel_selftests: properly disable memory-hotplug | expand |
On 15/06/2021 17:23, Krzysztof Kozlowski wrote: > 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@canonical.com> > --- > ubuntu_kernel_selftests/ubuntu_kernel_selftests.py | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > Any comments about this one? It seems it was not applied. Best regards, Krzysztof
Sorry for the deplay.
Acked-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Applied and pushed.
I am wondering if we can tell which page is unmovable?
Thanks
Sam
On 22/06/2021 12:16, Po-Hsu Lin wrote: > Sorry for the deplay. > Acked-by: Po-Hsu Lin <po-hsu.lin@canonical.com> > Applied and pushed. > > I am wondering if we can tell which page is unmovable? Maybe somewhere here: cat /proc/pagetypeinfo cat /proc/buddyinfo Mapping this to memory hotplug areas would be nice but also not an easy piece of code. Best regards, Krzysztof
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):
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@canonical.com> --- ubuntu_kernel_selftests/ubuntu_kernel_selftests.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)