proc net statistics
Subsystems (2)
Hi,
I was under the impression that statistics reported
in /proc/{$pid}/net/dev were specific to that process, but the values appear to be globals, i.e., identical for all processes.
Is this a bug?
Regards,
Ken
Quoted 7 lines · Ken O'Brien
Hi,
I was under the impression that statistics reported
in/proc/{$pid}/net/devwere specific to that process, but the values appear to be globals, i.e., identical for all processes.Is this a bug?
That is per network-namespace statistics, so it is not a bug.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Ken O'Brien
Ok, so then, is there a way to read per process network statistics in the proc filesystem?
AFAIK, we only have per-socket and per-netdev statistics, there is no per-process one, you probably want to try cgroup, or put these processes into a namespace.
Quoted 7 lines · Cong Wang
Quoted 2 lines · Ken O'Brien
Ok, so then, is there a way to read per process network statistics in the proc filesystem?
AFAIK, we only have per-socket and per-netdev statistics, there is no per-process one, you probably want to try cgroup, or put these processes into a namespace.
You can do that with cgroups, e.g. xt_cgroup. Samsung/Tizen OS seems to make use of this ...