Processor Affinity

Software Audio Console

Moderator: Bob L

Naturally Digital
Posts: 2886
Joined: Mon May 24, 2004 12:00 pm

Processor Affinity

Post by Naturally Digital »

Hi Bob,

I'm noticing on my Quad core machine that SAW and SAC seem to have an affinity for the same core on the processor... :rolleyes: IOW their main processing threads seem to end up on a common core. This also seems to be the case for multiple instances of SAWStudio.

Is there any way to detect and/or set the processor affinity from within the program(s) so the main threads run on separate cores?

Trackzilla
Posts: 875
Joined: Fri May 30, 2008 10:06 pm

Re: Processor Affinity

Post by Trackzilla »

Maybe I'm missing something, but can't you do that from the Windows Task Mangler? By selecting the process, right-clicking, selecting affinity, and assigning it to the desired core...
User avatar
Bob L
Posts: 17602
Joined: Tue Apr 20, 2004 12:00 pm
Been thanked: 9 times

Re: Processor Affinity

Post by Bob L »

You are correct that the first cores it finds are used... it does not attempt to search all running apps and determine who is using what core.

You can force them to different cores using the Task Manager.

Bob L
Naturally Digital
Posts: 2886
Joined: Mon May 24, 2004 12:00 pm

Re: Processor Affinity

Post by Naturally Digital »

Bob L wrote:You can force them to different cores using the Task Manager.
Yes, I'm doing that now. I just feel this would be nice if it were automatic instead of manual since SAW and SAC will be used together so often and as it is now the processing power maxes out prematurely.

Another thing I wondered is if the affinity could be set and stored as a preference.

Can it be done at the command line and added to the shortcut?

I end up setting it the same way every single time.

It's similar to the priority and single cpu options IMO.

Thanks!

User avatar
Bob L
Posts: 17602
Joined: Tue Apr 20, 2004 12:00 pm
Been thanked: 9 times

Re: Processor Affinity

Post by Bob L »

Well... I'll look into it for the next update.

Bob L
Warren
Posts: 916
Joined: Thu Feb 17, 2005 9:16 pm

Re: Processor Affinity

Post by Warren »

You can also use this program in a batch file to force SAC, SAW or any programs affinity to any or all processors

http://www.beyondlogic.org/solutions/pr ... ssutil.htm

Hope you get it fixed

Chris
Warren @ The Masters Tracks ;)
Naturally Digital
Posts: 2886
Joined: Mon May 24, 2004 12:00 pm

Re: Processor Affinity

Post by Naturally Digital »

Bob L wrote:Well... I'll look into it for the next update.
Awesome! Thanks Bob.

sebastiandybing
Member
Posts: 1002
Joined: Tue May 30, 2006 8:52 am

Re: Processor Affinity

Post by sebastiandybing »

such fuction would really justyfie multicore cpu´s :D
Sebastian
Post Reply