Lines Matching refs:cgroup
13 (*) Topics on API should be in Documentation/admin-guide/cgroup-v1/memory.rst)
177 mount -t cgroup -o cpuset none /opt/cpuset
228 echo 1 >/opt/cgroup/01/memory/use_hierarchy
229 mkdir /opt/cgroup/01/child_a
230 mkdir /opt/cgroup/01/child_b
238 /opt/cgroup/01/child_a/child_aa
239 /opt/cgroup/01/child_b/child_bb
240 /opt/cgroup/01/child_c
248 race and lock dependency with other cgroup subsystems.
252 # mount -t cgroup none /cgroup -o cpuset,memory,cpu,devices
267 # mount -t cgroup none /cgroup -o memory
268 # mkdir /cgroup/test
269 # echo 40M > /cgroup/test/memory.limit_in_bytes
270 # echo 0 > /cgroup/test/tasks
276 # move all tasks in /cgroup/test to /cgroup
278 # rmdir /cgroup/test
316 #mkdir /cgroup/A
317 #echo $$ >/cgroup/A/tasks
319 run some programs which uses some amount of memory in /cgroup/A.
323 #mkdir /cgroup/B
324 #echo 1 >/cgroup/B/memory.move_charge_at_immigrate
325 #echo "pid of the program running in group A" >/cgroup/B/tasks
330 See 8.2 of Documentation/admin-guide/cgroup-v1/memory.rst to see what value should
337 API. You can use tools/cgroup/cgroup_event_listener.c to test it.
339 (Shell-A) Create cgroup and run event listener::
341 # mkdir /cgroup/A
342 # ./cgroup_event_listener /cgroup/A/memory.usage_in_bytes 5M
344 (Shell-B) Add task to cgroup and try to allocate and free memory::
346 # echo $$ >/cgroup/A/tasks
353 Use /cgroup/A/memory.memsw.usage_in_bytes to test memsw thresholds.
355 It's good idea to test root cgroup as well.