From owner-freebsd-questions@FreeBSD.ORG Fri Sep 14 13:09:36 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 DAE5216A419 for ; Fri, 14 Sep 2007 13:09:36 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f01:ffff::121]) by mx1.freebsd.org (Postfix) with ESMTP id 5AEAF13C458 for ; Fri, 14 Sep 2007 13:09:36 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from prawn.unsane.co.uk (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id l8ED6YPA034506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Sep 2007 14:06:35 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <46EA87FD.9020902@unsane.co.uk> Date: Fri, 14 Sep 2007 14:09:17 +0100 From: Vince User-Agent: Thunderbird 2.0.0.6 (X11/20070816) MIME-Version: 1.0 To: Bill Moran References: <46E93499.4060107@cis.udel.edu> <20070913113106.1c849c91.wmoran@potentialtech.com> <200709140922.20580.Thomas.Sparrevohn@btinternet.com> <20070914082946.558f9b45.wmoran@potentialtech.com> In-Reply-To: <20070914082946.558f9b45.wmoran@potentialtech.com> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Thomas Sparrevohn , 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 13:09:36 -0000 Bill Moran wrote: > 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. > any of the vm sysctl entries any good? (vm.stats.vm particually.)I seem to recall that these scripts http://freshmeat.net/projects/bgraphs/ did a decent job for memory. I've no great ideas about multiple CPUs though. Vince