Article 4ZY8S cgroup

cgroup

by
lelunicu
from LinuxQuestions.org on (#4ZY8S)
hi,
i like to understand.I use cgroup to limit on what cpu a task will run.
mkdir /sys/fs/cgroup/cpuset/nimic
chown root:root /sys/fs/cgroup/cpuset/nimic
echo 1 >/sys/fs/cgroup/cpuset/nimic/cpuset.cpus
sleep 10000 &
echo $! >/sys/fs/cgroup/cpuset/nimic/tasks

is possible to see with a tool (top) if sleep run on cpu 1?latest?d=yIl2AUoC8zA latest?i=gZXGFm41GXo:5MHgp_I_Y_Y:F7zBnMy latest?i=gZXGFm41GXo:5MHgp_I_Y_Y:V_sGLiP latest?d=qj6IDK7rITs latest?i=gZXGFm41GXo:5MHgp_I_Y_Y:gIN9vFwgZXGFm41GXo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments