aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/controllers/memory.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/controllers/memory.txt')
-rw-r--r--Documentation/controllers/memory.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/controllers/memory.txt b/Documentation/controllers/memory.txt
index 6015347b41e2..fba6af45225c 100644
--- a/Documentation/controllers/memory.txt
+++ b/Documentation/controllers/memory.txt
@@ -164,7 +164,7 @@ c. Enable CONFIG_CGROUP_MEM_CONT
164 164
165Since now we're in the 0 cgroup, 165Since now we're in the 0 cgroup,
166We can alter the memory limit: 166We can alter the memory limit:
167# echo -n 4M > /cgroups/0/memory.limit_in_bytes 167# echo 4M > /cgroups/0/memory.limit_in_bytes
168 168
169NOTE: We can use a suffix (k, K, m, M, g or G) to indicate values in kilo, 169NOTE: We can use a suffix (k, K, m, M, g or G) to indicate values in kilo,
170mega or gigabytes. 170mega or gigabytes.
@@ -185,7 +185,7 @@ number of factors, such as rounding up to page boundaries or the total
185availability of memory on the system. The user is required to re-read 185availability of memory on the system. The user is required to re-read
186this file after a write to guarantee the value committed by the kernel. 186this file after a write to guarantee the value committed by the kernel.
187 187
188# echo -n 1 > memory.limit_in_bytes 188# echo 1 > memory.limit_in_bytes
189# cat memory.limit_in_bytes 189# cat memory.limit_in_bytes
1904096 1904096
191 191
@@ -197,7 +197,7 @@ caches, RSS and Active pages/Inactive pages are shown.
197 197
198The memory.force_empty gives an interface to drop *all* charges by force. 198The memory.force_empty gives an interface to drop *all* charges by force.
199 199
200# echo -n 1 > memory.force_empty 200# echo 1 > memory.force_empty
201 201
202will drop all charges in cgroup. Currently, this is maintained for test. 202will drop all charges in cgroup. Currently, this is maintained for test.
203 203