From owner-freebsd-questions@FreeBSD.ORG Mon Jun 1 14:41:46 2009 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 09CD110656D2 for ; Mon, 1 Jun 2009 14:41:46 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id A374F8FC14 for ; Mon, 1 Jun 2009 14:41:45 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n51EfhZr094362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 1 Jun 2009 09:41:43 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n51EfgJW079542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 1 Jun 2009 09:41:42 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n51EffmR079478; Mon, 1 Jun 2009 09:41:41 -0500 (CDT) (envelope-from dan) Date: Mon, 1 Jun 2009 09:41:41 -0500 From: Dan Nelson To: Morgan =?utf-8?B?V2Vzc3Ryw7Zt?= Message-ID: <20090601144141.GD90077@dan.emsphone.com> References: <4A238FD1.1010708@pp.dyndns.biz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4A238FD1.1010708@pp.dyndns.biz> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Mon, 01 Jun 2009 09:41:43 -0500 (CDT) X-Scanned-By: MIMEDefang 2.45 Cc: FreeBSD Mailing List Subject: Re: vmstat questions 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: Mon, 01 Jun 2009 14:41:52 -0000 In the last episode (Jun 01), Morgan Wesström said: > Hi. This is my "vmstat -i" from my newly installed 7.2-RELEASE-amd64: > > # vmstat -i > interrupt total rate > irq4: sio0 1105 0 > irq17: em1 uhci1+ 10921807 182 > irq19: uhci3++ 8196905 136 > cpu0: timer 117164643 1956 > irq256: em0 7346687 122 > irq257: re0 166625 2 > cpu1: timer 117164471 1956 > Total 260962243 4358 > > For a long time I've tried to find out what the + and ++ means. Can > anyone shed some light on that? > > Also, where did my atapcis on irq19 go? I'm pretty sure I had them > listed there in 7.0-RELEASE. There is a very small buffer in the kernel for recording which devices are assigned to which IRQs in a human-readable format (MAXCOMLEN: 19 characters per IRQ, including the "irqNNN:" text). Code in /sys/kern/kern_intr.c:intr_event_update() truncates the list and adds a + for each omitted device name. http://fxr.watson.org/fxr/source/kern/kern_intr.c#L194 I'm not even sure why MAXCOMLEN is being used at this point; it's not storing a command name. http://fxr.watson.org/fxr/source/sys/interrupt.h#L104 I don't know what the repercussions would be if you increased MAXCOMLEN to 40, but you can try bumping it and see what breaks :) -- Dan Nelson dnelson@allantgroup.com