From owner-freebsd-questions@FreeBSD.ORG Fri Sep 14 12:29:47 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5F6416A420 for ; Fri, 14 Sep 2007 12:29:47 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 8852613C459 for ; Fri, 14 Sep 2007 12:29:47 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id BEECFEBC78; Fri, 14 Sep 2007 08:29:46 -0400 (EDT) Date: Fri, 14 Sep 2007 08:29:46 -0400 From: Bill Moran To: Thomas Sparrevohn Message-Id: <20070914082946.558f9b45.wmoran@potentialtech.com> In-Reply-To: <200709140922.20580.Thomas.Sparrevohn@btinternet.com> References: <46E93499.4060107@cis.udel.edu> <20070913113106.1c849c91.wmoran@potentialtech.com> <200709140922.20580.Thomas.Sparrevohn@btinternet.com> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Preethi Natarajan Subject: Re: CPU utilization X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2007 12:29:47 -0000 In response to Thomas Sparrevohn : > On Thursday 13 September 2007 16:31:06 Bill Moran wrote: > > In response to Preethi Natarajan : > > > > > Hello, > > > > > > Is there a tool similar to mpstat (or mpstat itself) available to track > > > CPU utilization on FreeBSD? I am looking for something more elaborate > > > than top, and was wondering if anyone could help. > > > > Depending on what you mean by "track", you might find SNMP+MRTG useful. > > For example, I track: > > http://www.potentialtech.com/mrtg/cpu.html > > > > I must admit that I am missing a simple way of tracking idle CPU on a per CPU basis. Top and > PS output are not easy to work with - Does MRTG+SNMP allow one to see individual CPU usage? There are no MIBs that I'm aware of that provide per-CPU stats. However, both net-snmp and mrtg allow you to grab data from a shell command, so if you can concoct a way to get the data, you can graph it. I've been struggling with this for memory usage. I think it would be interesting to graph active, inactive, wired, buffer, and cache memory (maybe not terribly useful, but interesting). I can't seem to come up with a way to do so. -- Bill Moran http://www.potentialtech.com