Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86775
b: refs/heads/master
c: fb78922
h: refs/heads/master
i:
  86773: fb3bca2
  86771: 12a497d
  86767: e93041c
v: v3
  • Loading branch information
Balbir Singh authored and Linus Torvalds committed Mar 5, 2008
1 parent 226d3ec commit 168bd03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a10568733cdff03cac742955c7254585451f5431
refs/heads/master: fb78922ce9c71b24c4af1ffc9c3d60c57ac471fb
6 changes: 3 additions & 3 deletions trunk/Documentation/controllers/memory.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ c. Enable CONFIG_CGROUP_MEM_CONT

Since now we're in the 0 cgroup,
We can alter the memory limit:
# echo -n 4M > /cgroups/0/memory.limit_in_bytes
# echo 4M > /cgroups/0/memory.limit_in_bytes

NOTE: We can use a suffix (k, K, m, M, g or G) to indicate values in kilo,
mega or gigabytes.
Expand All @@ -185,7 +185,7 @@ number of factors, such as rounding up to page boundaries or the total
availability of memory on the system. The user is required to re-read
this file after a write to guarantee the value committed by the kernel.

# echo -n 1 > memory.limit_in_bytes
# echo 1 > memory.limit_in_bytes
# cat memory.limit_in_bytes
4096

Expand All @@ -197,7 +197,7 @@ caches, RSS and Active pages/Inactive pages are shown.

The memory.force_empty gives an interface to drop *all* charges by force.

# echo -n 1 > memory.force_empty
# echo 1 > memory.force_empty

will drop all charges in cgroup. Currently, this is maintained for test.

Expand Down
1 change: 1 addition & 0 deletions trunk/kernel/res_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ ssize_t res_counter_write(struct res_counter *counter, int member,

ret = -EINVAL;

strstrip(buf);
if (write_strategy) {
if (write_strategy(buf, &tmp)) {
goto out_free;
Expand Down

0 comments on commit 168bd03

Please sign in to comment.