From owner-cvs-src@FreeBSD.ORG Wed Sep 28 18:50:19 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E56CB16A425; Wed, 28 Sep 2005 18:50:19 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 097A043D48; Wed, 28 Sep 2005 18:50:18 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.41.233] (Not Verified[10.50.41.233]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Wed, 28 Sep 2005 15:06:18 -0400 From: John Baldwin To: src-committers@FreeBSD.org Date: Wed, 28 Sep 2005 14:23:49 -0400 User-Agent: KMail/1.8 References: <200509281804.j8SI4Bcd041338@repoman.freebsd.org> In-Reply-To: <200509281804.j8SI4Bcd041338@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509281423.51002.jhb@FreeBSD.org> Cc: cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/i386 apic_vector.s mp_machdep.c src/sys/i386/include smptests.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 18:50:20 -0000 On Wednesday 28 September 2005 02:04 pm, John Baldwin wrote: > jhb 2005-09-28 18:04:11 UTC > > FreeBSD src repository > > Modified files: > sys/i386/i386 apic_vector.s mp_machdep.c > sys/i386/include smptests.h > Log: > Add interrupt counters for IPIs. By default they are disabled, but they > can be enabled by enabling COUNT_IPIS in smptests.h. When enabled, each > CPU provides an interrupt counter for nearly all of the IPIs it receives > (IPI_STOP currently doesn't have a counter) that can be examined using > vmstat -i, etc. > > MFC after: 3 days > Requested by: rwatson Sample output: > vmstat -i interrupt total rate irq4: sio0 280 0 irq6: fdc0 7 0 irq14: ata0 37 0 irq19: fxp0 uhci0 17033 0 irq23: ahc0 ahc1 138407 1 cpu0: timer 148380184 2000 cpu0: invltlb 7072 0 cpu0: invlrng 83176 1 cpu0: invlpg 14355 0 cpu1: invltlb 9413 0 cpu1: invlrng 79973 1 cpu1: invlpg 17284 0 cpu2: invltlb 7225 0 cpu2: invlrng 78156 1 cpu2: invlpg 10619 0 cpu3: invltlb 7384 0 cpu3: invlrng 81039 1 cpu3: invlpg 9739 0 cpu2: timer 148364410 2000 cpu3: timer 148364409 2000 cpu1: timer 148364409 2000 Total 594034611 8008 This is after the box has been idle overnight. During a -j 32 buildworld I saw it up as high as 1000 invlrng IPIs per second on all 4 CPUs. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org