V
V
Vi2016-04-13 03:30:59
System administration
Vi, 2016-04-13 03:30:59

How does Linux consider network resource consumption to be a process?

How can I use either only built-in utilities (cat, ls, objdump, od etc) to understand which process consumes network traffic and how much?
Where to look and how to count?
Ideally, you need to write a shell utility that shows which process is eating up network resources.
Not all systems have pre-installed all sorts of systems that monitor bandwidth per process, it gets here and you need to make a bike.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2016-04-13
@inkvizitor68sl

https://github.com/raboof/nethogs/tree/master/src see the source, nethogs gets everything from /proc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question