Sunday, August 10, 2008

Setting Up CPU Affinity (select cpus for a process)

To set CPU HARD affinity (as opposed to the soft affinity already done by the kernel automatically) install schedtool. Then read the manual to understand how it works.

The short version:

To set a process’ affinity to only eg the first CPU (CPU0) and third CPU (CPU2) :

#> schedtool -a 0,2



Here is also a very good link to explain when and why HARD affinity could provide benefits vs SOFT affinity. I found way too many posts about "it's not needed" in my search instead of actual information, so clearing up the misconceptions might be a good thing in general.


http://www-128.ibm.com/developerwork...-affinity.html

Taken From: http://ubuntuforums.org/showthread.php?t=636521

2 comments:

Anonymous said...

Can anyone recommend the robust Script Deployment software for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central security management
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

nick jones said...

thanks for sharing information,good blog..

Passive Networking

Structured Cabling