From owner-freebsd-performance@FreeBSD.ORG Tue Jun 13 16:31:06 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 7D45F16A473; Tue, 13 Jun 2006 16:31:06 +0000 (UTC) (envelope-from tbyte@otel.net) Received: from mail.otel.net (gw3.OTEL.net [212.36.8.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECD1A43D48; Tue, 13 Jun 2006 16:31:05 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from dragon.otel.net ([212.36.8.135]) by mail.otel.net with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FqBnD-000DTf-BK; Tue, 13 Jun 2006 19:31:03 +0300 From: Iasen Kostov To: danial_thom@yahoo.com In-Reply-To: <20060613160814.41746.qmail@web33307.mail.mud.yahoo.com> References: <20060613160814.41746.qmail@web33307.mail.mud.yahoo.com> Content-Type: text/plain Date: Tue, 13 Jun 2006 19:31:02 +0300 Message-Id: <1150216262.81055.0.camel@DraGoN.OTEL.net> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org, Robert Watson , 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:31:06 -0000 On Tue, 2006-06-13 at 09:08 -0700, Danial Thom wrote: > > --- Robert Watson wrote: > > > > > On Tue, 13 Jun 2006, Danial Thom wrote: > > > > > I'm sorry if I missed it, but I don't believe > > anyone answered this question: > > > > > >> Lastly, is there a utility similar to > > cpustat in > > > > > >> DragonflyBSD which shows the per-cpu usage > > stats? > > > > > > I need to gauge the efficiency of SMP for a > > particular application, and also > > > have some way of measuring the effects of > > code changes. > > > > 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? > Probably You've missed the -S option: last pid: 37969; load averages: 1.85, 1.92, 2.20 up 1+02:28:38 19:29:53 336 processes: 9 running, 311 sleeping, 1 zombie, 15 waiting CPU states: 25.0% user, 1.5% nice, 20.6% system, 1.5% interrupt, 51.5% idle Mem: 1945M Active, 2793M Inact, 1008M Wired, 307M Cache, 214M Buf, 1690M Free Swap: 4096M Total, 408K Used, 4095M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 14 root 1 171 52 0K 16K RUN 0 19.2H 62.99% idle: cpu0 13 root 1 171 52 0K 16K RUN 1 810:43 61.77% idle: cpu1 11 root 1 171 52 0K 16K RUN 3 17.6H 61.52% idle: cpu3 12 root 1 171 52 0K 16K RUN 2 931:34 60.99% idle: cpu2