Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2008 10:16:15 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Mathieu Prevot <mathieu.prevot@gmail.com>
Cc:        hackers@freebsd.org
Subject:   Re: network bitrate of a poll of processes
Message-ID:  <20080526151614.GA5582@dan.emsphone.com>
In-Reply-To: <3e473cc60805260752o2f573cf2h12910a45cf6849e6@mail.gmail.com>
References:  <3e473cc60805260752o2f573cf2h12910a45cf6849e6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080526151614.GA5582>