Skip to content

Add nvcsw and nivcsw #772

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

likewhatevs
Copy link

Add nvcsw and nivcsw -- number of voluntary context switches and number of involuntary context switches to platforms supporting these. Roughly (and IIUC), voluntary context switches are when threads sleep or yield, involuntary are when threads are preempted.

I named these Voluntary and NonVoluntary context switches. I've seen both names used, not sure which is more common, but I think that is.

image

These are super useful for when working with performance and scheduler related things.

Add nvcsw and nivcsw -- number of voluntary context switches
and number of involuntary context switches to platforms supporting
these.
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

Successfully merging this pull request may close these issues.

1 participant