diff options
Diffstat (limited to 'Documentation/cgroups/memory.txt')
-rw-r--r-- | Documentation/cgroups/memory.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index 6a066a270fc5..dd88540bb995 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation/cgroups/memory.txt | |||
@@ -376,14 +376,15 @@ cgroup might have some charge associated with it, even though all | |||
376 | tasks have migrated away from it. (because we charge against pages, not | 376 | tasks have migrated away from it. (because we charge against pages, not |
377 | against tasks.) | 377 | against tasks.) |
378 | 378 | ||
379 | Such charges are freed or moved to their parent. At moving, both of RSS | 379 | We move the stats to root (if use_hierarchy==0) or parent (if |
380 | and CACHES are moved to parent. | 380 | use_hierarchy==1), and no change on the charge except uncharging |
381 | rmdir() may return -EBUSY if freeing/moving fails. See 5.1 also. | 381 | from the child. |
382 | 382 | ||
383 | Charges recorded in swap information is not updated at removal of cgroup. | 383 | Charges recorded in swap information is not updated at removal of cgroup. |
384 | Recorded information is discarded and a cgroup which uses swap (swapcache) | 384 | Recorded information is discarded and a cgroup which uses swap (swapcache) |
385 | will be charged as a new owner of it. | 385 | will be charged as a new owner of it. |
386 | 386 | ||
387 | About use_hierarchy, see Section 6. | ||
387 | 388 | ||
388 | 5. Misc. interfaces. | 389 | 5. Misc. interfaces. |
389 | 390 | ||
@@ -396,13 +397,15 @@ will be charged as a new owner of it. | |||
396 | 397 | ||
397 | Almost all pages tracked by this memory cgroup will be unmapped and freed. | 398 | Almost all pages tracked by this memory cgroup will be unmapped and freed. |
398 | Some pages cannot be freed because they are locked or in-use. Such pages are | 399 | Some pages cannot be freed because they are locked or in-use. Such pages are |
399 | moved to parent and this cgroup will be empty. This may return -EBUSY if | 400 | moved to parent(if use_hierarchy==1) or root (if use_hierarchy==0) and this |
400 | VM is too busy to free/move all pages immediately. | 401 | cgroup will be empty. |
401 | 402 | ||
402 | Typical use case of this interface is that calling this before rmdir(). | 403 | Typical use case of this interface is that calling this before rmdir(). |
403 | Because rmdir() moves all pages to parent, some out-of-use page caches can be | 404 | Because rmdir() moves all pages to parent, some out-of-use page caches can be |
404 | moved to the parent. If you want to avoid that, force_empty will be useful. | 405 | moved to the parent. If you want to avoid that, force_empty will be useful. |
405 | 406 | ||
407 | About use_hierarchy, see Section 6. | ||
408 | |||
406 | 5.2 stat file | 409 | 5.2 stat file |
407 | 410 | ||
408 | memory.stat file includes following statistics | 411 | memory.stat file includes following statistics |