Project

General

Profile

Feature #3504

enable cgroup memory controller

Added by Johannes Matheis over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Kernel
Target version:
Start date:
11/11/2014
Due date:
% Done:

100%


Description

The current alpine kernel doesn't support the cgroup memory controller.
The memory controller isolates the memory behavior of a group of tasks from the rest of the system.
Setting this option increases fixed memory overhead associated with each page of memory in the system. To retain the old behavior, the cgroup memory controller should be disabled by default by setting the kernel boot parameter "cgroup_disable=memory", which will avoid these overheads.

Kernel configuration to enable it:
a. Enable CONFIG_CGROUPS
b. Enable CONFIG_RESOURCE_COUNTERS
c. Enable CONFIG_MEMCG
d. Enable CONFIG_MEMCG_SWAP (to use swap extension)
d. Enable CONFIG_MEMCG_KMEM (to use kmem extension)

Links:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/Documentation/cgroups/memory.txt?id=refs/tags/v3.14.22
http://cateee.net/lkddb/web-lkddb/MEMCG.html


Related issues

Duplicated by Alpine Linux - Feature #3702: Allow control groups to control memory resources Closed 01/22/2015

Associated revisions

Revision ea1a2b23
Added by Natanael Copa about 2 years ago

main/linux-grsec: enable cgroup memory controller for x86_64

fixes #3504

History

#1 Updated by Orion Miller over 2 years ago

I think this makes sense being apart of the default linux-grsec kernel. I would like to add all cgroup and LXC features that is checked by lxc-checkconfig.

#2 Updated by Natanael Copa over 2 years ago

I read that it also have a performance impact on fork(). Is it worth it?

#3 Updated by Natanael Copa over 2 years ago

  • Category set to Kernel
  • Target version changed from 3.1.0 to 3.2.0

#4 Updated by Natanael Copa about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#5 Updated by Natanael Copa almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF