-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context switching performance #39
Comments
Great! Thanks for the findings! |
I don't have aarch64 platform, may need help from other people.
|
I'm not familiar with the ARM assembly, but from a quick googling it seems that
br x30 this passes all of the tests and bench workload. |
Hey,
playing with coroutines and
libfringe
, it turned out that a vital part of context switching performance lies inpop+jmp
vsret
.This comment on HN sheds some light
This is still a thing with the modern CPUs, zen3 at least.
Changing two lines on ~master:
generator-rs/src/detail/asm/asm_x86_64_sysv_elf_gas.S
Line 43 in 5888dac
x86_64 zen3
perf
output for one of the benchesI don't have other hardware at hand right now, but can test this on Macbook M1 this week.
The text was updated successfully, but these errors were encountered: