0

Possible Duplicate:
Is it possible to limit a Linux process so that it can only run on a particular core on a particular machine?

I would like to know how can I bind a process to a particular cpu core on a Linux server? I am running Centos 5.5. As you can see from screenshot added as comment, i have two cores...

Is there a simple way to do this?

taskset -p pid returns pids current affinity mask: 3. How do i know which core that is? My server only has dual core.

Thanks for advice.

peerra
  • 1

2 Answers2

0

You can accomplish this with the taskset command.

See: Is it possible to limit a Linux process so that it can only run on a particular core on a particular machine?

ewwhite
  • 201,205
0

This has been answered over on the Super User site. Though like one commenter said, you may find yourself with worse performance as the Linux Scheduler is pretty good.

Red Tux
  • 2,084
  • 13
  • 14