public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* [ISSUE] cgroup: test_percpu_basic fails on PREEMPT_RT due to lazy percpu stat flushing
@ 2026-03-11  8:49 Lucas Liu
  2026-03-11 14:17 ` Waiman Long
  0 siblings, 1 reply; 5+ messages in thread
From: Lucas Liu @ 2026-03-11  8:49 UTC (permalink / raw)
  To: cgroups, linux-kselftest

Hi recently I met this issue
 ./test_kmem
ok 1 test_kmem_basic
ok 2 test_kmem_memcg_deletion
ok 3 test_kmem_proc_kpagecgroup
ok 4 test_kmem_kernel_stacks
ok 5 test_kmem_dead_cgroups
memory.current 24514560
percpu 15280000
not ok 6 test_percpu_basic

In this test the memory.current 24514560, percpu 15280000, Diff ~9.2MB.

#define MAX_VMSTAT_ERROR (4096 * 64 * get_nprocs())

in this part (8cpus) MAX_VMSTAT_ERROR is 4M memory. On the RT kernel,
the labs(current - percpu) is 9.2M, that is the root cause for this
failure. I am not sure what value is suitable for this case(2M per cpu
maybe?)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-12 10:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11  8:49 [ISSUE] cgroup: test_percpu_basic fails on PREEMPT_RT due to lazy percpu stat flushing Lucas Liu
2026-03-11 14:17 ` Waiman Long
2026-03-12  6:27   ` Lucas Liu
2026-03-12 10:18   ` Li Wang
2026-03-12 10:30     ` Li Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox