[Users] Using a specified CPU with cpuset.cpus

Kevin Wilson wkevils at gmail.com
Sun Mar 31 05:32:23 EDT 2013


Hello,
I want to use  cgroups (cpusets) to use only one CPU for sending a
network packet.

I tried this:
cgcreate -g cpuset:/test
cgset -r cpuset.cpus=1 /test
cgset -r cpuset.mems=0 /test
cgset -r cpuset.cpu_exclusive=1 /test
cgexec -g cpuset:test ping www.google.com

But "cat /proc/interrupts" show that network interrupts are
incremented on cpu0 only.

Am I missing anything ? what should I do so that interrupts will occur on CPU1 ?

Regards,
Kevin


More information about the Users mailing list