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

__rdtscp instruction should be used instead of __rdtsc #6

Open
ujos opened this issue Dec 17, 2021 · 1 comment
Open

__rdtscp instruction should be used instead of __rdtsc #6

ujos opened this issue Dec 17, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ujos
Copy link

ujos commented Dec 17, 2021

Because __rdtsc is not serializable CPU is free to reorder the execution of this instruction which could lead to wrong latency measurements results.

Instead the serializable version __rdtscp should be used.

@dendibakh dendibakh added the bug Something isn't working label Dec 17, 2021
@dendibakh
Copy link
Owner

Ok, I think you're right. At the same time, __rdtscp is more expensive. I guess I need to revisit that part. Thanks for the note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants