Jump to content
Sign in to follow this  
chapstick

Long stutters with FSL and hyperthreading on/Affinity Mask

Recommended Posts

My system is a 5600x (6c/12t) with a 3080ti. Recently, I started getting long stutters/pauses in the FSL A32X, about 2 seconds every couple of minutes, especially in scenery-dense areas around airports on departure/arrival. 

It only seems to happen when I have SMT/hyperthreading turned on and using the following AM:

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

 

If I turn SMT off, so just 6 cores total, and let P3D rebuild the AM to default, the stutter goes away:

[JobScheduler]
AffinityMask=63
P3DCoreAffinityMask=63
MainThreadScheduler=0
RenderThreadScheduler=2
FrameWorkerThreadScheduler=4

Is there anything I can do to be able to have SMT on and stop this stuttering? 

 

 

 

Share this post


Link to post

Why would you want to use SMT if it's not good for P3D?

 


OS=WIN11 Home, Sim=P3D5 5.4 (P3D4 and FSX for install reasons)
Addons=ORBX, ASCA, AS, TOGA and tons of sceneries, aircraft

MB=Gigabyte AORUS Z790 Elite AX, CPU=i13900K, Cooling=Be quiet! Pure Loop II FX
GPU=KFA2 RTX3090 24 GB, RAM=64 GB DDR5-5600, HOTAS=Logitech G Saitek X52 Pro

Visit my website for fixes and addons: https://sites.google.com/view/dans-p3d-mods

Share this post


Link to post
36 minutes ago, blaunarwal said:

Why would you want to use SMT if it's not good for P3D?

 

Well supposedly you can achieve the same or better perf with SMT/HT on in P3D these days, and I'd prefer to keep it on for other apps and workloads besides P3D. I just have to figure out why FSL in particular doesn't like it on my system. 

Share this post


Link to post

You could try using an affinity mask that limits P3D to one virtual CPU per physical core (e.g. 1365 = 010101010101), which effectively disables SMT for P3D, but leaves it available for everything else running on the computer.

 

  • Upvote 1

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

You could try to move the umpolicy away from the FSL folders (there are several if you have expansions packs)

Say no to rebuild when launching P3D and see if it works for you.

Michael Moe


Michael Moe

 

fs2crew_747_banner1.png

Banner_FS2Crew_Emergency.png

Share this post


Link to post
4 hours ago, Chapstick said:

Well supposedly you can achieve the same or better perf with SMT/HT

Well, I think you proved, you can´t.


OS=WIN11 Home, Sim=P3D5 5.4 (P3D4 and FSX for install reasons)
Addons=ORBX, ASCA, AS, TOGA and tons of sceneries, aircraft

MB=Gigabyte AORUS Z790 Elite AX, CPU=i13900K, Cooling=Be quiet! Pure Loop II FX
GPU=KFA2 RTX3090 24 GB, RAM=64 GB DDR5-5600, HOTAS=Logitech G Saitek X52 Pro

Visit my website for fixes and addons: https://sites.google.com/view/dans-p3d-mods

Share this post


Link to post

Try removing FSL UM policy , worth a try 


MSI X670E Carbon Wifi, 7800X3D, TUF 4090 , X4 NVME's. OS on a 2TB 980 Pro , MSFS on " 2TB WD Black , G Skill F5 32 GB RAM ( 6000 allegedly) Corsair RM1000 PSU, Artic Freezer 280 AIO Cooler . Phanteks P600s Case ,TCL QM8B 50" 120/144 Hz TV, Warthog Stick and TCA Captains throttle ( full pack) Logitech / Saitek Rudder Pedals , Streamdeck XL / Streamdeck +

Share this post


Link to post

What's UM Policy ?

How can it be turned on / off ?


Main Simulation Rig:

Ryzen 5600x, 32GB RAM, Nvidia RTX 3060 Ti, 1 TB & 500 GB M.2 nvme drives, Win11.

Glider pilot since 1980...

Avid simmer since 1992...

Share this post


Link to post
4 minutes ago, jcomm said:

What's UM Policy ?

How can it be turned on / off ?

C/Users/YOU/Documents/Prepared3D Addon-ons/FSLabs/A320/Data/UMPolicy

Cut and paste to desktop( do not delete yet). Do that for all your FSL aircraft. i only fly 320 SL so i have removed the UM for that aircraft. I read on this and other forums there is a conflict with p3d affinity, give it a try !

  • Like 1

MSI X670E Carbon Wifi, 7800X3D, TUF 4090 , X4 NVME's. OS on a 2TB 980 Pro , MSFS on " 2TB WD Black , G Skill F5 32 GB RAM ( 6000 allegedly) Corsair RM1000 PSU, Artic Freezer 280 AIO Cooler . Phanteks P600s Case ,TCL QM8B 50" 120/144 Hz TV, Warthog Stick and TCA Captains throttle ( full pack) Logitech / Saitek Rudder Pedals , Streamdeck XL / Streamdeck +

Share this post


Link to post

Ah !  That !!!

I only have P3D installed a couple, at most 3 times a year, for the FSL and Active Sky only, and everytime I think I have seen that "massage" that supposedly the FSL installer does to my process affinity for P3D.exe. 

So that's it - there used to be a way to not enable it during install, but the last time I installed a 1 month professional dev license I got the idea I was no longer able to opt out from it 😕

So, what you pointed me to is very useful ! Thanks !

I am also ( just like the OP ) on a Ryzem 5600x, 6 core / 12 SMT vCPUs.

👍

I also would like to take this chance to ask for yet another suggestion:

- Coupled with that UMPolicy "blockage", what should I set in my 

[JobScheduler]

section, given I'm on a 6 core CPU with SMT enabled ?

THANKS !

Edited by jcomm

Main Simulation Rig:

Ryzen 5600x, 32GB RAM, Nvidia RTX 3060 Ti, 1 TB & 500 GB M.2 nvme drives, Win11.

Glider pilot since 1980...

Avid simmer since 1992...

Share this post


Link to post

have A LOOK IN THERE


MSI X670E Carbon Wifi, 7800X3D, TUF 4090 , X4 NVME's. OS on a 2TB 980 Pro , MSFS on " 2TB WD Black , G Skill F5 32 GB RAM ( 6000 allegedly) Corsair RM1000 PSU, Artic Freezer 280 AIO Cooler . Phanteks P600s Case ,TCL QM8B 50" 120/144 Hz TV, Warthog Stick and TCA Captains throttle ( full pack) Logitech / Saitek Rudder Pedals , Streamdeck XL / Streamdeck +

Share this post


Link to post

If you look at the task manager cpu usage with fsl a32x, all cores enabled by the p3d main affinity mask entry are being used equally, regardless of the other new p3d cpu affinity settings you put. This indicates there is probable issue with FSL cpu optimization, as normal p3d cpu usage should not look like that, and indicates lot of thread bouncing among cores made worse with HT enabled. That may be causing thread stalling and the long stutters, also resulting in p3d clock increasingly lagging behind. In normal conditions only the main job running core should have uniformely highest cpu use while others much lesser and variable when moving, which is the case seen with most other aircrafts.

  • Upvote 1

Share this post


Link to post

so does the fslabs UMP only make changes when running fslabs aircraft?


5800X3D, Gigabyte X570S MB, 4090FE, 32GB DDR4 3600 CL14, EVO 970 M.2's, Alienware 3821DW  and 2  22" monitors,  Corsair RM1000x PSU,  360MM MSI MEG, MFG Crosswind, T16000M Stick, Boeing TCA Yoke/Throttle, Skalarki MCDU and FCU, Saitek Radio Panel/Switch Panel, Spad.Next

Share this post


Link to post
5 hours ago, sonny147 said:

Try removing FSL UM policy , worth a try 

Unfortunately, the stutter is still present without the UMPolicy files. It's very strange because it wasn't doing this a week ago. 

Share this post


Link to post

any new software ?


MSI X670E Carbon Wifi, 7800X3D, TUF 4090 , X4 NVME's. OS on a 2TB 980 Pro , MSFS on " 2TB WD Black , G Skill F5 32 GB RAM ( 6000 allegedly) Corsair RM1000 PSU, Artic Freezer 280 AIO Cooler . Phanteks P600s Case ,TCL QM8B 50" 120/144 Hz TV, Warthog Stick and TCA Captains throttle ( full pack) Logitech / Saitek Rudder Pedals , Streamdeck XL / Streamdeck +

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