diff mbox series

[meta-oe,2/3] kernel-selftest: Skip the cgroup tests that hit the OOM killer

Message ID 20261127155557.2874294-3-khem.raj@oss.qualcomm.com
State New
Headers show
Series Build fixes for nodejs and uftrace, kernel-selftest OOM skips | expand

Commit Message

Khem Raj Nov. 27, 2026, 3:55 p.m. UTC
cgroup:test_memcontrol runs memcg OOM cases on purpose, and testimage
fails the ptest image whenever dmesg has "Killed process":

  AssertionError: ERROR: Processes were killed by the OOM Killer:
  Memory cgroup out of memory: Killed process 3424 (test_memcontrol) ...

cgroup:test_kmem fails intermittently under memory pressure in the test
VM. Skip both.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../kernel-selftest/kernel-selftest/run-ptest              | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/run-ptest b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/run-ptest
index 85fa63b5e4..3c4b4993c1 100755
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/run-ptest
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/run-ptest
@@ -16,8 +16,13 @@ 
 #
 # landlock:fs_bench only reports timings, and walking its 10000 nested
 # directories takes about 90 seconds in qemu, twice the default timeout.
+#
+# cgroup:test_memcontrol triggers the OOM killer on purpose, and testimage
+# fails the run whenever dmesg has "Killed process". cgroup:test_kmem fails
+# intermittently under memory pressure in the test VM. Skip both.
 SKIP="-S ftrace:ftracetest-ktap -S filesystems:file_stressor \
-      -S ptrace:vmaccess -S tty:tty_tiocsti_test -S landlock:fs_bench"
+      -S ptrace:vmaccess -S tty:tty_tiocsti_test -S landlock:fs_bench \
+      -S cgroup:test_memcontrol -S cgroup:test_kmem"
 
 # sysmap_is_sealed can't tell at runtime whether the kernel seals the system
 # mappings, so skip it when the running kernel's config says it doesn't.