Skip to content

Fix memcontrol03 testcase failure on powerpc.#1297

Open
Pavithra1602 wants to merge 1 commit intolinux-test-project:masterfrom
Pavithra1602:memcontrol03_fix
Open

Fix memcontrol03 testcase failure on powerpc.#1297
Pavithra1602 wants to merge 1 commit intolinux-test-project:masterfrom
Pavithra1602:memcontrol03_fix

Conversation

@Pavithra1602
Copy link

On ppc64le with 64KB page size, the 148MB allocation triggers OOM due to memory accounting overhead and slower pagecache eviction. Use 140MB to provide safety margin while creating sufficient pressure to test memory.min protection effectively.

On ppc64le with 64KB page size, the 148MB allocation triggers OOM due to memory accounting overhead and slower pagecache eviction.
Use 140MB to provide safety margin while creating sufficient pressure to test memory.min protection effectively.

Signed-off-by: Pavithra <pavrampu@linux.ibm.com>
@Pavithra1602
Copy link
Author

:~/ltp/testcases/kernel/controllers/memcg # ./memcontrol03
tst_tmpdir.c:308: TINFO: Using /tmp/LTP_memlP0D9Y as tmpdir (btrfs filesystem)
tst_device.c:98: TINFO: Found free device 0 '/dev/loop0'
tst_test.c:2059: TINFO: LTP version: 20260130-76-g8c0523e08
tst_test.c:2062: TINFO: Tested kernel: 6.12.0-160099.32-default #1 SMP PREEMPT_DYNAMIC Tue Feb 10 00:02:00 UTC 2026 (e9728ef) ppc64le
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:676: TINFO: CONFIG_FAULT_INJECTION kernel option detected which might slow the execution
tst_test.c:1887: TINFO: Overall timeout per run is 0h 02m 00s
tst_supported_fs_types.c:98: TINFO: Kernel supports ext2
tst_supported_fs_types.c:63: TINFO: mkfs.ext2 does exist
tst_supported_fs_types.c:98: TINFO: Kernel supports ext3
tst_supported_fs_types.c:63: TINFO: mkfs.ext3 does exist
tst_supported_fs_types.c:98: TINFO: Kernel supports ext4
tst_supported_fs_types.c:63: TINFO: mkfs.ext4 does exist
tst_supported_fs_types.c:98: TINFO: Kernel supports xfs
tst_supported_fs_types.c:63: TINFO: mkfs.xfs does exist
tst_supported_fs_types.c:98: TINFO: Kernel supports btrfs
tst_supported_fs_types.c:63: TINFO: mkfs.btrfs does exist
tst_supported_fs_types.c:106: TINFO: Skipping bcachefs because of FUSE blacklist
tst_supported_fs_types.c:157: TINFO: Skipping vfat as requested by the test
tst_supported_fs_types.c:157: TINFO: Skipping exfat as requested by the test
tst_supported_fs_types.c:157: TINFO: Skipping ntfs as requested by the test
tst_supported_fs_types.c:157: TINFO: Skipping tmpfs as requested by the test
tst_test.c:1997: TINFO: === Testing on ext2 ===
tst_test.c:1295: TINFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
mke2fs 1.47.0 (5-Feb-2023)
tst_test.c:1307: TINFO: Mounting /dev/loop0 to /tmp/LTP_memlP0D9Y/mntdir fstyp=ext2 flags=0
memcontrol03.c:151: TINFO: Child 45301 in leaf_C: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45303 in leaf_D: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45305 in leaf_F: Allocating pagecache: 44040192
memcontrol03.c:108: TINFO: Child 45314 in trunk_G: Allocating anon: 142606336
memcontrol03.c:125: TPASS: Child 45314 exited
memcontrol03.c:228: TPASS: Expect: (A/B memory.current=54263808) ~= 52428800
memcontrol03.c:234: TPASS: Expect: (A/B/C memory.current=26214400) ~= 34603008
memcontrol03.c:236: TPASS: Expect: (A/B/D memory.current=19267584) ~= 17825792
memcontrol03.c:238: TPASS: Expect: (A/B/E memory.current=0) ~= 0
memcontrol03.c:108: TINFO: Child 45315 in trunk_G: Allocating anon: 173670400
memcontrol03.c:120: TPASS: Child 45315 killed by OOM
memcontrol03.c:244: TPASS: Expect: (A/B memory.current=54263808) ~= 52428800
tst_test.c:1997: TINFO: === Testing on ext3 ===
tst_test.c:1295: TINFO: Formatting /dev/loop0 with ext3 opts='' extra opts=''
mke2fs 1.47.0 (5-Feb-2023)
tst_test.c:1307: TINFO: Mounting /dev/loop0 to /tmp/LTP_memlP0D9Y/mntdir fstyp=ext3 flags=0
memcontrol03.c:151: TINFO: Child 45331 in leaf_C: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45333 in leaf_D: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45334 in leaf_F: Allocating pagecache: 48234496
memcontrol03.c:108: TINFO: Child 45342 in trunk_G: Allocating anon: 142606336
memcontrol03.c:125: TPASS: Child 45342 exited
memcontrol03.c:228: TPASS: Expect: (A/B memory.current=57540608) ~= 52428800
memcontrol03.c:234: TPASS: Expect: (A/B/C memory.current=26345472) ~= 34603008
memcontrol03.c:236: TPASS: Expect: (A/B/D memory.current=22413312) ~= 17825792
memcontrol03.c:238: TPASS: Expect: (A/B/E memory.current=0) ~= 0
memcontrol03.c:108: TINFO: Child 45343 in trunk_G: Allocating anon: 172228608
memcontrol03.c:120: TPASS: Child 45343 killed by OOM
memcontrol03.c:244: TPASS: Expect: (A/B memory.current=57540608) ~= 52428800
tst_test.c:1997: TINFO: === Testing on ext4 ===
tst_test.c:1295: TINFO: Formatting /dev/loop0 with ext4 opts='' extra opts=''
mke2fs 1.47.0 (5-Feb-2023)
tst_test.c:1307: TINFO: Mounting /dev/loop0 to /tmp/LTP_memlP0D9Y/mntdir fstyp=ext4 flags=0
memcontrol03.c:151: TINFO: Child 45356 in leaf_C: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45357 in leaf_D: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45358 in leaf_F: Allocating pagecache: 48234496
memcontrol03.c:108: TINFO: Child 45359 in trunk_G: Allocating anon: 142606336
memcontrol03.c:125: TPASS: Child 45359 exited
memcontrol03.c:228: TPASS: Expect: (A/B memory.current=58458112) ~= 52428800
memcontrol03.c:234: TPASS: Expect: (A/B/C memory.current=27197440) ~= 34603008
memcontrol03.c:236: TPASS: Expect: (A/B/D memory.current=22740992) ~= 17825792
memcontrol03.c:238: TPASS: Expect: (A/B/E memory.current=0) ~= 0
memcontrol03.c:108: TINFO: Child 45360 in trunk_G: Allocating anon: 173539328
memcontrol03.c:120: TPASS: Child 45360 killed by OOM
memcontrol03.c:244: TPASS: Expect: (A/B memory.current=58458112) ~= 52428800
tst_test.c:1997: TINFO: === Testing on xfs ===
tst_test.c:1295: TINFO: Formatting /dev/loop0 with xfs opts='' extra opts=''
tst_test.c:1307: TINFO: Mounting /dev/loop0 to /tmp/LTP_memlP0D9Y/mntdir fstyp=xfs flags=0
memcontrol03.c:151: TINFO: Child 45374 in leaf_C: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45375 in leaf_D: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45376 in leaf_F: Allocating pagecache: 48234496
memcontrol03.c:108: TINFO: Child 45377 in trunk_G: Allocating anon: 142606336
memcontrol03.c:125: TPASS: Child 45377 exited
memcontrol03.c:228: TPASS: Expect: (A/B memory.current=56885248) ~= 52428800
memcontrol03.c:234: TPASS: Expect: (A/B/C memory.current=26542080) ~= 34603008
memcontrol03.c:236: TPASS: Expect: (A/B/D memory.current=21823488) ~= 17825792
memcontrol03.c:238: TPASS: Expect: (A/B/E memory.current=0) ~= 0
memcontrol03.c:108: TINFO: Child 45378 in trunk_G: Allocating anon: 173408256
memcontrol03.c:120: TPASS: Child 45378 killed by OOM
memcontrol03.c:244: TPASS: Expect: (A/B memory.current=56885248) ~= 52428800
tst_test.c:1997: TINFO: === Testing on btrfs ===
tst_test.c:1295: TINFO: Formatting /dev/loop0 with btrfs opts='' extra opts=''
tst_test.c:1307: TINFO: Mounting /dev/loop0 to /tmp/LTP_memlP0D9Y/mntdir fstyp=btrfs flags=0
memcontrol03.c:151: TINFO: Child 45403 in leaf_C: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45408 in leaf_D: Allocating pagecache: 48234496
memcontrol03.c:151: TINFO: Child 45409 in leaf_F: Allocating pagecache: 48234496
memcontrol03.c:108: TINFO: Child 45410 in trunk_G: Allocating anon: 142606336
memcontrol03.c:125: TPASS: Child 45410 exited
memcontrol03.c:228: TPASS: Expect: (A/B memory.current=59703296) ~= 52428800
memcontrol03.c:234: TPASS: Expect: (A/B/C memory.current=29687808) ~= 34603008
memcontrol03.c:236: TPASS: Expect: (A/B/D memory.current=21299200) ~= 17825792
memcontrol03.c:238: TPASS: Expect: (A/B/E memory.current=0) ~= 0
memcontrol03.c:108: TINFO: Child 45411 in trunk_G: Allocating anon: 173801472
memcontrol03.c:120: TPASS: Child 45411 killed by OOM
memcontrol03.c:244: TPASS: Expect: (A/B memory.current=59637760) ~= 52428800

Summary:
passed 35
failed 0
broken 0
skipped 0
warnings 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant