Hi all,

- OpenBSD 4.0 (build on snap from aug. 28 2006 23:10)
- i386
- 'netstat -m', 'top' and 'dmesg' below.

I've just rebuild one of my BGP routers and I'm having a real bad memory/performance issue with this box. (yes, Im running -current in production due to a Intel Pro/1000GT Quard card I've had to put in the box; only supported in -current). The box seems to choke on <whatever> once and awhile and the problem seems to be memory related.
If I e.g. ping one of my peers, I see this:
...
ping: Could only allocate a receive buffer of 8191 bytes (default 65535)
...

Do not like the sound of that, so I did a netstat -m:
4517 mbufs in use:
  4500 mbufs allocated to data
  12 mbufs allocated to packet headers
  5 mbufs allocated to socket names and addresses
4495/5886/6144 mbuf clusters in use (current/peak/max)
12988 Kbytes allocated to network (77% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines
...

I've made a sysctl change:
net.inet.ip.ifq.maxlen=250
but resetting that to 50 (standard) does not help.

Can anybody point me in the right direction ?
Any help is appreciated.

<top>
load averages:  0.20,  0.17,  0.16    11:13:28
27 processes:  26 idle, 1 on processor
CPU states: 0.6% user, 0.0% nice, 0.4% system, 56.6% interrupt, 42.4% idle
Memory: Real: 79M/369M act/tot  Free: 3534M  Swap: 0K/512M used/tot

 PID USERNAME PRI NICE  SIZE   RES STATE    WAIT     TIME    CPU COMMAND
31095 _pflogd    4    0  560K  344K sleep    bpf      1:43  0.05% pflogd
29375 root       2    0 7088K 7312K sleep    poll     8:13  0.00% bgpd
4183 _bgpd      2    0   62M   63M sleep    poll     5:35  0.00% bgpd
30920 _syslogd   2    0  288K  544K sleep    poll     1:10  0.00% syslogd
16233 proxy      2    0  344K  740K sleep    kqread   0:31  0.00% ftp-proxy
29026 _bgpd      2    0 1092K 1284K sleep    poll     0:09  0.00% bgpd
7885 root       2    0 1136K 1092K sleep    select   0:04  0.00% sendmail
23957 pere       2    0 3372K 1460K sleep    select   0:00  0.00% sshd
2921 root       2    0  324K  592K idle     select   0:00  0.00% inetd
12586 named      2    0 2120K 2296K sleep    select   0:00  0.00% named
11677 _ntp       2    0  244K  592K sleep    poll     0:00  0.00% ntpd
23317 root       2    0  588K  676K idle     select   0:00  0.00% cron
  97 root       2    0  264K  508K sleep    poll     0:00  0.00% ntpd
28186 pere      18    0  660K  524K sleep    pause    0:00  0.00% ksh
18197 root       2    0 3332K 2180K idle     netio    0:00  0.00% sshd
4479 root       2    0  268K  552K idle     netio    0:00  0.00% syslogd
   1 root      10    0  324K  356K idle     wait     0:00  0.00% init
2759 pere      29    0  392K  900K onproc   -        0:00  0.00% top
</top>


<dmesg>
OpenBSD 4.0 (GENERIC) #0: Wed Aug 30 13:10:18 CEST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC

cpu0: Intel(R) Xeon(TM) CPU 2.80GHz ("GenuineIntel" 686-class) 2.81 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 4160319488 (4062812K)
avail mem = 3818098688 (3728612K)
using 4256 buffers containing 208117760 bytes (203240K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 09/18/03, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.3 @ 0xf84b0 (44 entries)
bios0: Supermicro X5DPA
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf3000/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801CA LPC" rev 0x00)
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x8e00
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel E7501 MCH Host" rev 0x01
ppb0 at pci0 dev 2 function 0 "Intel E7500 MCH" rev 0x01
pci1 at ppb0 bus 2
"Intel 82870P2 IOxAPIC" rev 0x04 at pci1 dev 28 function 0 not configured
ppb1 at pci1 dev 29 function 0 "Intel 82870P2 PCIX-PCIX" rev 0x04
pci2 at ppb1 bus 4
ppb2 at pci2 dev 1 function 0 "Pericom PI7C21P100 PCIX-PCIX" rev 0x01
pci3 at ppb2 bus 5
em0 at pci3 dev 4 function 0 "Intel PRO/1000MT QP (82546GB)" rev 0x03: irq 10, address 00:0e:0c:b5:e0:d0 em1 at pci3 dev 4 function 1 "Intel PRO/1000MT QP (82546GB)" rev 0x03: irq 10, address 00:0e:0c:b5:e0:d1 em2 at pci3 dev 6 function 0 "Intel PRO/1000MT QP (82546GB)" rev 0x03: irq 10, address 00:0e:0c:b5:e0:d2 em3 at pci3 dev 6 function 1 "Intel PRO/1000MT QP (82546GB)" rev 0x03: irq 10, address 00:0e:0c:b5:e0:d3 em4 at pci2 dev 2 function 0 "Intel PRO/1000MT (82546GB)" rev 0x03: irq 10, address 00:04:23:9e:f2:3a em5 at pci2 dev 2 function 1 "Intel PRO/1000MT (82546GB)" rev 0x03: irq 10, address 00:04:23:9e:f2:3b
ahd0 at pci2 dev 3 function 0 "Adaptec AIC-7902B U320" rev 0x10: irq 10
ahd0: aic7902, U320 Wide Channel A, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs
scsibus0 at ahd0: 16 targets
ahd1 at pci2 dev 3 function 1 "Adaptec AIC-7902B U320" rev 0x10: irq 10
ahd1: aic7902, U320 Wide Channel B, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs
scsibus1 at ahd1: 16 targets
sd0 at scsibus1 targ 1 lun 0: <SEAGATE, ST336607LW, 0007> SCSI3 0/direct fixed
sd0: 35003MB, 49855 cyl, 2 head, 718 sec, 512 bytes/sec, 71687372 sec total
"Intel 82870P2 IOxAPIC" rev 0x04 at pci1 dev 30 function 0 not configured
ppb3 at pci1 dev 31 function 0 "Intel 82870P2 PCIX-PCIX" rev 0x04
pci4 at ppb3 bus 3
em6 at pci4 dev 1 function 0 "Intel PRO/1000MT (82541GI)" rev 0x00: irq 10, address 00:30:48:71:3b:aa em7 at pci4 dev 2 function 0 "Intel PRO/1000MT (82541GI)" rev 0x00: irq 10, address 00:30:48:71:3b:ab
uhci0 at pci0 dev 29 function 0 "Intel 82801CA/CAM USB" rev 0x02: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ppb4 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0x42
pci5 at ppb4 bus 1
vga1 at pci5 dev 4 function 0 "ATI Rage XL" rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ichpcib0 at pci0 dev 31 function 0 "Intel 82801CA LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801CA IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 "Intel 82801CA/CAM SMBus" rev 0x02: irq 9
iic0 at ichiic0
admtemp0 at iic0 addr 0x18: Xeon
lm1 at iic0 addr 0x2d: W83627HF
isa0 at ichpcib0
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>
spkr0 at pcppi0
lm0 at isa0 port 0x290/8: W83627HF
lm1 detached
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
pcic: does not support memory and I/O cards, ignored (ident=3)
pcic: does not support memory and I/O cards, ignored (ident=5)
pcic: does not support memory and I/O cards, ignored (ident=5)
pcic: does not support memory and I/O cards, ignored (ident=3)
biomask ffe5 netmask ffe5 ttymask ffe7
pctr: user-level cycle counter enabled
ahd1: target 1 synchronous with period = 0x8, offset = 0x3f(RDSTRM|DT|IU|RTI|
QAS)
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
</dmesg>

The best to you all,

/per

[EMAIL PROTECTED]

Reply via email to