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

chapter 6 - Direct Execution homework: What is a good enough measurement? #64

Open
Ouroboros75 opened this issue May 20, 2024 · 0 comments

Comments

@Ouroboros75
Copy link

Ouroboros75 commented May 20, 2024

In order for the syscall and context switching measurement to be correct (or sufficiently so):

  • must we disable cpu's frequency variation (affects "rdtsc")?
  • must we utilize core affinity?
  • must we isolate the core used to run the measurement on (so the OS does not run anything else on the core we'll use for the measurement) ?
  • disable timer interrupt altogether so that a timer interrupt cannot occur during context switching? (according to the chapter, the OS might disable interrupts when servicing an interrupt. Can we assume that during measurement? Also is it even applicable to the case?)

Also what is an acceptable variance value for the measurement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant