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

nethogs seems to be unable to calculate network usage properly on Ubuntu 22.10 #256

Open
SmashingQuasar opened this issue Apr 30, 2023 · 2 comments

Comments

@SmashingQuasar
Copy link

Hey!

Thanks a lot for your work, it's great!

I am encountering a relatively strange issue.

When running nethogs, I get a total bandwidth usage of 305KB/sec separated into two processes.
However, if I use the system monitor of Ubuntu, I get a network usage of 700KiB/sec.

Despite the difference in unit (KB != KiB for those unfamiliar with the subtlety), they do not match whatsoever.
305 KB should be about 298 KiB so it's really not the case.

I am wondering what could cause this difference. I am running nethogs as non-root but using sudo.
Am I missing something?

Thanks!

@DiedByDisgust
Copy link
Contributor

DiedByDisgust commented May 18, 2023

are you using vpn? is a common mistake on traffic metric to calculate the traffic twice, once in the vpn and again in the default interface. looks like the 700 may be the 2x of a possible 350.

@tr4nk0
Copy link

tr4nk0 commented Jul 31, 2023

I'm using nethogs on Ubuntu 22.04.2 LTS and I have found the same issue. I tested nethogs with an iperf client sending 10GB exactly, and nethogs always says it was a bit less... No idea why. Any suggestion what could be happening?

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

3 participants