触发mem_cgroup_do_precharge

为了触发个 race, 要让cpu offline 和 触发 mem_cgroup_do_precharge( ),学习了下cgroup, 方法可以如下:


mount -t cgroup  -o memory  agent_cgroup /logs/cgroup
mkdir /logs/cgroup/test
echo 1  > /logs/cgroup/test/memory.move_charge_at_immigrate
ps (to know some pid)
echo pid > tasks 


你可能感兴趣的:(触发mem_cgroup_do_precharge)