taskset - cannot bind process to particular CPU
Hi!
I am trying to artificially starve my Java AppServer. I have 8-cpu box and want to give it only 2 cpus. On unix this called "processor sets - psrset" and works very well - PID will stay on given CPU and never take more than allocated. I am trying :
taskset -p -c 0,1 3263+
pid 3263's current affinity list: 0,7
pid 3263's new affinity list: 0,1
So it appears to be working but when I run the test I can see (with mpstat and qps) all processors are used more-less even instead of maxing-out 0,1 and leaving 2-7 free.
Am I missing something?