Skip to content

Commit 84ad6d7

Browse files
hkamezawatorvalds
authored andcommitted
memcg: update menuconfig help text
page_cgroup is now allocated at boot and memmap doesn't includes pointer for page_cgroup. Fix the menu help text. Reviewed-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: KAMEZAWA hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 99e87fd commit 84ad6d7

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

‎init/Kconfig‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,16 +401,20 @@ config CGROUP_MEM_RES_CTLR
401401
depends on CGROUPS && RESOURCE_COUNTERS
402402
select MM_OWNER
403403
help
404-
Provides a memory resource controller that manages both page cache and
405-
RSS memory.
404+
Provides a memory resource controller that manages both anonymous
405+
memory and page cache. (See Documentation/controllers/memory.txt)
406406

407407
Note that setting this option increases fixed memory overhead
408-
associated with each page of memory in the system by 4/8 bytes
409-
and also increases cache misses because struct page on many 64bit
410-
systems will not fit into a single cache line anymore.
408+
associated with each page of memory in the system. By this,
409+
20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
410+
usage tracking struct at boot. Total amount of this is printed out
411+
at boot.
411412

412413
Only enable when you're ok with these trade offs and really
413-
sure you need the memory resource controller.
414+
sure you need the memory resource controller. Even when you enable
415+
this, you can set "cgroup_disable=memory" at your boot option to
416+
disable memory resource controller and you can avoid overheads.
417+
(and lose benefits of memory resource contoller)
414418

415419
This config option also selects MM_OWNER config option, which
416420
could in turn add some fork/exit overhead.

0 commit comments

Comments
 (0)