Date: Mon, 26 May 2008 18:14:14 +0200 From: "Mathieu Prevot" <mathieu.prevot@gmail.com> To: "Dan Nelson" <dnelson@allantgroup.com> Cc: hackers@freebsd.org Subject: Re: network bitrate of a poll of processes Message-ID: <3e473cc60805260914r537f113eh8d840a94c0a5d958@mail.gmail.com> In-Reply-To: <20080526151614.GA5582@dan.emsphone.com> References: <3e473cc60805260752o2f573cf2h12910a45cf6849e6@mail.gmail.com> <20080526151614.GA5582@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2008/5/26 Dan Nelson <dnelson@allantgroup.com>: > In the last episode (May 26), Mathieu Prevot said: >> Hi, >> >> I would like to know the bitrate of a pool of child processes that use >> a network connection, how can I have something like netstat -w1 >> provide but at the process level ? > > If you can segregate them to their own UID, you can use an ipfw "count > ip from any to any uid 6666" rule to count the packets. Another option > would be to jail them to a dedicated IP address and count traffic on > that IP. Both are nice... thank you. And don't you have something more portable ie. that could run on "any" posix os - like a sh script that use standard tools - and that doesn't need root user intervention ? Mathieu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3e473cc60805260914r537f113eh8d840a94c0a5d958>