From owner-freebsd-performance@FreeBSD.ORG Tue Jun 13 16:57:53 2006 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21F2616A476; Tue, 13 Jun 2006 16:57:53 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB71143D58; Tue, 13 Jun 2006 16:57:52 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 4C4AF46BBA; Tue, 13 Jun 2006 12:57:52 -0400 (EDT) Date: Tue, 13 Jun 2006 17:57:52 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Danial Thom In-Reply-To: <20060613160814.41746.qmail@web33307.mail.mud.yahoo.com> Message-ID: <20060613175531.S26068@fledge.watson.org> References: <20060613160814.41746.qmail@web33307.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-performance@freebsd.org, David Xu Subject: Re: Initial 6.1 questions X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 16:57:53 -0000 On Tue, 13 Jun 2006, Danial Thom wrote: >> I didn't answer it because I don't know what output cpustat provides. What >> output does cpustat provide on DragonflyBSD? > > Its a simple output such as: > > CPU-0 state: 14.00% user, 0.00% nice, 2.00% > sys, 6.00% intr, 78.00% idle > CPU-1 state: 4.00% user, 0.00% nice, 17.00% > sys, 2.00% intr, 77.00% idle > > Of course, hp-ux type output for top would be > ideal: > > Load averages: 0.27, 0.28, 0.28 > 203 processes: 186 sleeping, 17 running > Cpu states: > CPU LOAD USER NICE SYS IDLE BLOCK > SWAIT INTR SSYS > 0 0.05 0.0% 0.0% 0.0% 100.0% 0.0% > 0.0% 0.0% 0.0% > 1 0.92 0.0% 0.0% 0.0% 100.0% 0.0% > 0.0% 0.0% 0.0% > 2 0.03 0.0% 0.0% 0.0% 100.0% 0.0% > 0.0% 0.0% 0.0% > 3 0.08 0.0% 0.0% 0.0% 100.0% 0.0% > 0.0% 0.0% 0.0% > --- ---- ----- ----- ----- ----- ----- > ----- ----- ----- > avg 0.27 0.0% 0.0% 0.0% 100.0% 0.0% > 0.0% 0.0% 0.0% > > What is the plan for FreeBSD, as I don't see that top shows any distribution > among cpus? top displays some CPU information, especially with -S which shows you the level of activity for the idle thread on each CPU. The above looks useful, and should be fairly easy to add. I've been thinking about adding a few new pages to systat output: - Kernel memory allocator stats, based on memstat/memtop (and similar to what vmstat -z and vmstat -m show). - CPU statistics such as the above. I think there are some patches floating around already that gather per-cpu cp_time measurements, but Kris has commented to me that they reduce performance somewhat, so I'll have to investigate some. That may be a caching effect of some sort. Robert N M Watson Computer Laboratory Universty of Cambridge