From owner-freebsd-arch@FreeBSD.ORG Thu Oct 1 14:02:17 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A7801065696 for ; Thu, 1 Oct 2009 14:02:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id F0A7A8FC0A for ; Thu, 1 Oct 2009 14:02:16 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id A0FA446B09; Thu, 1 Oct 2009 10:02:16 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id CE5688A024; Thu, 1 Oct 2009 10:02:15 -0400 (EDT) From: John Baldwin To: Bruce Evans Date: Thu, 1 Oct 2009 09:49:20 -0400 User-Agent: KMail/1.9.7 References: <200909301732.20589.jhb@freebsd.org> <20091001090218.L21015@delplex.bde.org> In-Reply-To: <20091001090218.L21015@delplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910010949.20849.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Thu, 01 Oct 2009 10:02:15 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: arch@freebsd.org Subject: Re: Interrupt Descriptions X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2009 14:02:17 -0000 On Wednesday 30 September 2009 8:02:57 pm Bruce Evans wrote: > On Wed, 30 Sep 2009, John Baldwin wrote: > > > A few folks have asked recently for the ability to add descriptive strings to > > registered interrupt handlers. This is especially true since the advent of > > MSI with multiple interrupts per device. I hacked up a prototype today that > > Interrupt names should be no longer than 4 (5 works sometimes) characters so > that they can be displayed by systat -v. For the machines this is targeted at (i.e. ones with devices using MSI/MSI-X) the number of interrupts is already well beyond what systat -v can currently display anyway. I believe most folks use vmstat -i or ithread stats in top to measure real-time interrupts at this point. Possibly systat could grow a new interrupt-only mode that has sufficient room for full interrupt names. FYI, it actually looks decent enough running a 7.x systat on a test 9.0 kernel: 25000 frevn pdpgs 2000 cpu0: time intrn igb0:tx 0 Disks da0 pass0 473896 wire 25 igb0:rx 0 KB/t 0.00 0.00 13872 act igb0:link tps 0 0 10080 inact igb1:tx 0 MB/s 0.00 0.00 128 cache 1 igb1:rx 0 %busy 0 0 7603460 free igb1:link For these devices with MSI, the description (tx 0, tx 1, link, etc.) is actually more meaningful than the IRQ. -- John Baldwin