angeli662

FSW and AffinityMask

Recommended Posts

Could someone here give a clue to why in the FSW.cfg is set to

[JobScheduler]
AffinityMask=-1          (-1)?

Share this post


Link to post
Help AVSIM continue to serve you!
Please donate today!

AffinityMask is a bit mask, ie a binary number made of 1's and 0's. Each bit position represents a processor core.

The rightmost bit is for core 0, the next one to the left is core 1, etc

1110 on a 4 core machine means run on cores 3,2, and 1 but stay off core 0. In the config you have to translate this to a decimal number, which is 14.

In signed arithmetic, -1 is all 1's, so -1 means to use all the processor core in your system.

Sorry I hope  that wasn't too long-winded :mellow:

Share this post


Link to post
2 minutes ago, fshobby said:

AffinityMask is a bit mask, ie a binary number made of 1's and 0's. Each bit position represents a processor core.

The rightmost bit is for core 0, the next one to the left is core 1, etc

1110 on a 4 core machine means run on cores 3,2, and 1 but stay off core 0. In the config you have to translate this to a decimal number, which is 14.

In signed arithmetic, -1 is all 1's, so -1 means to use all the processor core in your system.

Sorry I hope  that wasn't too long-winded :mellow:

I was just curious about the -1 I always used 254 for my CPU without HT. thanks for the answer.

Share this post


Link to post

-1 works for all chips regardless of core count.

Share this post


Link to post

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