Jump to content
Sign in to follow this  
Lenovouser

P3D V5.4 High CPU Usage & Temps

Recommended Posts

24 core CPU with 8 P cores and 16 E cores

HT Enabled 8 P cores and 16 E cores = 24 cores with 32 LPs
23,22,21,20,19,18,17,16,15,14,13,12,11,10,09,08,07,06,05,04,03,02,01,00=core number
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,11,11,11,11,11,01,01,01=AffinityMask = 4294967253
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,11,11,11,11,11,01,01,01=P3DCoreAffinityMask = 4294967253
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,00,00,00,00,00,00,00,01=MainThreadScheduler = 0
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,00,00,00,00,00,00,01,00=RenderThreadScheduler = 1
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,00,00,00,00,00,01,00,00=FrameWorkerThreadScheduler = 2

[JobScheduler]
AffinityMask=4294967253
P3DCoreAffinityMask=4294967253
MainThreadScheduler=0
RenderThreadScheduler=1
FrameWorkerThreadScheduler=2

That's a lot of power to the scenery, objects, and traffic loading. Remember that fps can only be increased by disallowing scenery loading sharing the main thread core running MainThreadScheduler (in this case 00) and by increasing the CPU frequency. Adding cores only allows increasing scenery loading speed.


Steve Waite: Engineer at codelegend.com

Share this post


Link to post

So to decrease CPU temps and maintain FPS we can reduce the scenery loaders. For example next I have opted to leave cores 20-23 free of P3D scenery loading:

HT Enabled 8 P cores and 16 E cores = 24 cores with 32 LPs
23,22,21,20,19,18,17,16,15,14,13,12,11,10,09,08,07,06,05,04,03,02,01,00=core number
 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,11,11,11,11,11,01,01,01=AffinityMask = 268435413
 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,11,11,11,11,11,01,01,01=P3DCoreAffinityMask = 268435413
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,00,00,00,00,00,00,00,01=MainThreadScheduler = 0
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,00,00,00,00,00,00,01,00=RenderThreadScheduler = 1
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,00,00,00,00,00,01,00,00=FrameWorkerThreadScheduler = 2

[JobScheduler]
AffinityMask=268435413
P3DCoreAffinityMask=268435413
MainThreadScheduler=0
RenderThreadScheduler=1
FrameWorkerThreadScheduler=2

 

And next I have also reduced scenery loading on the P cores

HT Enabled 8 P cores and 16 E cores = 24 cores with 32 LPs
23,22,21,20,19,18,17,16,15,14,13,12,11,10,09,08,07,06,05,04,03,02,01,00=core number
 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,01,01,01,01,01,01,01,01=AffinityMask = 268391765
 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,01,01,01,01,01,01,01,01=P3DCoreAffinityMask = 268391765
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,00,00,00,00,00,00,00,01=MainThreadScheduler = 0
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,00,00,00,00,00,00,01,00=RenderThreadScheduler = 1
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,00,00,00,00,00,01,00,00=FrameWorkerThreadScheduler = 2

[JobScheduler]
AffinityMask=268391765
P3DCoreAffinityMask=268391765
MainThreadScheduler=0
RenderThreadScheduler=1
FrameWorkerThreadScheduler=2

  • Like 1

Steve Waite: Engineer at codelegend.com

Share this post


Link to post

Pinned for now as it’s proving a useful guide to getting the best performance from various CPUs.

  • Upvote 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

@SteveW,

Thank you so much Steve, I'm at the office but will try tonight on my FSlabs!

Edited by Ray Proudfoot
Long quoted post removed.
  • Like 1

Ramon De Valencia

Intel i9 13900k @ stock / Windows 11 64 bit / 64GB DDR5 5600MHz CL36 RAM / GTX 4090 24GB VRAM / 1000 watt PSU

Share this post


Link to post
7 minutes ago, ttbq1 said:

Thank you so much Steve, I'm at the office but will try tonight on my FSlabs!

Good luck!

 

Remember guys that with HT (or SMT) disabled or unavailable, there's no need to alter the P3D affinity settings unless you want to disable some cores from loading scenery to reduce heat..

  • Like 1

Steve Waite: Engineer at codelegend.com

Share this post


Link to post
2 hours ago, SteveW said:

Remember guys that with HT (or SMT) disabled or unavailable, there's no need to alter the P3D affinity settings unless you want to disable some cores from loading scenery to reduce heat..

Thanks for that, Steve.  I didn't know that HT on/off was a qualifier for the core exclusion thing.

I don't use HT, so for now I'll just keep the stock AF setting as it seems to work fine.

Dave

  • Like 1

Simulator: P3Dv5.4

System Specs: Intel i7 13700K CPU, MSI Mag Z790 Tomahawk Motherboard, 32GB DDR5 6000MHz RAM, Nvidia GeForce RTX 4070 Video Card, 3x 1TB Samsung 980 Pro M.2 2280 SSDs, Windows 11 Home OS

 

Share this post


Link to post

So far I have not seen that the OP's problem is resolved, correct?

 


Best Regards,

Vaughan Martell - PP-ASEL KDTW

Share this post


Link to post
11 hours ago, newtie said:

@Bob Scott,

Are you locking externally?

Yes--VSync on, 30 Hz set in NCP to a 30 Hz display.

As far as the OP's question, my opinion is that the behavior he's experiencing is a feature, not a bug--he's having temp issues because the CPU is being heavily loaded, and in a broadly parallel manner which differs from versions up through 5.3HF2.  With previous versions, concurrent loading of all the cores only occurred intermittently during texture loads...now the duty cycle of all of the cores (% of the time they're doing work) is much higher.

w/r/t use of HT on a 24-core 13900K to run P3D: my understanding is that the OS will task the P-cores first, then the e-cores, and then the HT virtual processors.  I'm still of the opinion that need of processor cores beyond the 24 physical cores on the 13900 is questionable, and I've kept HT off (and disabled 4 e-cores, and masked off two of the 12 active e-cores to P3D) to minimize unnecessary heat, not split the cache available to the P-cores and preserve the ability to clock all the P-cores up (and one to 6 GHz).  Running P3D on the 8 p-cores (with the main thread at 6 GHz) plus 10 e-cores works so well I haven't really had the inclination to tinker as much as I have in the past.


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

System1 (P3Dv5/v4/XP12): 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/XP11): 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
1 hour ago, Bob Scott said:

my understanding is that the OS will task the P-cores first, then the e-cores, and then the HT virtual processors.

 

The O/S Thread Director is not relevant to programs that arrange their own threads to LPs such as P3D and FSX.


Steve Waite: Engineer at codelegend.com

Share this post


Link to post
1 hour ago, Bob Scott said:

Yes--VSync on, 30 Hz set in NCP to a 30 Hz display.

Exactly my setup. The 30/30 setup keeps CPU/GPU temps tolerable in my upstairs, south facing room. 😀

On my 12900, I tried HT on/off. Much smoother with HT on. Steve will chime in here and will say this has to do with scenery loading. We had this discussion is a thread a ways back. 

I went back to 5.3HF2 so I could use SimStarter but have since learned there is a small patch to make it work in 5.4.

I'll sit tight for a while.

  • Like 1

Share this post


Link to post
3 hours ago, vonmar said:

So far I have not seen that the OP's problem is resolved, correct?

 

A possible route to lowering CPU temps has been discussed with two advises: Restricting fps with techniques such as VSync etc. and restricting the number of LPs that P3D will utilize since default Affinity settings will use all LPs.

24 minutes ago, newtie said:

On my 12900, I tried HT on/off. Much smoother with HT on. Steve will chime in here and will say this has to do with scenery loading.

Correct - The performance gains from enabling HT (or SMT) come with loading files (Scenery, Objects and Traffic), increasing memory bandwidth and also increasing overall CPU bandwidth. However, with P3D the affinity settings must be made correctly to maintain fps by avoiding core sharing with the main threads given sole use of an HT core.


Steve Waite: Engineer at codelegend.com

Share this post


Link to post

...I should add that HT enabled also increases networking performance. So it is basic advise to enable HT but I stress to make sure the Affinity settings are made properly in P3D.


Steve Waite: Engineer at codelegend.com

Share this post


Link to post

As a novice, do you have suggestions for a 12900K processor for v5.3 and v5.4? Thanks        
       Robert 

Share this post


Link to post

@SteveW, I’ve been wrestling for months over the i9-13900K versus the AMD 7950X3D. Rob Ainscough tells me the AMD is the fastest of the two.

Given my choice of sim is P3D v5.3HF2 with the possibility of changing to 5.4 (but not v6 for now) which would you recommend? Like Bob I keep to 30Hz on my 4K monitor with unlimited and VSync enabled. I don’t touch NCP.


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
20 hours ago, SteveW said:

Good luck!

 

Remember guys that with HT (or SMT) disabled or unavailable, there's no need to alter the P3D affinity settings unless you want to disable some cores from loading scenery to reduce heat..

Steve!!! You are a Genius!! finally have been able to get everything out of my 13900k on p3d. Yesterday test FSLABS 320SL, Aerosoft EGLL, Orbx TE GB, almost 120 AI aircraft and FPS around 60 (it was 28 and stuttery as *%&^).... after taking off from 9R and reaching cruise level it even reach 80FPS and the best part is how smooth it was.

After the test I just Lock my FPS with 1/3 Vsync (I have a C1 LG 120HZ) and I can't be happier. Now, P3D is ugly I know, I just have it for my Fslabs A32X and I don't have any plans to uninstall it in the near future. 

  • Like 1

Ramon De Valencia

Intel i9 13900k @ stock / Windows 11 64 bit / 64GB DDR5 5600MHz CL36 RAM / GTX 4090 24GB VRAM / 1000 watt PSU

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...