2

I'm interessted in getting the number of context switches a two processes in a KVM vm takes on a singel CPU over some time.

Earlier i have used perf, is this best practice?

And how much time is used on a context switch per CPU?

2

About 1.2 microseconds which is about a thousand Cycles

https://eli.thegreenplace.net/2018/measuring-context-switching-and-memory-overheads-for-linux-threads/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.