mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
fac2650276
This test fails routinely in our prod testing environment, and I can reproduce it locally as well. The test allocates dcache inside a cgroup, then drops the memory limit and checks that usage drops correspondingly. The reason it fails is because dentries are freed with an RCU delay - a debugging sleep shows that usage drops as expected shortly after. Insert a 1s sleep after dropping the limit. This should be good enough, assuming that machines running those tests are otherwise not very busy. Link: https://lkml.kernel.org/r/20230801135632.1768830-1-hannes@cmpxchg.org Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Paul E. McKenney <paulmck@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Roman Gushchin <roman.gushchin@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
||
---|---|---|
.. | ||
.gitignore | ||
cgroup_util.c | ||
cgroup_util.h | ||
config | ||
Makefile | ||
memcg_protection.m | ||
test_core.c | ||
test_cpu.c | ||
test_cpuset_prs.sh | ||
test_freezer.c | ||
test_kill.c | ||
test_kmem.c | ||
test_memcontrol.c | ||
test_stress.sh | ||
wait_inotify.c | ||
with_stress.sh |