, 8 tweets, 6 min read Read on Twitter
1/n GameDev Environment II: One weird trick to get a 70% performance boost on your 2990WX #threadripper and other windows settings to change

A Yak Shaving for Fun & Profit series™
2/n TLDR: Setting your CPU affinity off of Core 0/1 sometimes gets you a big perf boost. Windows scheduler was not designed with high NUMA core counts in mind
You can use powershell scripts (Start /affinity [mask] “” [executable]) or if you're like me, use ProcessLasso
3/n Details:
Was seeing some very terrible performance behavior on TR2 where it was worse than TR1 or other small core count CPUs.
After investigating on the net, turns out there's lots of contention on Core 0/1 with Windows
4/n Also bizarre that even in cases where an app/benchmark was using all cores, there was still a noticeable perf improvement.
Not sure about internals of windows scheduler but even in NUMA aware mode, there seems to be a benefit in explicitly pinning PIDS
5/ AMD added "Dynamic Local Mode" to auto pin threads to the die with fastest local memory access based on CPU usage. Here's the memory layout of TR2 and more details from @AMDRyzen
community.amd.com/community/gami…
@AMDRyzen 6/n (Conjecture) Possible causes for schedule wars: context switches sys calls post-spectre world are expensive (iirc, intel hard flushes l1 cache). Possible that context switching on pinned PIDs does not due this but this is more for @markrussinovich or @BruceDawson0xB domain
@AMDRyzen @markrussinovich @BruceDawson0xB 7/n Also interesting seeing the PCIe channel access to the numa nodes. Here's an lstopo diagram (which runs on windows too!)
For more detailed deep dives:
anandtech.com/show/13446/the…
And @Level1Techs
@AMDRyzen @markrussinovich @BruceDawson0xB @Level1Techs n/n Finally, at least on my mobo, changing DRAM memory interleaving and interleaving size didn't make a perf impact but caveat I didn't extensively test

(Summary of what memory interleaving does: community.amd.com/thread/223621)
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to ikrima ✈ to his onesie
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!