• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

AMD Works with Microsoft to Improve Zen 3 thru Zen 5 Performance in Windows 11 24H2

Joined
Mar 18, 2023
Messages
875 (1.41/day)
System Name Never trust a socket with less than 2000 pins
From a technical standpoint: why would branch prediction be different for root and users?

I am asking both "how" and "why".
 
Joined
Apr 12, 2013
Messages
7,531 (1.77/day)
I've tried a few benches under WinPE & the difference is there, even for AIDA64, roughly in the same ballpark of at least 2-5% over regular admin account. I haven't checked default admin in a long time but it could have something to do with default "Exploit protection" settings under Windows which includes DEP, CFG, SEHOP, ASLR et al.

Teaser
 
Joined
Nov 3, 2011
Messages
695 (0.15/day)
Location
Australia
System Name Eula
Processor AMD Ryzen 9 7900X PBO
Motherboard ASUS TUF Gaming X670E Plus Wifi
Cooling Corsair H150i Elite LCD XT White
Memory Trident Z5 Neo RGB DDR5-6000 64GB (4x16GB F5-6000J3038F16GX2-TZ5NR) EXPO II, OCCT Tested
Video Card(s) Gigabyte GeForce RTX 4080 GAMING OC
Storage Corsair MP600 XT NVMe 2TB, Samsung 980 Pro NVMe 2TB, Toshiba N300 10TB HDD, Seagate Ironwolf 4T HDD
Display(s) Acer Predator X32FP 32in 160Hz 4K FreeSync/GSync DP, LG 32UL950 32in 4K HDR FreeSync/G-Sync DP
Case Phanteks Eclipse P500A D-RGB White
Audio Device(s) Creative Sound Blaster Z
Power Supply Corsair HX1000 Platinum 1000W
Mouse SteelSeries Prime Pro Gaming Mouse
Keyboard SteelSeries Apex 5
Software MS Windows 11 Pro
Optional Windows 11 23H2's KB5041587 has a similar uplift.
 
Joined
Feb 1, 2019
Messages
3,599 (1.69/day)
Location
UK, Midlands
System Name Main PC
Processor 13700k
Motherboard Asrock Z690 Steel Legend D4 - Bios 13.02
Cooling Noctua NH-D15S
Memory 32 Gig 3200CL14
Video Card(s) 4080 RTX SUPER FE 16G
Storage 1TB 980 PRO, 2TB SN850X, 2TB DC P4600, 1TB 860 EVO, 2x 3TB WD Red, 2x 4TB WD Red
Display(s) LG 27GL850
Case Fractal Define R4
Audio Device(s) Soundblaster AE-9
Power Supply Antec HCG 750 Gold
Software Windows 10 21H2 LTSC
From a technical standpoint: why would branch prediction be different for root and users?

I am asking both "how" and "why".
They not, the gains on the admin account have been misinterpreted, I think @Solaris17 mentioned this in a recent post, and his comment wasnt a mile off a suggestion I made as well. This is also why when HUB tested the Windows build his results were different to when he tested the admin account.
 

Solaris17

Super Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
26,962 (3.83/day)
Location
Alabama
System Name RogueOne
Processor Xeon W9-3495x
Motherboard ASUS w790E Sage SE
Cooling SilverStone XE360-4677
Memory 128gb Gskill Zeta R5 DDR5 RDIMMs
Video Card(s) MSI SUPRIM Liquid X 4090
Storage 1x 2TB WD SN850X | 2x 8TB GAMMIX S70
Display(s) 49" Philips Evnia OLED (49M2C8900)
Case Thermaltake Core P3 Pro Snow
Audio Device(s) Moondrop S8's on schitt Gunnr
Power Supply Seasonic Prime TX-1600
Mouse Lamzu Atlantis mini (White)
Keyboard Monsgeek M3 Lavender, Moondrop Luna lights
VR HMD Quest 3
Software Windows 11 Pro Workstation
Benchmark Scores I dont have time for that.
They not, the gains on the admin account have been misinterpreted, I think @Solaris17 mentioned this in a recent post, and his comment wasnt a mile off a suggestion I made as well. This is also why when HUB tested the Windows build his results were different to when he tested the admin account.

It also just happens to be something that is repeated in a news post we recently posted. You can see they dont directly say they are the same but they dont clarify the statement given by AMD.

This is not related to the recent announcement, but anyone interested can see how branch predictors are not only primarily silicon tools, they only operate at the kernel level (outside of user space)


That is a short document going over a different issue from another time Zen 3 I think but the branch predictors are similar even today. Its pretty dry, but you can just skim it to get the idea pretty quickly.
 
Joined
Jan 3, 2021
Messages
3,501 (2.46/day)
Location
Slovenia
Processor i5-6600K
Motherboard Asus Z170A
Cooling some cheap Cooler Master Hyper 103 or similar
Memory 16GB DDR4-2400
Video Card(s) IGP
Storage Samsung 850 EVO 250GB
Display(s) 2x Oldell 24" 1920x1200
Case Bitfenix Nova white windowless non-mesh
Audio Device(s) E-mu 1212m PCI
Power Supply Seasonic G-360
Mouse Logitech Marble trackball, never had a mouse
Keyboard Key Tronic KT2000, no Win key because 1994
Software Oldwin
From a technical standpoint: why would branch prediction be different for root and users?

I am asking both "how" and "why".
There's a more fundamental question to be asked: how is it possible to write code that undermines (to an extent) the operation of branch predictors?

I'm not saying there aren't valid explanations for that, maybe related to security. But it's unclear. Modern hardware is designed to chew through many kinds of unoptimised code with great performance. That's in part because history (Itanium is history) has shown that compile-time optimisations aren't very effective because you can't predict which CPU resources will be available at runtime.

This is not related to the recent announcement, but anyone interested can see how branch predictors are not only primarily silicon tools, they only operate at the kernel level (outside of user space)

https://www.amd.com/system/files/do...ance-for-mitigating-branch-type-confusion.pdf
Thanks, although this goes over my head (by far). So kernel code can clear branch prediction buffers, with a surprisingly high penalty? Could that reduce the performance with normal user accounts more than with admin accounts? Because of more frequent context switching?
 

SL2

Joined
Jan 27, 2006
Messages
2,449 (0.36/day)
There's a more fundamental question to be asked: how is it possible to write code that undermines (to an extent) the operation of branch predictors?

I'm not saying there aren't valid explanations for that, maybe related to security.
Spectre mitigation?

That's the only speculation I've heard, and I have no problem believing it for now.

It can probably be checked by running some benches with an older Windows version, non-updated of course. I dunno if there's any point in doing that, as those updates did affect performance.
 
Last edited:
Joined
Jun 24, 2017
Messages
174 (0.06/day)
You're losing the point here.
It runs faster on 24H2 because they patched it, not because anything else.
Will they patch W10 scheduler? Probably not. That's the point.

This has been known for years and they decided to work on this after release, knowing older zen will benefit as well.
 
Top