Date: Thu, 20 Nov 2003 08:03:43 -0500 From: Mike Tancsa <mike@sentex.net> To: Erik Trulsson <ertr1013@student.uu.se> Cc: hackers@freebsd.org Subject: Re: interrupt statistics (broken hifn ?) Message-ID: <6.0.1.1.0.20031120075335.081474e0@209.112.4.2> In-Reply-To: <20031120044945.GA44933@falcon.midgard.homeip.net> References: <xzpy8ucpwz9.fsf@dwp.des.no> <jfforv4me3snqshljprg8jejht7ias0oih@4ax.com> <20031120044945.GA44933@falcon.midgard.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <Intel 21143 10/100BaseTX> 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. > > > >-- ><Insert your favourite quote here.> >Erik Trulsson >ertr1013@student.uu.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.1.1.0.20031120075335.081474e0>