From owner-freebsd-net@FreeBSD.ORG Wed Nov 26 18:08:37 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59A3C1065673 for ; Wed, 26 Nov 2008 18:08:37 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196]) by mx1.freebsd.org (Postfix) with ESMTP id E16D58FC12 for ; Wed, 26 Nov 2008 18:08:36 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail15.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id mAQI8OMt021595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Nov 2008 05:08:25 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id mAQI8Nad002766; Thu, 27 Nov 2008 05:08:23 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id mAQI8NSm002765; Thu, 27 Nov 2008 05:08:23 +1100 (EST) (envelope-from peter) Date: Thu, 27 Nov 2008 05:08:23 +1100 From: Peter Jeremy To: Cihangir Besiktas Message-ID: <20081126180822.GF51761@server.vk2pj.dyndns.org> References: <20081126074819.74241.qmail@istanbul.enderunix.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vvRocJ6whMXXNc9q" Content-Disposition: inline In-Reply-To: <20081126074819.74241.qmail@istanbul.enderunix.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-net@freebsd.org Subject: Re: Measuring processes' bandwidth usage X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2008 18:08:37 -0000 --vvRocJ6whMXXNc9q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Cihangir, On 2008-Nov-26 09:48:19 +0200, Cihangir Besiktas wrote: >I am planning to develop a project, and in this project, there must be a= =20 >module that outputs all the processes' bandwidth usage. How can I handle a= =20 >process' bandwidth usage? I am looking forward to your advices.=20 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. --=20 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. --vvRocJ6whMXXNc9q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkktkJYACgkQ/opHv/APuIc4ZACaA3o7aKjBIt4dGoxy1bCp4nfQ A04AnjA4jciWbrbuqN/UqUV7hMJ2Wsbq =7EEJ -----END PGP SIGNATURE----- --vvRocJ6whMXXNc9q--