This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 510
Port normalized SpinWait from CoreCLR #7569
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Used Kount's SpinPerf code to collect numbers. Had to tweak it because it didn't build (missing method). This is on Xeon E3-1245 v6 @ 3.70 GHz. I can dig out my Haswell laptop from a closet if we want pre-Skylake numbers. CoreCLR is 3.0 Preview 5 because that's what I had conveniently installed.
|
jkotas
approved these changes
Jun 29, 2019
Unix needs some extra fixes... |
Here are some raw Haswell (4670K @4.4GHz) numbers:
After:
CoreCLR (3.0 Preview 6)
|
Thanks for the measurements @Suchiman! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This ports yieldprocessornormalized.cpp from CoreCLR to tune spin wait loops in the post-Skylake CPU world.
The first commit is literal copy of yieldprocessornormalized.cpp from CoreCLR that was then tweaked to build for Redhawk.
I then replaced uses of YieldProcessor with the Skylake-aware compat shim.