From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 20 04:59:43 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 3FB9D16A4CE; Thu, 20 Nov 2003 04:59:43 -0800 (PST) Received: from smtp3.sentex.ca (smtp3.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11CED43F3F; Thu, 20 Nov 2003 04:59:40 -0800 (PST) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smtp3.sentex.ca (8.12.9p2/8.12.9) with ESMTP id hAKCxbm5007980; Thu, 20 Nov 2003 07:59:37 -0500 (EST) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.12.9p2/8.12.9) with ESMTP id hAKCxbUr025867; Thu, 20 Nov 2003 07:59:37 -0500 (EST) (envelope-from mike@sentex.net) Message-Id: <6.0.1.1.0.20031120075335.081474e0@209.112.4.2> X-Sender: mdtpop@209.112.4.2 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Thu, 20 Nov 2003 08:03:43 -0500 To: Erik Trulsson From: Mike Tancsa In-Reply-To: <20031120044945.GA44933@falcon.midgard.homeip.net> References: <20031120044945.GA44933@falcon.midgard.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new cc: hackers@freebsd.org Subject: Re: interrupt statistics (broken hifn ?) 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: Thu, 20 Nov 2003 12:59:43 -0000 Hmmm Indeed this seems to be the case. I guess the next question is, what would cause the hifn card not to work in 3 machines despite showing up? hifn0@pci1:2:0: class=0x0b4000 card=0x00000000 chip=0x001213a3 rev=0x01 hdr=0x00 vendor = 'HI-FN Inc.' device = '7951 Security Processor' class = processor # sysctl -Ax hw.hifn hw.hifn.stats: Format:S,hifn_stats Length:76 Dump:0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 hw.hifn.maxbatch: 1 # dmesg | grep hifn hifn0 mem 0xe8411000-0xe8411fff,0xe8410000-0xe8410fff irq 14 at device 2.0 on pci1 hifn0: Hifn 7951, rev 0, 128KB sram, 193 sessions # vmstat -i interrupt total rate fxp0 irq11 29556405 57 mux irq15 457055 0 sio0 irq4 186 0 clk irq0 51379331 99 rtc irq8 65765489 127 Total 147158466 286 pseudo-device crypto # core crypto support pseudo-device cryptodev # /dev/crypto for access to h/w device hifn # Hifn 7951, 7781, etc. On another machine it doesnt show up I imagine because its a shared interrupt backup2# grep "irq 12" /var/run/dmesg.boot hifn0 mem 0xfa000000-0xfa000fff,0xfa800000-0xfa800fff irq 12 at device 15.0 on pci0 dc3: port 0x7800-0x787f mem 0xf8000000-0xf80003ff irq 12 at device 7.0 on pci2 backup2# vmstat -i interrupt total rate stray irq7 50 0 ata0 irq14 4673816 1 ata1 irq15 1196290 0 mux irq11 7628323 2 mux irq10 8999969 2 dc0 irq3 3 0 mux irq12 159117751 43 fdc0 irq6 1 0 sio0 irq4 787823 0 clk irq0 3618815078 1000 rtc irq8 463185486 128 Total 4264404590 1178 backup2# sysctl -Ax hw.hifn hw.hifn.stats: Format:S,hifn_stats Length:76 Dump:0xb0bd02a2c1000000b0bd02a2c1000000fa39f708fa39f70800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 hw.hifn.maxbatch: 1 backup2# ---Mike At 11:49 PM 19/11/2003, Erik Trulsson wrote: >On Wed, Nov 19, 2003 at 11:13:03PM -0500, Mike Tancsa wrote: > > Speaking of which, why is it some devices are not always present > > (same with systat -vmstat) > > > > eg on one machine > > v2% vmstat -i > > interrupt total rate > > stray irq7 2 0 > > hifn0 irq10 15680 0 > > fxp0 irq11 259067 2 > > mux irq15 378597 3 > > atkbd0 irq1 1 0 > > sio0 irq4 178 0 > > clk irq0 11466632 99 > > rtc irq8 14677398 127 > > Total 26797555 233 > > > > yet on another, > > offsite# vmstat -i > > interrupt total rate > > fxp0 irq11 29547828 61 > > mux irq15 453753 0 > > sio0 irq4 177 0 > > clk irq0 48204090 99 > > rtc irq8 61701185 127 > > Total 139907033 290 > > offsite# > > offsite# dmesg | grep hifn > > hifn0 mem 0xe9802000-0xe9802fff,0xe9801000-0xe9801fff irq 10 at device > > 0.0 on pci1 > > hifn0: Hifn 7951, rev 0, 128KB sram, 193 sessions > > offsite# > > > > How come the hifn does not show up ? I have noticed this with other > > devices as well > >vmstat -i only displays those devices that have generated interrupts. >I.e. if some device would have the total number of interrupts as 0, it >will not be show by vmstat -i >You will note that in your listings above, all the devices displayed >have generated at least one interrupt. > > > >-- > >Erik Trulsson >ertr1013@student.uu.se