shutyaev
shutyaev

Reputation: 287

Network I/O utilization per process/thread in Linux

We are looking for an utility that allows us to understand which Linux thread (tid/lwp - thread id / light weight process) generates network traffic.

There are such utilities for disk I/O: iotop pidstat They can produce I/O reports detailed by PID and TID.

What utility may produce similar output for network I/O? We tried nethogs but it gives only PID not TID.

Upvotes: 1

Views: 2387

Answers (2)

rlib
rlib

Reputation: 7967

Atop tool gives full solution:

http://www.atoptool.nl/downloadatop.php

Download and build both atop and netatop module. You'll need to install the following libs:

sudo apt-get install zlib1g-dev libncurses5-dev

When running

sudo atop -n

you'll get the screen as attached.

Note that atop collects historical data.

Enjoy!

enter image description here

Upvotes: 2

Maxim Egorushkin
Maxim Egorushkin

Reputation: 136525

Have a look at ntopng:

ntopng is the next generation version of the original ntop, a network traffic probe that shows the network usage, similar to what the popular top Unix command does.

Upvotes: 1

Related Questions