Sign in to follow this  
Rhinozherous

Useful to set Core Affinity for side programs?

Recommended Posts

Hey!

 

I checked on my last flight via task manager the graphs for my six core amd fx6300... Core 0 was maxed out the most time, the other 1 to 5 cores where all the same at around 40% I use an Affinity mask of 64. I run several other progs beside FSX - active sky and so on.

 

Now my plan is to make Core 0 as free as possible and assign all other programs (active sky, ProATC x, fsrealtime...) to the cores 1 to 5. I think this should be possible via task manager Affinity settings.

 

Anyone who tried this already?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Yes that's usual for performance, other exe apps that run when the sim runs should be kept off of the main sim core and also to some extent the second core used by the sim should be kept clear. Use an app or a batch file to start apps with affinity.

 

An AffinityMask=64=01000000, the first six from right to left are zeros, in this case it is ignored and all your six cores are used as in AM=63=00111111.

 

For the six core use AM=30=00011110 you can see the first core is free of the sim and the sixth core is free of the sim. In this case the sim gets four cores and you can use core zero and five for assignment to exe apps.

 

you can make a .bat file and drag a shortcut from that to the desktop. Here is an example batch file line that starts a traffic addon and provides cores 0 and 5 to it:

 

start /B "" /affinity 21 "C:\Program Files (x86)\FSTraffic\FSTraffic.exe"

 

 

here /affinity 21 is in Hexadecimal and so in Decimal = 33 and in Binary = 100001 gives core zero on the right and core 5 on the left, leaving four cores 1, 2, 3 and 4 available to the sim on AM=30=011110.

 

This is assuming you are not running with HT enabled. Always try to give exe apps two logical processors minimum.

Share this post


Link to post
Share on other sites

easy way to try out a .bat is to make a new text file on the desktop, edit it in notepad, add that example line above but put:

start /B "" /affinity 21 "Notepad.exe"

 

Then save the txt file as .bat and double-click it, Notepad should start. Now run Task Manager from your right-click on the Task Bar. On the details page choose Notepad and see the Set Affinity setting.

 

It's best not to start an app then change the affinity with those checkboxes because it only moves threads off of cores you uncheck, which is different to actually starting the app with an affinity set.

Share this post


Link to post
Share on other sites

Finally I now work with Project Lasso, (free version) with this one can permanently set the core affinity via rightclick per programm! It is very handy and now my new task manager!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this