Automatic Setting of Processor Affinity?

Questions and Answers : Wish list : Automatic Setting of Processor Affinity?
Message board moderation

To post messages, you must log in.

AuthorMessage
Astromancer.
Avatar

Send message
Joined: 12 Sep 02
Posts: 32
Credit: 2,664,331
RAC: 0
United States
Message 577477 - Posted: 28 May 2007, 21:08:47 UTC

I find that with some projects / WU's that having the WU only running on one core causes it to run faster.

And my computer also for whatever reason seems a bit more stable and responsive when it's set properly.

So my request would be for the BOINC manager to set the affinity when it launches the apps to work on the WU's.

I was actually rather surprised to see that it was not being done when I checked. So if anyone knows why, that would be interesting to know as well (Well if there is a real reason for it).
ID: 577477 · Report as offensive
OzzFan Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 9 Apr 02
Posts: 15691
Credit: 84,761,841
RAC: 28
United States
Message 577579 - Posted: 29 May 2007, 0:41:41 UTC

I'm not sure I understand the request. Every workunit is assigned a CPU automatically. If you only want to run one core, then change your processor preference to 1 so that BOINC will only use a single core at all times.

The slowdown from using multiple cores usually comes from the fact that both cores have to fight for RAM access, however the slowdown is usually minimal compared to completing two workunits at the same time, which is why many people prefer to run workunits on every core.
ID: 577579 · Report as offensive
John McLeod VII
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 15 Jul 99
Posts: 24806
Credit: 790,712
RAC: 0
United States
Message 577602 - Posted: 29 May 2007, 1:22:43 UTC

The experiment was done recently, and there is no difference on most hardware/OS combinations if CPU affinity is set. On the very few that there was a difference, it was actually slightly faster if no CPU affinity is set. Given the above information, it is unlikely to happen.


BOINC WIKI
ID: 577602 · Report as offensive
Astromancer.
Avatar

Send message
Joined: 12 Sep 02
Posts: 32
Credit: 2,664,331
RAC: 0
United States
Message 577708 - Posted: 29 May 2007, 5:01:14 UTC - in response to Message 577602.  

The experiment was done recently, and there is no difference on most hardware/OS combinations if CPU affinity is set. On the very few that there was a difference, it was actually slightly faster if no CPU affinity is set. Given the above information, it is unlikely to happen.


Hmmmm... Perhaps it was just what was going on with my computer at the time then. As it seemed to go a bit faster with the affinity set. If some fairly good testing was done on it, I can't argue with that though :)
ID: 577708 · Report as offensive
Profile Crunch3r
Volunteer tester
Avatar

Send message
Joined: 15 Apr 99
Posts: 1546
Credit: 3,438,823
RAC: 0
Germany
Message 580299 - Posted: 2 Jun 2007, 17:48:29 UTC - in response to Message 577602.  

The experiment was done recently, and there is no difference on most hardware/OS combinations if CPU affinity is set. On the very few that there was a difference, it was actually slightly faster if no CPU affinity is set. Given the above information, it is unlikely to happen.


Setting affinity on linux/unix based OSes is not a good idea. The linux kernel does good on sheduling the threads. On windows it's the other way around. ;)

So adding affinity on windows is a good thing to prevent process "hopping".







Join BOINC United now!
ID: 580299 · Report as offensive

Questions and Answers : Wish list : Automatic Setting of Processor Affinity?


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.