network accounting by process
Hello,
Recently I've discovered the IO Accounting (I mean, /proc/PID/io). It's very interesting, specially together with iotop (thanks!)
I wonder: is there something in the proc fs similar for network? How much bytes the _process_ are receiving/sending just now? I've checked and I haven't found.
If there isn't any wat to get this information: is there any technical problem to not have it? It looks like it would be possible to add something similar in ipv4 level (net/ipv4/af_inet.c for example).
Thank you,
Signature · 2 lines
Carles Pina i Estany GPG id: 0x17756391 http://pinux.info
Hi,
Quoted 2 lines · Carles Pina i Estany
Recently I've discovered the IO Accounting (I mean,
/proc/PID/io). It's very interesting, specially together with iotop (thanks!)
Ops!
Quoted 1 line
From this webpage: http://lkml.org/lkml/2008/4/2/60
This is already done:
http://lkml.org/lkml/2008/4/2/60
Looks like a patch for 2.6.24.4, I will do some tests. Looks like from April, so maybe there is more news in the list. I will check it.
Signature · 2 lines
Carles Pina i Estany GPG id: 0x17756391 http://pinux.info