|
1 | 1 | Memory Resource Controller |
2 | 2 |
|
3 | | -NOTE: The Memory Resource Controller has been generically been referred |
4 | | - to as the memory controller in this document. Do not confuse memory |
5 | | - controller used here with the memory controller that is used in hardware. |
| 3 | +NOTE: The Memory Resource Controller has generically been referred to as the |
| 4 | + memory controller in this document. Do not confuse memory controller |
| 5 | + used here with the memory controller that is used in hardware. |
6 | 6 |
|
7 | 7 | (For editors) |
8 | 8 | In this document: |
@@ -182,7 +182,7 @@ behind this approach is that a cgroup that aggressively uses a shared |
182 | 182 | page will eventually get charged for it (once it is uncharged from |
183 | 183 | the cgroup that brought it in -- this will happen on memory pressure). |
184 | 184 |
|
185 | | -Exception: If CONFIG_CGROUP_CGROUP_MEM_RES_CTLR_SWAP is not used.. |
| 185 | +Exception: If CONFIG_CGROUP_CGROUP_MEM_RES_CTLR_SWAP is not used. |
186 | 186 | When you do swapoff and make swapped-out pages of shmem(tmpfs) to |
187 | 187 | be backed into memory in force, charges for pages are accounted against the |
188 | 188 | caller of swapoff rather than the users of shmem. |
@@ -214,7 +214,7 @@ affecting global LRU, memory+swap limit is better than just limiting swap from |
214 | 214 | OS point of view. |
215 | 215 |
|
216 | 216 | * What happens when a cgroup hits memory.memsw.limit_in_bytes |
217 | | -When a cgroup his memory.memsw.limit_in_bytes, it's useless to do swap-out |
| 217 | +When a cgroup hits memory.memsw.limit_in_bytes, it's useless to do swap-out |
218 | 218 | in this cgroup. Then, swap-out will not be done by cgroup routine and file |
219 | 219 | caches are dropped. But as mentioned above, global LRU can do swapout memory |
220 | 220 | from it for sanity of the system's memory management state. You can't forbid |
@@ -491,13 +491,13 @@ The hierarchy is created by creating the appropriate cgroups in the |
491 | 491 | cgroup filesystem. Consider for example, the following cgroup filesystem |
492 | 492 | hierarchy |
493 | 493 |
|
494 | | - root |
| 494 | + root |
495 | 495 | / | \ |
496 | | - / | \ |
497 | | - a b c |
498 | | - | \ |
499 | | - | \ |
500 | | - d e |
| 496 | + / | \ |
| 497 | + a b c |
| 498 | + | \ |
| 499 | + | \ |
| 500 | + d e |
501 | 501 |
|
502 | 502 | In the diagram above, with hierarchical accounting enabled, all memory |
503 | 503 | usage of e, is accounted to its ancestors up until the root (i.e, c and root), |
|
0 commit comments