Re: bandwidth measurement by process
On Sun, May 09, 2010 at 02:08:15AM -0400, Celejar wrote:
> I'm looking for a tool that will measure bandwidth used by a specific
> process. I'd like some sort of utility or wrapper that will answer
> questions like "How much data did my network backup job push over the
> wire?"
Check out network namespaces:
http://lxc.sourceforge.net/network/configuration.php
Put your process(es) in a separate network namespace,
set up virtual networking with macvlan or veth,
retrieve the desired statistics from inside this namespace.
Haven't tried it myself yet, though.
Mirko
Reply to: