Hide Forgot
+++ This bug was initially created as a clone of Bug #1384390 +++ # cgdelete -g memory:eatmem # cgcreate -g memory:eatmem # cgset -r memory.memsw.limit_in_bytes=15M eatmem # echo $? 0 <===== cgset returned 0 here # cgget -g memory:eatmem | grep -e memory.limit_in_bytes -e memory.memsw.limit_in_bytes memory.limit_in_bytes: 9223372036854771712 memory.memsw.limit_in_bytes: 9223372036854771712 # cgset -r memory.limit_in_bytes=15M eatmem # cgget -g memory:eatmem | grep -e memory.limit_in_bytes -e memory.memsw.limit_in_bytes memory.limit_in_bytes: 15728640 memory.memsw.limit_in_bytes: 9223372036854771712 # cgdelete -g memory:eatmem # cgcreate -g memory:eatmem # echo 15728640 > /sys/fs/cgroup/memory/eatmem/memory.memsw.limit_in_bytes -bash: echo: write error: Invalid argument <===== Directly use echo return fail # echo 15728640 > /sys/fs/cgroup/memory/eatmem/memory.limit_in_bytes # echo 15728640 > /sys/fs/cgroup/memory/eatmem/memory.memsw.limit_in_bytes # echo $? 0
Created attachment 1210053 [details] Preserve dirty flag when copying controller values
Commit: http://pkgs.fedoraproject.org/cgit/rpms/libcgroup.git/commit/?id=5fafcf9c309997511ba34f472d4704e460354f0f