dscr_sysfs_test / futex_bench / tm-unavailable in powerpc from ubuntu_kernel_selftests timeout on PowerPC nodes with B-5.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Eoan |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
== SRU Justification ==
Some specific tests in powerpc can take longer than the default 45
seconds that added in commit 852c8cbf34d3 ("selftests/
Add 45 second timeout per test") to run, the following test result was
collected across 2 Power8 nodes and 1 Power9 node in our pool:
powerpc/
powerpc/
powerpc/
powerpc/
powerpc/
Thus they will fail with TIMEOUT error.
== Fix ==
* 850507f3 ("selftests/
Only Eoan and newer kernel will need this fix.
For Eoan, this patch can be applied with some context adjustment.
For Focal, there is a SAUCE patch which turned off timeout setting for
benchmarks and tm that needs to be reverted first, and this patch can
be applied with some context adjustment too
== Test ==
Patch tested on PowerPC and it works as expected.
== Regression Potential ==
Low, changes limited to testing tools for PowerPC.
== Original Bug Report ==
Issue found on Power9 node baltar with B-5.3 (5.3.0-
# selftests: benchmarks: futex_bench
# test: futex_bench
# tags: git_version:unknown
# time = 52.042224
#
not ok 5 selftests: benchmarks: futex_bench # TIMEOUT
# selftests: dscr: dscr_sysfs_test
# test: dscr_sysfs_test
# tags: git_version:unknown
#
not ok 6 selftests: dscr: dscr_sysfs_test # TIMEOUT
Need to check if this has something to do with the timeout setting like in bug 1864626
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.3.0-40-generic ppc64le
ApportVersion: 2.20.9-0ubuntu7.11
Architecture: ppc64el
Date: Tue Feb 25 11:23:58 2020
ProcLoadAvg: 1.28 22.46 46.59 3/1347 62287
ProcLocks:
1: POSIX ADVISORY WRITE 3837 00:18:562 0 EOF
2: POSIX ADVISORY WRITE 3864 00:18:588 0 EOF
3: FLOCK ADVISORY WRITE 4515 00:18:463 0 EOF
4: FLOCK ADVISORY WRITE 3844 00:18:579 0 EOF
5: POSIX ADVISORY WRITE 1820 00:18:343 0 EOF
ProcSwaps:
Filename Type Size Used Priority
/swap.img file 8388544 0 -2
ProcVersion: Linux version 5.3.0-40-generic (buildd@
SourcePackage: linux-signed-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
VarLogDump_list: total 0
cpu_cores: Number of cores present = 40
cpu_coreson: Number of cores online = 39
cpu_dscr: DSCR is 9
cpu_freq:
min: 2.862 GHz (cpu 79)
max: 2.945 GHz (cpu 81)
avg: 2.903 GHz
cpu_runmode:
Could not retrieve current diagnostics mode,
No kernel interface to firmware
cpu_smt: SMT=4
CVE References
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
tags: | added: kqa-blocker |
affects: | linux-signed-hwe (Ubuntu) → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux (Ubuntu Eoan): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Eoan): | |
status: | In Progress → Fix Committed |
On the same power9 node:
$ time sudo ./dscr_sysfs_test 4e2ba00- dirty
test: dscr_sysfs_test
tags: git_version:
success: dscr_sysfs_test
real 1m56.025s
user 0m0.333s
sys 1m55.403s
$ time sudo ./futex_bench 4e2ba00- dirty
test: futex_bench
tags: git_version:
time = 52.114582
success: futex_bench
real 0m52.126s
user 0m9.259s
sys 0m42.868s