cod3fr3ak
August 20th, 2004, 13:16
I recently moved two of my servers to openbsd 3.5. As soon as I did i notice that doing a simple netstat -a take a lot longer time to run. A LOT LONGER. Sometimes as much as 3 to 5 minutes. I know its not supposed to be doing this any ideas on what could cause this? The two boxes are both HP Vectra pcs, which ran with no problems on obsd 3.4.

here is a dmesg from server1:
OpenBSD 3.5 (GENERIC) #34: Mon Mar 29 12:24:55 MST 2004
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 798 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem = 536326144 (523756K)
avail mem = 491196416 (479684K)
using 4278 buffers containing 26918912 bytes (26288K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 08/31/99, BIOS32 rev. 0 @ 0xfdb70
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf4560/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801AA LPC" rev 0x00)
pcibios0: PCI bus #4 is the last bus
WARNING: can't reserve area for BIOS PROM.
bios0: ROM list: 0xc0000/0x9800 0xcc000/0x800 0xcc800/0x6000 0xd2800/0x800 0xd3000/0x800
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82840 Host" rev 0x01: rng active, 9Kb/sec
ppb0 at pci0 dev 1 function 0 "Intel 82840 AGP" rev 0x01
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia Riva TNT2" rev 0x11
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 2 function 0 "Intel 82840 PCI" rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci2 dev 31 function 0 "Intel 82806AA PCI64" rev 0x02
pci3 at ppb2 bus 3
"Intel 82806AA PCI64 APIC" rev 0x01 at pci3 dev 0 function 0 not configured
ahc1 at pci3 dev 9 function 0 "Adaptec AIC-7892 U160" rev 0x02: irq 10
scsibus0 at ahc1: 16 targets
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, ATLAS10K2-TY092L, DA40> SCSI3 0/direct fixed
sd0: 8683MB, 17338 cyl, 3 head, 341 sec, 512 bytes/sec, 17783240 sec total
ppb3 at pci0 dev 30 function 0 "Intel 82801AA Hub-to-PCI" rev 0x02
pci4 at ppb3 bus 4
xl0 at pci4 dev 6 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 10xl0: command never completed!
xl0: command never completed!
xl0: command never completed!
address 00:01:03:d5:c0:1d
exphy0 at xl0 phy 24: 3Com internal media interface
xl0: command never completed!
xl0: command never completed!
xl0: command never completed!
xl1 at pci4 dev 8 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 11xl1: command never completed!
xl1: command never completed!
xl1: command never completed!
address 00:01:03:d5:c0:23
exphy1 at xl1 phy 24: 3Com internal media interface
xl1: command never completed!
xl1: command never completed!
xl1: command never completed!
pcib0 at pci0 dev 31 function 0 "Intel 82801AA LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801AA IDE" rev 0x02: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-ROM SR-8585, 1W26> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 31 function 2 "Intel 82801AA USB" rev 0x02: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82801AA SMBus" rev 0x02 at pci0 dev 31 function 3 not configured
isa0 at pcib0
isadma0 at isa0
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>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 8640 netmask 8e40 ttymask 8ec2
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ahc1: target 0 using 16bit transfers
ahc1: target 0 synchronous at 80.0MHz DT, offset = 0x7f
dkcsum: sd0 matched BIOS disk 80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02


here is the dmesg from server2

rootdev=0x0 rrootdeOpenBSD 3.5 (GENERIC) #34: Mon Mar 29 12:24:55 MST 2004
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 1500MHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MC A,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS, HTT,TM
real mem = 536391680 (523820K)
avail mem = 491257856 (479744K)
using 4278 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(1d) BIOS, date 08/01/01, BIOS32 rev. 0 @ 0xfd870
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xfd870/0x790
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc0000/0xb800 0xcb800/0x800 0xcc000/0x800 0xe4000/0x2000! 0xe6000/0xa000!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82850 Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82850/82860 AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia GeForce2 GTS" rev 0xa4
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0x04
pci2 at ppb1 bus 2
emu0 at pci2 dev 7 function 0 "Creative Labs SoundBlaster Live" rev 0x08: irq 10
ac97: codec id 0x43525914 (Cirrus Logic CS4297A rev 4)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
audio0 at emu0
"Creative Labs SoundBlaster Live Digital Input" rev 0x08 at pci2 dev 7 function 1 not configured
cbb0 at pci2 dev 10 function 0 "Texas Instruments PCI1225 CardBus" rev 0x01: irq 9
cbb1 at pci2 dev 10 function 1 "Texas Instruments PCI1225 CardBus" rev 0x01: irq 11
xl0 at pci2 dev 11 function 0 "3Com 3c905C 100Base-TX" rev 0x6c: irq 11 address 00:01:03:32:d7:14
exphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 4
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 4 device 0 cacheline 0x0, lattimer 0x20
pcmcia1 at cardslot1
pcib0 at pci0 dev 31 function 0 "Intel 82801BA LPC" rev 0x04
pciide0 at pci0 dev 31 function 1 "Intel 82801BA IDE" rev 0x04: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <Maxtor 5T040H4>
wd0: 16-sector PIO, LBA, 38182MB, 78198750 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HITACHI, DVD-ROM GD-8000, 0008> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 31 function 2 "Intel 82801BA USB" rev 0x04: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82801BA SMBus" rev 0x04 at pci0 dev 31 function 3 not configured
isa0 at pcib0
isadma0 at isa0
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>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ca40 netmask ca40 ttymask cac2
pctr: user-level cycle counter enabled
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


I haven't noticed any networking problems, or anything that seemed out of the ordinary. One server is the central logserver that I've been talking about on these boards. Last night I ran a stress test on it, flooding the syslog ports and it never went down, so I don't think is a config issue.

elmore
August 20th, 2004, 22:21
Funny, I have some vectras PIII vl600's which run heavy vpns. All running 3.5 and a netstat can occasionally take a while..... A long while! Like get up have a smoke go get some coffee and perhaps a print out will be available when I get back. Nothing appears to wrong with these machines, at least two of them have been up and running since 3.5 was released without issue. I really never thought about it as odd until your post. Now of course I'm wondering....

Gee thanks! ;)

wodisch
August 21st, 2004, 14:06
Well, IMHO the *real* question is: how long does "netstat -an" take to complete?
Else it might all be down to DNS issues...

FWIW

cod3fr3ak
August 23rd, 2004, 08:36
EXACTLY Elmore. I usually have time to eat lunch and read the news before it gets done.

wodisch, normally a netstat -a takes 4 to 5 seconds. Sometimes having multiple nics in a machine cause a little lag, but nothing like the 5 to 10 minutes. I was thinking it could be DNS, as I have one master and slave using obsd 3.5 and 3.4 respectively. I am wondering if there is something wrong with the 3.5 install itself or something in mixing 3.5 and 3.4. As Elmore stated the systems work fine. I can find nothing "wrong" with them except the length of time it takes for the netstat -a command to run. Netstat -n or -rn works normally.
Is there any way, besides writing a script, to time the excution and completion of a command? Something like 'time netstat -a'.

Vile
August 27th, 2004, 02:05
Umm, yeah
time netstat -a
will tell you how long it takes to execute the command. Are you looking for something else?

What is in your /etc/resolv.conf and /etc/hosts file?