this post was submitted on 27 Jan 2025
13 points (93.3% liked)
networking
2779 readers
9 users here now
Community for discussing enterprise networks and the ensuing chaos that comes after inheriting or building one.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You are correct. Here’s a thread on how CPU usage is calculated:
https://stackoverflow.com/questions/3748136/how-is-cpu-usage-calculated
It’s basically (CPU time of the process) / (clock time), or (CPU time)/(clock time * number of hardware threads), depending on how it’s reported.
Note that there’s are some complications here, like the time “wasted” context switching or running the OS.
Thanks, good thread. I'm not sure if that's one I referenced to confirm what I suspected, but it is very clear.