network accounting by process

From: Carles Pina i Estany
Date: Fri Aug 15 2008 - 20:05:13 EST



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,

--
Carles Pina i Estany GPG id: 0x17756391
http://pinux.info
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/