Jump to content
Sign in to follow this  
angeli662

AffinityMask - Why?

Recommended Posts

Hi Jason, With P3D we can use with a six core HT=Off AM=30, and HT=On AM=340 for very good results, or AM=980. Those split the sim over four parts and 980 six parts all on four cores. With v4 we can use six parts or more. With more options we can try patterns such as 3028 which on six or more cores use five cores for the sim and enable three main sim processes each a free core and incorporates four cores loading. Some examples I also posted over on another discussion:

 

6 core no HT

011110=AM30 - sim

100001=AM33 - addons

 

6 core HT enabled:

00,01,01,01,01,00=AM340 - sim

00,11,11,01,01,00=AM980 - sim

11,00,00,00,00,11 - addons

 

v4 specific 6 core +HT:

10,11,11,01,01,00=AM3028

00,10,10,00,00,11 - addons

 

 

  • Upvote 1

Steve Waite: Engineer at codelegend.com

Share this post


Link to post

Thanks Steve.  I'll give those a try. And if I'm reading those correctly core 0 is all the way on the right and core 11 on the left?

Share this post


Link to post

It's better to think of the HT enabled CPU made from pairs of logical processors: with six cores we have core zero (LPs 1 and 0) on the right, and core five (LPs 11 and 10) on the left.

HT On - 11/10,9/8,7/6,5/4,3/2,1/0

HT Off - 5,4,3,2,1,0

We always only have six cores.

 

Think of the operation outcome this way: If we run two identical procedures on one core they will take n seconds to complete, the same two procedures - one to each Logical Processor of one core - take less time to complete. For example in the following graphic on the right each process (thread 1 and thread 2) is shown being computed for a time period then saved away and the other process switched in to continue computing for another period. On the left the addition of Hyperthreading hardware enables those two processes to complete sooner:

SwitchingImproves.jpg

 

 

  • Upvote 1

Steve Waite: Engineer at codelegend.com

Share this post


Link to post
On 6/19/2017 at 9:59 AM, Piotr007 said:

I am getting 100% load on ALL cores and threads with my i7 6700K @ 4,5 ghz. This is when the AM for all cores is set. 

Which is what in your case =?

Thanks.

Share this post


Link to post
On 6/19/2017 at 11:55 AM, SteveW said:

Four core HT disabled no AM = 0 = 15 because you only have four binary digits.

 

..with HT off and 8 cores I would check out 01111110 = 126 (six cores used by sim) or 00111100 = 60 (four cores used) avoiding the first and last cores.

Even better! HT enabled and 00,01,01,01,01,01,01,00 = 5460 (six LPs) or 00,00,01,01,01,01,00,00 = 1360 (four LPs).

Hi, Steve, I know this discussion was in 2017, but I hope you can still see this, because I tried using AM 5460, the ground texture become very blurry and don't seem to load properly. What I realized is that I must assign P3D to use core 0, then the textures can load properly. May I ask why is it so? I cannot get it off core 0. What I use as AM value now is 5461 (00, 01,01,01,01,01,01,01)

I am on P3D 4.5, i9-9900K HT on.

Share this post


Link to post
8 hours ago, yuyicheng1990 said:

Hi, Steve, I know this discussion was in 2017, but I hope you can still see this, because I tried using AM 5460, the ground texture become very blurry and don't seem to load properly. What I realized is that I must assign P3D to use core 0, then the textures can load properly. May I ask why is it so? I cannot get it off core 0. What I use as AM value now is 5461 (00, 01,01,01,01,01,01,01)

I am on P3D 4.5, i9-9900K HT on.

The phenomenon that you have experienced is one reason why tinkering around with AF can lead to unforeseen side effects and why it is often best to leave it in the default state, meaning not to enter anything at all. I can't tell you why the textures don't load properly if you use your specific AF setting, but don't you think that by just getting rid of the AF entry you can save yourself some headache?  The default setting wouldn't be used if there was something wrong with P3D's own affinity handling.

Share this post


Link to post

do i need/benefit from AM with my 10th Gen Intel(R) Core(TM) i9- 10900F processor(10-Core, 20M Cache, 2.8GHz to 5.2GHz)?

 

what setting should i have if i need it?

Share this post


Link to post
30 minutes ago, Beerz said:

what setting should i have if i need it?

Your CPU has 10 cores and 20 virtual processors. I’m not sure if P3D can take advantage of that number.

But if you want to try using all 20 then the AM setting is 349525 derived as follows:-

10101010101010101010

Load Task Manager and switch to the performance tab and observe what is being used.

  • Like 1

Ray (Cheshire, England).
System: P3D v5.3HF2, Intel i9-13900K, MSI 4090 GAMING X TRIO 24G, Crucial T700 4Tb M.2 SSD, Asus ROG Maximus Z790 Hero, 32Gb Corsair Vengeance DDR5 6000Mhz RAM, Win 11 Pro 64-bit, BenQ PD3200U 32” UHD monitor, Fulcrum One yoke.
Cheadle Hulme Weather

Share this post


Link to post
11 minutes ago, Ray Proudfoot said:

Your CPU has 10 cores and 20 virtual processors. I’m not sure if P3D can take advantage of that number.

But if you want to try using all 20 then the AM setting is 349525 derived as follows:-

10101010101010101010

Load Task Manager and switch to the performance tab and observe what is being used.

thank you, i will try it out.

Share this post


Link to post
12 hours ago, yuyicheng1990 said:

What I realized is that I must assign P3D to use core 0, then the textures can load properly.

Curious how you determined this? I keep P3D off core 0 (LPs 0 & 1) and it loads and runs great.

Edited by bbuckley

[CPL]  I9-9900K @5.0GHz HT ON, Maximus XI Hero, ASUS TUF RTX4080 OC, 32GB DDR4 3200 14, 1TB NVMe SSD, 500GB SSD, 1TB HDD, 40" Samsung 4K TV, Honeycomb Alpha & Bravo, Logitech Rudder Pedals, WIN11

Share this post


Link to post
3 hours ago, Ray Proudfoot said:

Your CPU has 10 cores and 20 virtual processors. I’m not sure if P3D can take advantage of that number.

But if you want to try using all 20 then the AM setting is 349525 derived as follows:-

10101010101010101010

Load Task Manager and switch to the performance tab and observe what is being used.

No, that AM uses one LP per physical core (10 total), rather than all 20 LPs.  1048575 would be all 20 LPs (binary 11111111111111111111), which is the same as not specifying an AM at all.

Personally, I use HT off with no AM on my 10900K, which prevents the OS from assigning non-P3D threads to the LPs that are active but masked out for use by P3D.


Bob Scott | President and CEO, AVSIM Inc
ATP Gulfstream II-III-IV-V

System1 (P3Dv5/v4): i9-13900KS @ 6.0GHz, water 2x360mm, ASUS Z790 Hero, 32GB GSkill 7800MHz CAS36, ASUS RTX4090
Samsung 55" JS8500 4K TV@30Hz,
3x 2TB WD SN850X 1x 4TB Crucial P3 M.2 NVME SSD, EVGA 1600T2 PSU, 1.2Gbps internet
Fiber link to Yamaha RX-V467 Home Theater Receiver, Polk/Klipsch 6" bookshelf speakers, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensor retrofit, Thermaltake View 71 case, Stream Deck XL button box

Sys2 (MSFS/XPlane): i9-10900K @ 5.1GHz, 32GB 3600/15, nVidia RTX4090FE, Alienware AW3821DW 38" 21:9 GSync, EVGA 1000P2
Thrustmaster TCA Boeing Yoke, TCA Airbus Sidestick, 2x TCA Airbus Throttle quads, PFC Cirrus Pedals, Coolermaster HAF932 case

Portable Sys3 (P3Dv4/FSX/DCS): i9-9900K @ 5.0 Ghz, Noctua NH-D15, 32GB 3200/16, EVGA RTX3090, Dell S2417DG 24" GSync
Corsair RM850x PSU, TM TCA Officer Pack, Saitek combat pedals, TM Warthog HOTAS, Coolermaster HAF XB case

Share this post


Link to post
16 minutes ago, w6kd said:

No, that AM uses one LP per physical core (10 total), rather than all 20 LPs.

Yes, my mistake. But only saying to use all 20 which I didn’t mean. Using just one VP per core is what I calculated so that number is correct. Results will be interesting.


Ray (Cheshire, England).
System: P3D v5.3HF2, Intel i9-13900K, MSI 4090 GAMING X TRIO 24G, Crucial T700 4Tb M.2 SSD, Asus ROG Maximus Z790 Hero, 32Gb Corsair Vengeance DDR5 6000Mhz RAM, Win 11 Pro 64-bit, BenQ PD3200U 32” UHD monitor, Fulcrum One yoke.
Cheadle Hulme Weather

Share this post


Link to post
13 hours ago, bbuckley said:

Curious how you determined this? I keep P3D off core 0 (LPs 0 & 1) and it loads and runs great.

Have you tried flying relatively fast with P3D off core 0? My experience is that leaving out core 0 leads to nothing ever loading during flight, so within 100nm you’re looking at blurries and no autogen. Need to pause for about 10 minutes for it to catch up. 

Share this post


Link to post
2 hours ago, DChockey08 said:

Have you tried flying relatively fast with P3D off core 0? My experience is that leaving out core 0 leads to nothing ever loading during flight, so within 100nm you’re looking at blurries and no autogen. Need to pause for about 10 minutes for it to catch up. 

I'll try it. I usually fly either a Phenom 100 relatively fast at FL240 or below or a Legacy lower. Both are relatively fast. 

Here's a couple pics: Phenom  Legacy

Edited by bbuckley

[CPL]  I9-9900K @5.0GHz HT ON, Maximus XI Hero, ASUS TUF RTX4080 OC, 32GB DDR4 3200 14, 1TB NVMe SSD, 500GB SSD, 1TB HDD, 40" Samsung 4K TV, Honeycomb Alpha & Bravo, Logitech Rudder Pedals, WIN11

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.
×
×
  • Create New...