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

Difference between nethogs and monitor measures #196

Open
orwa-te opened this issue Sep 15, 2020 · 2 comments
Open

Difference between nethogs and monitor measures #196

orwa-te opened this issue Sep 15, 2020 · 2 comments

Comments

@orwa-te
Copy link

orwa-te commented Sep 15, 2020

I use nethogs to measure the bandwidth in a distributed system where I have a cluster of multi nodes working together to execute a task.
What I notice at the end of the execution is that there is a noticeable and big difference between values measured in nethogs and values measure in default System monitor for all nodes, the values below measure all the bandwidth used by all processes on a single node (there were only 3 processes consume the bandwidth):

  • Bandwidth received is 297 GB in nethogs vs 366 GB in System monitor for all processes
  • Bandwidth sent is 344 GB in nethogs vs 365 GB in System monitor for all processes

Some nodes have measures that are almost identical in System monitr and nethogs in sent bandwidth.
What causes this difference? Is it better to rely on the system monitor? I suppose System monitor seems to be much more accurate for the work.

  • OS: Centos 7
@raboof
Copy link
Owner

raboof commented Sep 15, 2020

What causes this difference?

Is there any UDP traffic? Nethogs only tracks TCP traffic (#62).

Is it better to rely on the system monitor?

It depends what you want. Nethogs is unique in that it breaks down the traffic per process. If you don't need that, I would recommend using a different tool.

@orwa-te
Copy link
Author

orwa-te commented Sep 15, 2020

No, the process depends completely on TCP for transferring data. What makes that strange is the big difference between the system monitor and nethogs which is in GigaBytes as mentioned above, even if I sum the traffic of all processes and compare it to the value in the monitor there is a significant variance!
My purpose is to measure the traffic for a specific process and nethogs offers this as described.

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

2 participants