Jump to content

Sign in to follow this  
Lewis Steeper

AffinityMask

Recommended Posts

Hi there,

Ive tried using the Gatwick Sim tool but it only supports 8 cores.

Does anyone know how to work out / provide me with a affinity mark for 18 core / 36 thread CPU? 

 

Thanks in advance,

 

Lew

Share this post


Link to post

Lew, it's actually pretty easy to figure out for youself, as it follows a standard decimal coded binary scheme.

That said, you can also Google for a Binary to Decimal Converter and a Decimal to Binary Converter. Just use 1's for core on and 0 for core off, and remember that it works LEFT TO RIGHT, not RIGHT TO LEFT.

Hope this helps.

 


Dave-Aerosoft-Signature-Banner-2019.png

Share this post


Link to post

Here's an Affinity Mask calculator that can be downloaded and saved.  Doesn't require installation (portable), can be set to any number of cores, and can be set to calculate AM with HT on or off.  Read the entire first post in the forum thread... the Media Fire download requires a password (must be super secret stuff :biggrin:).

https://www.sas1946.com/main/index.php?topic=32520.0

Super easy to use!

HTH,

Greg


i7-8086K @ 5.3GHz, EVGA Z390 Dark, EVGA 2080 Super driving a 27" 2K LCD, G.Skill 32GB 3900 Trident Z 16-16-16, Samsung 512GB 970 Pro NVMe (OS and P3D) and Sabrent 1TB Rocket NVMe, Malware 10 Pro 64.  P3Dv4.5HF2

Share this post


Link to post

Is a entry for AM useful in P3Dv4?

If I recall, it was needed in FSX.


Richard Chafey

 

i7-8700K @4.9GHz - 32Gb @3200  - ASUS ROG Maximus X Hero - EVGA GTX1080Ti - CH Fighterstick - CH Pro Throttle CH Rudder pedals

P3D, X-Plane 11

 

Share this post


Link to post

Affinity Mask works in all Windows programs which are written to take advantage of multiple cores, so technically the answer is yes.

That said, only the user would know if Affinity Mask is beneficial with any ESP derivative as (particularly with P3DV4) it's use is based on what other software is running and what the person wants to accomplish by assigning specific cores to specific software.

I run at least 7 other programs while running P3DV4 under an i7-4770K running at 4.3GHz with a GTX 1080 and I have yet to find any benefit to manually assigning cores, but again it depends on what software someone is using and generally speaking someone's system specs.

I found using Affinity Mask was not beneficial under FSX:SE as well, though it made a difference with FSX:MS.  The reason is that DTG found and eliminated some dual thread processing of autogen, and this made processing more streamlined.

Best wishes.

 

 

  • Upvote 3

Dave-Aerosoft-Signature-Banner-2019.png

Share this post


Link to post

Thanks Dave,

Very helpful information.


Richard Chafey

 

i7-8700K @4.9GHz - 32Gb @3200  - ASUS ROG Maximus X Hero - EVGA GTX1080Ti - CH Fighterstick - CH Pro Throttle CH Rudder pedals

P3D, X-Plane 11

 

Share this post


Link to post
15 hours ago, DaveCT2003 said:

and remember that it works LEFT TO RIGHT, not RIGHT TO LEFT.

Dave, I have to ask what you mean by this?  for example in a 4 core machine with HT on (8 LPs) 254 = 11 11 11 10 so the RIGHT most bit (LSB) is LP0 and the rest go RIGHT to LEFT.  I know I am missing what you mean, your advice is always a must read.


Bruce Buckley | RW Commercial / Instrument / SEL / MEL

I9-9900K @5.0GHz, Maximus XI  Hero, GTX 1080ti, 32GB DDR4 3200 14, 1TB NVMe SSD, 500GB SSD, 1TB HDD, 40" Samsung 4K TV, Saitek/Logitech Pro Yoke, Throttle Q, Rudder Pedals, Switch Panel, WIN10, P3DV4.5, PTA, ASP4, REX TDSC Lots of ORBX stuff and some add on airports / aircraft

Share this post


Link to post
42 minutes ago, bbuckley said:

Dave, I have to ask what you mean by this?  for example in a 4 core machine with HT on (8 LPs) 254 = 11 11 11 10 so the RIGHT most bit (LSB) is LP0 and the rest go RIGHT to LEFT.  I know I am missing what you mean, your advice is always a must read.

 

Hello my friend,

Here is a terrific thread that explains what I mean. We may be saying the same thing (forgive me for not taking too much time at the moment, I'm neck deep in testing).

 

 

 


Dave-Aerosoft-Signature-Banner-2019.png

Share this post


Link to post

AffinityMask is not needed at all and especially with P3D and Windows 10.  All of your cores are operating at 100% in Windows 10 when P3D is running.  It use to be just one core was at 100% and the other cores were at 0.  Microsoft fixed.  To verify, click on the Windows key + R, type resmon, start up P3D, in resmon, click on CPU tab and make sure the P3D box is enabled so you will know it is just monitoring P3D.  Look to the right and you will see that every core is being used 100%.  In Resource Monitor, it will also show what each core is doing.  Cool stuff...

EDIT:  It even works for FSX.


Jim Young | AVSIM Online! - Simming's Premier Resource!

Member, AVSIM Board of Directors - Serving AVSIM since 2001

Submit News to AVSIM
Important other links: Basic FSX Configuration Guide | AVSIM CTD Guide | AVSIM Prepar3D Guide | Help with AVSIM Site | Signature Rules | Screen Shot Rule | AVSIM Terms of Service (ToS)

I7 8086K  5.0GHz | GTX 1080 TI OC Edition | Dell 34" and 24" Monitors | ASUS Maximus X Hero MB Z370 | Samsung M.2 NVMe 500GB and 1TB | Samsung SSD 500GB x2 | Toshiba HDD 1TB | WDC HDD 1TB | Corsair H115i Pro | 16GB DDR4 3600C17 | Windows 10 

 

Share this post


Link to post
15 minutes ago, Jim Young said:

AffinityMask is not needed at all and especially with P3D and Windows 10.  All of your cores are operating at 100% in Windows 10 when P3D is running.

This is not accurate, at all!  Dave said it best above:

...only the user would know if Affinity Mask is beneficial with any ESP derivative as (particularly with P3DV4) it's use is based on what other software is running and what the person wants to accomplish by assigning specific cores to specific software.

Greg

 


i7-8086K @ 5.3GHz, EVGA Z390 Dark, EVGA 2080 Super driving a 27" 2K LCD, G.Skill 32GB 3900 Trident Z 16-16-16, Samsung 512GB 970 Pro NVMe (OS and P3D) and Sabrent 1TB Rocket NVMe, Malware 10 Pro 64.  P3Dv4.5HF2

Share this post


Link to post

My very good friend Jim's technical advice and expertise is top notch, so I must have misunderstood what he means.  I'm currently running P3DV4 in testing, and you can see below that several cores are under utilized (not at 100%).

I'll say again that I don't USUALLY use AF with P3DV4, however there are circumstances where it would be beneficial to use for P3D and other programs as well. I usually set this via a BAT file which loads with the software, however Process Laso is also another good means.

BssARcg.png

  • Upvote 1

Dave-Aerosoft-Signature-Banner-2019.png

Share this post


Link to post
3 hours ago, lownslo said:

This is not accurate, at all!  Dave said it best above:

...only the user would know if Affinity Mask is beneficial with any ESP derivative as (particularly with P3DV4) it's use is based on what other software is running and what the person wants to accomplish by assigning specific cores to specific software.

Greg

 

I would also agree with that statement - if you do not know what you want to accomplish, you may as well leave out any AffinityMask, since you are likely to make it worse, not better..

Having said that, I find that I get a smoother ride when I move P3D off the first core and give it it's very own place to run.. Windows will always run other housekeeping processes in the background which can interfere with smooth operation.  On the other hand, for every core that you set aside, you are taking away CPU power from the pool that Windows assigns work to..  :happy:


Bert

Share this post


Link to post
1 hour ago, Bert Pieke said:

I would also agree with that statement - if you do not know what you want to accomplish, you may as well leave out any AffinityMask, since you are likely to make it worse, not better..

Having said that, I find that I get a smoother ride when I move P3D off the first core and give it it's very own place to run.. Windows will always run other housekeeping processes in the background which can interfere with smooth operation.  On the other hand, for every core that you set aside, you are taking away CPU power from the pool that Windows assigns work to..  :happy:

Why move it off of the first core?  Before all cores were being used with Windows 10, we had to use the AF tweak to get it to use some of our other cores.  Now it is using all of the cores (the person who has the most cores wins) and some cores are more active than others indicating some cores are processing Windows chores, P3D is using other cores but the main point is that all cores are being used and that's what the AF tweak was set up to do.  I have seen so many crashes while using this tweak in the past and many members are confused, very confused.  I like the fact all cores are being used now.  Moving P3D off the first core is probably just a waste of time as the benefits, if any, will be minimal.  I think we need to get away from members risking the chance of putting in the wrong parameters for AF and subsequently crashing occasionally and move on to the future.

Best regards,

Jim


Jim Young | AVSIM Online! - Simming's Premier Resource!

Member, AVSIM Board of Directors - Serving AVSIM since 2001

Submit News to AVSIM
Important other links: Basic FSX Configuration Guide | AVSIM CTD Guide | AVSIM Prepar3D Guide | Help with AVSIM Site | Signature Rules | Screen Shot Rule | AVSIM Terms of Service (ToS)

I7 8086K  5.0GHz | GTX 1080 TI OC Edition | Dell 34" and 24" Monitors | ASUS Maximus X Hero MB Z370 | Samsung M.2 NVMe 500GB and 1TB | Samsung SSD 500GB x2 | Toshiba HDD 1TB | WDC HDD 1TB | Corsair H115i Pro | 16GB DDR4 3600C17 | Windows 10 

 

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
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    17%
    $4,420.00 of $25,000.00 Donate Now
×
×
  • Create New...