Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc: memcontrol: fix the obsolete content about force empty

We don't do page cache reparent anymore when offlining memcg, so update
force empty related content accordingly.

Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Yang Shi and committed by
Jonathan Corbet
053bc569 b631c7f5

+4 -3
+4 -3
Documentation/cgroup-v1/memory.txt
··· 70 70 memory.soft_limit_in_bytes # set/show soft limit of memory usage 71 71 memory.stat # show various statistics 72 72 memory.use_hierarchy # set/show hierarchical account enabled 73 - memory.force_empty # trigger forced move charge to parent 73 + memory.force_empty # trigger forced page reclaim 74 74 memory.pressure_level # set memory pressure notifications 75 75 memory.swappiness # set/show swappiness parameter of vmscan 76 76 (See sysctl's vm.swappiness) ··· 459 459 the cgroup will be reclaimed and as many pages reclaimed as possible. 460 460 461 461 The typical use case for this interface is before calling rmdir(). 462 - Because rmdir() moves all pages to parent, some out-of-use page caches can be 463 - moved to the parent. If you want to avoid that, force_empty will be useful. 462 + Though rmdir() offlines memcg, but the memcg may still stay there due to 463 + charged file caches. Some out-of-use page caches may keep charged until 464 + memory pressure happens. If you want to avoid that, force_empty will be useful. 464 465 465 466 Also, note that when memory.kmem.limit_in_bytes is set the charges due to 466 467 kernel pages will still be seen. This is not considered a failure and the