Skip to content
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

Multi-threaded client programs #34

Open
kavon opened this issue May 6, 2020 · 0 comments
Open

Multi-threaded client programs #34

kavon opened this issue May 6, 2020 · 0 comments
Labels
limitation Something that works but in a limited way

Comments

@kavon
Copy link
Member

kavon commented May 6, 2020

Due to the challenges with implementing client-side performance auditing ( #28 ), we're limiting this prototype to single-threaded client programs.

One way in the future to get around this without thread-local storage to hold an entry counter is to have one thread dedicated to randomly modifying a global variable that indicates whether version A or B should be used, with threads only reading that on each function entry. The added benefit is that all threads, at roughly the same time, will use the same version during each burst, so the I-cache is flushed at once for all.

@kavon kavon added the limitation Something that works but in a limited way label May 6, 2020
@kavon kavon mentioned this issue May 6, 2020
2 tasks
@kavon kavon changed the title Single-threaded client programs Multi-threaded client programs May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
limitation Something that works but in a limited way
Projects
None yet
Development

No branches or pull requests

1 participant