OpenCloudOS-Kernel/tools/testing/selftests/cgroup
Shakeel Butt 6323ec54b4 selftests: memcg: test high limit for single entry allocation
Test the enforcement of memory.high limit for large amount of memory
allocation within a single kernel entry.  There are valid use-cases
where the application can trigger large amount of memory allocation
within a single syscall e.g.  mlock() or mmap(MAP_POPULATE).

Make sure memory.high limit enforcement works for such use-cases.

Link: https://lkml.kernel.org/r/20220211064917.2028469-4-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Reviewed-by: Roman Gushchin <guro@fb.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Chris Down <chris@chrisdown.name>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-03-22 15:57:02 -07:00
..
.gitignore tests/cgroup: test cgroup.kill 2021-05-10 10:41:11 -04:00
Makefile selftests: cgroup: build error multiple outpt files 2021-12-10 16:46:01 -07:00
cgroup_util.c selftests: memcg: test high limit for single entry allocation 2022-03-22 15:57:02 -07:00
cgroup_util.h selftests: memcg: test high limit for single entry allocation 2022-03-22 15:57:02 -07:00
test_core.c selftests: cgroup: Test open-time cgroup namespace usage for migration checks 2022-01-06 11:02:29 -10:00
test_freezer.c tests/cgroup: move cg_wait_for(), cg_prepare_for_wait() 2021-05-10 10:41:11 -04:00
test_kill.c tests/cgroup: test cgroup.kill 2021-05-10 10:41:11 -04:00
test_kmem.c kselftests: cgroup: update kmem test for new vmstat implementation 2021-04-30 11:20:38 -07:00
test_memcontrol.c selftests: memcg: test high limit for single entry allocation 2022-03-22 15:57:02 -07:00
test_stress.sh selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00
with_stress.sh selftests: cgroup: Run test_core under interfering stress 2019-10-07 07:11:54 -07:00