← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2106102] Re: memcontrol03 from ubuntu_ltp_controller fails with memory.current distribution deviating from expected proportions

 

I think I'm seeing (B) with oracular:linux-gcp-64k version
6.11.0-1015.15 on a c4a-standard-16 (arm64) instance

tst_test.c:1833: TINFO: === Testing on btrfs ===
tst_test.c:1170: TINFO: Formatting /dev/loop3 with btrfs opts='' extra opts=''
tst_test.c:1182: TINFO: Mounting /dev/loop3 to /tmp/ltp-6JFbLBYjYZ/LTP_memuqMun2/mntdir fstyp=btrfs flags=0
memcontrol03.c:144: TINFO: Child 298595 in leaf_C: Allocating pagecache: 52428800
memcontrol03.c:144: TINFO: Child 298599 in leaf_D: Allocating pagecache: 52428800
memcontrol03.c:144: TINFO: Child 298600 in leaf_F: Allocating pagecache: 52428800
memcontrol03.c:107: TINFO: Child 298601 in trunk_G: Allocating anon: 155189248
memcontrol03.c:121: TPASS: Child 298601 exited
memcontrol03.c:208: TPASS: Expect: (A/B memory.current=54132736) ~= 52428800
memcontrol03.c:214: TPASS: Expect: (A/B/C memory.current=25165824) ~= 34603008
memcontrol03.c:216: TPASS: Expect: (A/B/D memory.current=24707072) ~= 17825792
memcontrol03.c:218: TPASS: Expect: (A/B/E memory.current=0) ~= 0
memcontrol03.c:107: TINFO: Child 298602 in trunk_G: Allocating anon: 178257920
memcontrol03.c:116: TPASS: Child 298602 killed by OOM
memcontrol03.c:224: TFAIL: Expect: (A/B memory.current=42467328) ~= 52428800

Since my understanding is these checks are based on arbitrarily defined
tolerance amounts, maybe the test just needs to have its tolerance
bumped for latest btrfs behavior?

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2106102

Title:
  memcontrol03 from ubuntu_ltp_controller fails with memory.current
  distribution deviating from expected proportions

Status in ubuntu-kernel-tests:
  New

Bug description:
  Failure observed on TF arm-server with oracular:linux-lowlatency
  6.11.0-1012.13 (2025.03.17).

  Log output:

        ---(snip)---
        tst_test.c:1833: TINFO: === Testing on xfs ===
        tst_test.c:1170: TINFO: Formatting /dev/loop0 with xfs opts='' extra opts=''
        tst_test.c:1182: TINFO: Mounting /dev/loop0 to /tmp/ltp-uA5omilvmh/LTP_memimR6Vj/mntdir fstyp=xfs flags=0
        memcontrol03.c:144: TINFO: Child 92595 in leaf_C: Allocating pagecache: 52428800
        memcontrol03.c:144: TINFO: Child 92596 in leaf_D: Allocating pagecache: 52428800
        memcontrol03.c:144: TINFO: Child 92597 in leaf_F: Allocating pagecache: 52428800
        memcontrol03.c:107: TINFO: Child 92598 in trunk_G: Allocating anon: 155189248
        memcontrol03.c:121: TPASS: Child 92598 exited
        memcontrol03.c:208: TPASS: Expect: (A/B memory.current=52822016) ~= 52428800
   (A)> memcontrol03.c:214: TPASS: Expect: (A/B/C memory.current=23134208) ~= 34603008
   (A)> memcontrol03.c:216: TPASS: Expect: (A/B/D memory.current=25165824) ~= 17825792
        memcontrol03.c:218: TPASS: Expect: (A/B/E memory.current=0) ~= 0
        memcontrol03.c:107: TINFO: Child 92599 in trunk_G: Allocating anon: 178257920
        memcontrol03.c:116: TPASS: Child 92599 killed by OOM
        memcontrol03.c:224: TPASS: Expect: (A/B memory.current=46661632) ~= 52428800
        tst_test.c:1833: TINFO: === Testing on btrfs ===
        tst_test.c:1170: TINFO: Formatting /dev/loop0 with btrfs opts='' extra opts=''
        tst_test.c:1182: TINFO: Mounting /dev/loop0 to /tmp/ltp-uA5omilvmh/LTP_memimR6Vj/mntdir fstyp=btrfs flags=0
        memcontrol03.c:144: TINFO: Child 92624 in leaf_C: Allocating pagecache: 52428800
        memcontrol03.c:144: TINFO: Child 92625 in leaf_D: Allocating pagecache: 52428800
        memcontrol03.c:144: TINFO: Child 92626 in leaf_F: Allocating pagecache: 52428800
        memcontrol03.c:107: TINFO: Child 92627 in trunk_G: Allocating anon: 155189248
        memcontrol03.c:121: TPASS: Child 92627 exited
   (B)> memcontrol03.c:208: TFAIL: Expect: (A/B memory.current=38469632) ~= 52428800
   (A)> memcontrol03.c:214: TFAIL: Expect: (A/B/C memory.current=19070976) ~= 34603008
   (A)> memcontrol03.c:216: TPASS: Expect: (A/B/D memory.current=18939904) ~= 17825792
        memcontrol03.c:218: TPASS: Expect: (A/B/E memory.current=0) ~= 0
        memcontrol03.c:107: TINFO: Child 92628 in trunk_G: Allocating anon: 178257920
        memcontrol03.c:116: TPASS: Child 92628 killed by OOM
   (B)> memcontrol03.c:224: TFAIL: Expect: (A/B memory.current=38404096) ~= 52428800

  There seems to be two issues that led to the test case failure:
  * (A). proportional protection seems not to work (in the above log, the results were out of expected range only for testing on btrfs)
  * (B). on btrfs, memory reclaimed more than expected

  Looking back at the test history, issue (A) seems to have been present
  at least since 2024.10.28, which is the oldest cycle for which I can
  search the logs. It just hadn't been caught due to *lenient* criteria
  until now.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2106102/+subscriptions



References