On Fri, Nov 14, 2008 at 1:01 AM, Stuart Henderson <[EMAIL PROTECTED]> wrote:
> please mail back to misc@ with your findings...
Different kernels didn't make any visible difference. As didn't ACPI
vs. APM. I could not get the system up with the MP kernel and ACPI
enabled (see dmesg #1 attached). With APM it was no different from UP
kernel and the box doesn't seem to have APIC. Perhaps the box is
simple too weak to handle this amount of traffic, but further looking
into the issue revealed a strange thing. When i run as root
tcpdump -i em0 -s 2000 -w /dev/null
the system spends 70%-80% in the interrupts and according to vmstat -i
the rate of interrupts for em0 is *constantly growing*, that growth is
strange:
# vmstat -i
interrupt total rate
irq10/em0 14919 219
irq11/em1 1 0
irq14/pciide0 1117 16
irq15/pciide0 25 0
irq5/vr0 25 0
irq4/com0 144 2
irq1/pckbc0 142 2
irq0/clock 6866 100
irq8/rtc 8785 129
Total 32024 470
# vmstat -i
interrupt total rate
irq10/em0 28933 385
irq11/em1 1 0
irq14/pciide0 1118 14
irq15/pciide0 25 0
irq5/vr0 25 0
irq4/com0 186 2
irq1/pckbc0 142 1
irq0/clock 7533 100
irq8/rtc 9639 128
Total 47602 634
# vmstat -i
interrupt total rate
irq10/em0 32209 423
irq11/em1 1 0
irq14/pciide0 1118 14
irq15/pciide0 25 0
irq5/vr0 25 0
irq4/com0 225 2
irq1/pckbc0 142 1
irq0/clock 7691 101
irq8/rtc 9840 129
Total 51276 674
...
# vmstat -i
interrupt total rate
irq10/em0 91310 853
irq11/em1 1 0
irq14/pciide0 1124 10
irq15/pciide0 25 0
irq5/vr0 30 0
irq4/com0 588 5
irq1/pckbc0 142 1
irq0/clock 10723 100
irq8/rtc 13722 128
Total 117665 1099
# vmstat -i
interrupt total rate
irq10/em0 99088 892
irq11/em1 1 0
irq14/pciide0 1124 10
irq15/pciide0 25 0
irq5/vr0 30 0
irq4/com0 630 5
irq1/pckbc0 142 1
irq0/clock 11142 100
irq8/rtc 14258 128
Total 126440 1139
...
# vmstat -i
interrupt total rate
irq10/em0 138371 1048
irq11/em1 1 0
irq14/pciide0 1126 8
irq15/pciide0 25 0
irq5/vr0 32 0
irq4/com0 825 6
irq1/pckbc0 142 1
irq0/clock 13299 100
irq8/rtc 17018 128
Total 170839 1294
# vmstat -i
interrupt total rate
irq10/em0 144395 1061
irq11/em1 1 0
irq14/pciide0 1126 8
irq15/pciide0 25 0
irq5/vr0 32 0
irq4/com0 864 6
irq1/pckbc0 142 1
irq0/clock 13626 100
irq8/rtc 17437 128
Total 177648 1306
...
# date; vmstat -i
Fri Nov 14 09:59:41 EET 2008
interrupt total rate
irq10/em0 569013 1489
irq11/em1 2 0
irq14/pciide0 1128 2
irq15/pciide0 25 0
irq5/vr0 72 0
irq4/com0 2146 5
irq1/pckbc0 142 0
irq0/clock 38246 100
irq8/rtc 48949 128
Total 659723 1727
#
# date; vmstat -i
Fri Nov 14 10:00:42 EET 2008
interrupt total rate
irq10/em0 674150 1521
irq11/em1 2 0
irq14/pciide0 1167 2
irq15/pciide0 25 0
irq5/vr0 83 0
irq4/com0 2194 4
irq1/pckbc0 142 0
irq0/clock 44305 100
irq8/rtc 56704 128
Total 778772 1757
I tried to downgrade the em(4) driver down to 4.4 release, but it
isn;'t working (ifconfig doesn't show anything except mac address and
interface being up doesn't receive any packets).
1) dmesg for box booting MP kernel with ACPI
>> OpenBSD/i386 BOOT 3.02
boot>
booting hd0a:bsd.mp: 6374304+1051584 [52+327120+309717]=0x7b08b0
entry point at 0x200120
[ using 637264 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2008 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 4.4-current (GENERIC.MP) #1152: Tue Nov 11 20:04:50 MST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Celeron(R) CPU 1.70GHz ("GenuineIntel" 686-class) 1.71 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real mem = 251162624 (239MB)
avail mem = 234242048 (223MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/27/02, BIOS32 rev. 0 @
0xfdad0, SMBIOS rev. 2.3 @ 0xf0630 (19 entries)
bios0: vendor American Megatrends Inc. version "07.00T" date 04/02/01
bios0: ECS P4VMM2
apm at bios0 function 0x15 not configured
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP
acpi0: wakeup devices UAR1(S4) USB_(S4) USB1(S4) USB2(S4) AC9_(S4)
MC9_(S4) ILAN(S4) PCI0(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
bios0: ROM list: 0xc0000/0xc000 0xcc000/0x4000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8751 PCI" rev 0x00
viaagp0 at pchb0v2,
agp0 at viaagp0: aperture at 0xe8000000, size 0xe400000
ppb0 at pci0 dev 1 function 0 "VIA VT8633 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "S3 ProSavage DDR" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 9 function 0 "Intel PRO/1000MT (82541GI)" rev 0x00:
irq 10, address 00:0e:0c:05:0c:3f
em1 at pci0 dev 11 function 0 "Intel PRO/1000MT (82541GI)" rev 0x00:
irq 11, address 00:0e:0c:05:0c:9c
viapm0 at pci0 dev 17 function 0 "VIA VT8233 ISA" rev 0x00
iic0 at viapm0
spdmem0 at iic0 addr 0x50: 256MB SDRAM non-parity PC133CL2
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA100,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: <MAXTOR 6L040J2>
wd0: 16-sector PIO, LBA, 38172MB, 78177792 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1 at pciide0 channel 1 drive 0: <Maxtor 7L300R0>
wd1: 16-sector PIO, LBA48, 286188MB, 586114704 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x70: irq 5, address
00:0a:e6:22:2e:a5
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 5: OUI
0x004063, model 0x0032
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
it0 at isa0 port 0x2e/2: IT8705F rev 2, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask f1cd netmask fded ttymask ffff
mtrr: Pentium Pro MTRR support
softraid0 at root
wd1(pciide0:1:0): timeout
type: ata
c_bcount: 512
c_skip: 0
wd1(pciide0:1:0): timeout
type: ata
c_bcount: 512
c_skip: 0
at this point bos isn't responsive