From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 20 23:38:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77CF416A4CE for ; Thu, 20 Nov 2003 23:38:03 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AECA43FE0 for ; Thu, 20 Nov 2003 23:38:01 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 439765309; Fri, 21 Nov 2003 08:38:00 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id D2EEB5308; Fri, 21 Nov 2003 08:37:51 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 5E8C733C86; Fri, 21 Nov 2003 08:37:51 +0100 (CET) To: Mike Tancsa References: <20031120044945.GA44933@falcon.midgard.homeip.net> <20031120131903.GG300@straylight.m.ringlet.net> <20031120153655.GI300@straylight.m.ringlet.net> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Fri, 21 Nov 2003 08:37:51 +0100 In-Reply-To: <20031120153655.GI300@straylight.m.ringlet.net> (Peter Pentchev's message of "Thu, 20 Nov 2003 17:36:55 +0200") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on flood.des.no X-Spam-Level: ss X-Spam-Status: No, hits=2.5 required=5.0 tests=RCVD_IN_DYNABLOCK autolearn=no version=2.60 cc: hackers@freebsd.org Subject: Re: interrupt statistics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 07:38:03 -0000 Peter Pentchev writes: > Awwighty, attached is a patch that converts getuptime() and dointr() to > use sysctl, and then adds the -a option to display all interrupts. > This one was tested on both RELENG_4 and HEAD (ref5) :) Hmm, I don't like the fact that it displays a "stray" entry for each IRQ. Perhaps it should skip stray entries unless the count is non-zero or a different option (-A perhaps) was specified. Also, why do I get a ??? entry at the top of the list? des@dwp /usr/src/usr.bin/vmstat% vmstat -ai interrupt total rate ??? 0 0 irq1: atkbd0 76236 0 stray irq1 0 0 irq3: sio1 1 0 stray irq3 0 0 [...] DES --=20 Dag-Erling Sm=F8rgrav - des@des.no