networking - How to get process or port Network bandwidth usage in linux -


i want network bandwidth usage each process. have found lot of information this, such iftop, nethogs, linux process explorer... of them process brandwidth usage capture packet(libpcap), test in linux consume lot of cpu(%10-%15) , speed of flow 11mbyte/s. if can flow rate each port can solve questions because hava table process port used. want know there other way port flow without capture packet.

as far know linux doesn't offer alternative interface pcap calculating network usage. /proc/<pid>/stat(us) contains various process information nothing network access, total i/o usage including disk access.

similarly, know port have read @ least ip header. hence assume not possible speed significantly, because analyzing packets in user space slow. kernel module task seems option.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -