[CentOS] processor affinity

Adam Grossman adam.grossman at devitron.com
Wed Feb 17 20:13:43 UTC 2010


On Wed, 2010-02-17 at 13:26 -0500, Adam Grossman wrote:
> On Wed, 2010-02-17 at 18:17 +0000, Simon Billis wrote:
> > Adam Grossman sent a missive on 2010-02-17:
> > 
> > > Hello,
> > > 
> > > i am running CentOS 5.4.  i have a requirement where i need to have 1
> > > application have a single processor all to its self, and the rest of the
> > > system run on the other processors.  "taskman" lets me bind the process
> > > to a processor(s), but it does not make it exclusive.   Is this possible
> > > to do? i have even tried mucking around with the rc.sysinit, but to no
> > > avail.
> > > 
> > > thank you very much,
> > Have you considered running through the pids of the all tasks and then using
> > taskset to change their affinities. You could also change all the init
> > scripts to invoke the process using something like "taskset -p [mask] [pid]"
> > and limit the mask to only the first few CPU's that you want them to have
> > access to.
> > 
> 
> that's probably a good idea.  have it be the last service that runs
> which moves everything to the processors i want.  i am going to give
> that an try.

i was asked to do this for increased performance.  but does centos have
any SMP load balancing which would probably work better then manually
doing load balancing?

thanks,
-=- adam grossman



More information about the CentOS mailing list