Measuring processes' bandwidth usage

Peter Jeremy peterjeremy at optushome.com.au
Wed Nov 26 10:08:37 PST 2008


Hi Cihangir,

On 2008-Nov-26 09:48:19 +0200, Cihangir Besiktas <cihangir at akademi.enderunix.org> wrote:
>I am planning to develop a project, and in this project, there must be a 
>module that outputs all the processes' bandwidth usage. How can I handle a 
>process' bandwidth usage? I am looking forward to your advices. 

Can you explain further what you mean by a "processes' bandwidth
usage".  The process-related information collected by the kernel is
listed in getrusage(2).  You might also like to look at ktrace(1,2).
I suspect you may need to modify the kernel to capture the information
you are looking for.

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20081126/749990f4/attachment.pgp


More information about the freebsd-net mailing list