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

Linux Process CPU Usage is not giving the real consumption #12

Open
yusufozturk opened this issue Aug 9, 2021 · 0 comments
Open

Linux Process CPU Usage is not giving the real consumption #12

yusufozturk opened this issue Aug 9, 2021 · 0 comments

Comments

@yusufozturk
Copy link

First of all, I didn't check the output of this app. My assumptions are based on what I read from the code. If it's not correct, sorry for it.

For Linux, calculation here is based on processor usage of the process in the single logical core. So if one process utilize the entire core, you will always see 100% as CPU usage. But this is not the total CPU usage of the process, only the CPU usage in that core. Based on this calculation, you might see many processes with 100% cpu usage. And that doesn't sound right.

So basically, CPU usage should be divided by total number of logical cores to give real usage.

What do you think? Or do you think per core usage is better?

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