From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 2 17:41:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBBDA16A4CE for ; Wed, 2 Feb 2005 17:41:30 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7394243D5A for ; Wed, 2 Feb 2005 17:41:30 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j12HhxDL002029; Wed, 2 Feb 2005 09:43:59 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j12HhxXN002028; Wed, 2 Feb 2005 09:43:59 -0800 Date: Wed, 2 Feb 2005 09:43:59 -0800 From: Brooks Davis To: Borja Marcos Message-ID: <20050202174359.GB5555@odin.ac.hmc.edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DKU6Jbt7q3WqK7+M" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-hackers@freebsd.org Subject: Re: Devilator - performance monitoring for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 17:41:30 -0000 --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 02, 2005 at 12:10:41PM +0100, Borja Marcos wrote: >=20 > Hello, >=20 > I'm writing a performance monitoring data collector for Orca=20 > (www.orcaware.com) for FreeBSD 4- and 5-. >=20 > I'm not sure about the correct values in the process description to=20 > get a picture as accurate as possible of the cpu usage of different=20 > processes. I've seen that top uses p_runtime (FreeBSD 5 and FreeBSD 4),= =20 > but I'm not sure if the value would be really useful. >=20 > You can see a snapshot of the work in progress at: >=20 > ftp://borja.sarenet.es/pub/freebsd4-devilator.pdf > ftp://borja.sarenet.es/pub/freebsd5-devilator.pdf >=20 > I'm intending to do something more complete than the classical=20 > "orcallator" for Solaris. Namely, I am going to plot: >=20 > - System processes resource usage (hopefully useful to spot=20 > bottlenecks, and hopefully useful for the system developers) >=20 > - Resource usage by a set of processes specified by the user. It=20 > will have a configuration file with {process name, regular expression}= =20 > pairs. Processes whose name matches the regular expression will get=20 > their own graph with %user/%system, etc cpu times, and probably I/O=20 > statistics, memory statistics, so that you can know wether your (for=20 > example) smtpd processes are getting more resources, or the memory hogs= =20 > are the httpd's, etc. >=20 > - MBUF statistics >=20 > - Network statistics (connections, TCP/UDP/ICMP statistics...) >=20 > - Various caches and VM If you're looking for some implementation examples for some of these, take a look at ganglia's freebsd code. It's largly based on extracting things from other programs, but the work's been done so you don't have to figure out what matters. http://cvs.sourceforge.net/viewcvs.py/ganglia/monitor-core/srclib/libmetric= s/freebsd/metrics.c?rev=3D1.4&view=3Dmarkup -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --DKU6Jbt7q3WqK7+M Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCARFeXY6L6fI4GtQRAtwMAJ97O+pkod3ih05vXivDBovrsFRy/gCdFonq zC7lYvjMdfI4qZy15rdpgSs= =89dZ -----END PGP SIGNATURE----- --DKU6Jbt7q3WqK7+M--