Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2005 09:43:59 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Borja Marcos <borjamar@sarenet.es>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Devilator - performance monitoring for FreeBSD
Message-ID:  <20050202174359.GB5555@odin.ac.hmc.edu>
In-Reply-To: <e0438679140bc57230ea94e07a038f0b@sarenet.es>
References:  <e0438679140bc57230ea94e07a038f0b@sarenet.es>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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