Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

taskset - cannot bind process to particular CPU

Ponti3900-OracleJun 24 2009 — edited Jun 25 2009
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2009
Added on Jun 24 2009
7 comments
2,539 views