diff options
| author | Glauber Costa <glommer@parallels.com> | 2012-12-18 17:23:08 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-18 18:02:15 -0500 |
| commit | 92e793495597af4135d94314113bf13eafb0e663 (patch) | |
| tree | 7647becc58b64c524de60f3262188239ed808416 /Documentation/cgroups | |
| parent | 107dab5c92d5f9c3afe962036e47c207363255c7 (diff) | |
kmem: add slab-specific documentation about the kmem controller
Signed-off-by: Glauber Costa <glommer@parallels.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Frederic Weisbecker <fweisbec@redhat.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: JoonSoo Kim <js1304@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Rik van Riel <riel@redhat.com>
Cc: Suleiman Souhlal <suleiman@google.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/cgroups')
| -rw-r--r-- | Documentation/cgroups/memory.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index 5b5b6314377..8b8c28b9864 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation/cgroups/memory.txt | |||
| @@ -301,6 +301,13 @@ to trigger slab reclaim when those limits are reached. | |||
| 301 | kernel memory, we prevent new processes from being created when the kernel | 301 | kernel memory, we prevent new processes from being created when the kernel |
| 302 | memory usage is too high. | 302 | memory usage is too high. |
| 303 | 303 | ||
| 304 | * slab pages: pages allocated by the SLAB or SLUB allocator are tracked. A copy | ||
| 305 | of each kmem_cache is created everytime the cache is touched by the first time | ||
| 306 | from inside the memcg. The creation is done lazily, so some objects can still be | ||
| 307 | skipped while the cache is being created. All objects in a slab page should | ||
| 308 | belong to the same memcg. This only fails to hold when a task is migrated to a | ||
| 309 | different memcg during the page allocation by the cache. | ||
| 310 | |||
| 304 | * sockets memory pressure: some sockets protocols have memory pressure | 311 | * sockets memory pressure: some sockets protocols have memory pressure |
| 305 | thresholds. The Memory Controller allows them to be controlled individually | 312 | thresholds. The Memory Controller allows them to be controlled individually |
| 306 | per cgroup, instead of globally. | 313 | per cgroup, instead of globally. |
