On 02/28/2013 06:58 PM, Marc Peters wrote: > Hi misc, > > i am using OpenBSD on my home router connected to cable internet. A re > nic is facing the wild and gets its public IP via DHCP from my ISP. I > have running a 5.3-beta from Feb. 1st, as this one has the powersaving > fix for athn in HostAP (realised it then, was committed already in > August). This router was running happily 5.2-RELEASE until then, 24/7, > without any issues. However, this night dhclient died unexpectedly and > /var/log/daemon says: > > Feb 27 22:05:56 router dhclient[22805]: sysctl retrieval of routes: > Cannot allocate memory > Feb 27 22:05:56 router dhclient[10969]: dispatch_imsg in main: pipe closed > > dhclient gone and with it my internet connection, too. > > I wonder, what could have caused this. The machine has two AMD APUs and > 8GB of memory (dmesg attached) and dhclient shouldn't run out of it (and > it had no issues like that before with 5.1 and 5.2), but maybe i am > totally wrong and looking in the wrong place at all. > > I know that Realtek cards have had a great history (joking!) and i try > to avoid them, but this one is onboard and Intel NICs with double > interfaces aren't as cheap as the PCIe one port desktop grade card i > already added. > > mbufs are also unremarkable: > marc@router > ~ $ netstat -m > 133 mbufs in use: > 87 mbufs allocated to data > 14 mbufs allocated to packet headers > 32 mbufs allocated to socket names and addresses > 22/356/6144 mbuf 2048 byte clusters in use (current/peak/max) > 64/73/6144 mbuf 4096 byte clusters in use (current/peak/max) > 0/8/6144 mbuf 8192 byte clusters in use (current/peak/max) > 0/8/6144 mbuf 9216 byte clusters in use (current/peak/max) > 0/8/6144 mbuf 12288 byte clusters in use (current/peak/max) > 0/8/6144 mbuf 16384 byte clusters in use (current/peak/max) > 0/8/6144 mbuf 65536 byte clusters in use (current/peak/max) > 1284 Kbytes allocated to network (25% in use) > 0 requests for memory denied > 0 requests for memory delayed > 0 calls to protocol drain routines > > Maybe someone can shed some light on it and knows which knob to turn. > > Cheers, > Marc > > > Uptime provided for reference, not measurement of private parts ;) > > marc@router > ~ $ uptime > 6:54PM up 24 days, 2:41, 1 user, load averages: 0.24, 0.19, 0.1 > > dmesg: > OpenBSD 5.3-beta (GENERIC.MP) #25: Fri Feb 1 16:29:00 MST 2013 > t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 8167034880 (7788MB) > avail mem = 7927136256 (7559MB) > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeaf40 (52 entries) > bios0: vendor American Megatrends Inc. version "0306" date 08/18/2011 > bios0: ASUSTeK Computer INC. E45M1-I DELUXE > acpi0 at bios0: rev 2 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT > acpi0: wakeup devices SBAZ(S4) PS2K(S4) PS2M(S4) UAR1(S4) P0PC(S4) > UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) > PE21(S4) RLAN(S4) PE22(S4) PE23(S4) BR14(S4) PWRB(S4) > acpitimer0 at acpi0: 3579545 Hz, 32 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1650.36 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC > cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB > 64b/line 16-way L2 cache > cpu0: 8 4MB entries fully associative > cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative > cpu0: apic clock running at 199MHz > cpu1 at mainbus0: apid 1 (application processor) > cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1649.90 MHz > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC > cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB > 64b/line 16-way L2 cache > cpu1: 8 4MB entries fully associative > cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative > ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 21, 24 pins > ioapic0: misconfigured as apic 3, remapped to apid 0 > acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255 > acpihpet0 at acpi0: 14318180 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 3 (PE20) > acpiprt2 at acpi0: bus 4 (PE21) > acpiprt3 at acpi0: bus -1 (PE22) > acpiprt4 at acpi0: bus -1 (PE23) > acpiprt5 at acpi0: bus -1 (BR15) > acpiprt6 at acpi0: bus -1 (PCE6) > acpiprt7 at acpi0: bus -1 (PCE7) > acpiprt8 at acpi0: bus -1 (PCE8) > acpiprt9 at acpi0: bus 1 (BR14) > acpicpu0 at acpi0: C2, PSS > acpicpu1 at acpi0: C2, PSS > acpibtn0 at acpi0: PWRB > cpu0: 1650 MHz: speeds: 1650 1320 825 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00 > vga1 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > radeondrm0 at vga1: apic 0 int 18 > drm0 at radeondrm0 > azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi > azalia0: no supported codecs > ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi > pci1 at ppb0 bus 1 > em0 at pci1 dev 0 function 0 "Intel PRO/1000 MT (82574L)" rev 0x00: msi, > address 68:05:ca:03:b1:4f > ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 0 int > 19, AHCI 1.2 > scsibus0 at ahci0: 32 targets > sd0 at scsibus0 targ 0 lun 0: <ATA, WDC WD10JPVT-22A, 01.0> SCSI3 > 0/direct fixed naa.50014ee602ec11fb > sd0: 953869MB, 512 bytes/sector, 1953525168 sectors > ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 0 int 18, > version 1.0, legacy support > ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 0 int 17 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1 > ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 0 int 18, > version 1.0, legacy support > ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 0 int 17 > usb1 at ehci1: USB revision 2.0 > uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1 > piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling > iic0 at piixpm0 > spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 > spdmem1 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600 > pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40 > ppb1 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40 > pci2 at ppb1 bus 2 > ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 0 int 18, > version 1.0, legacy support > ppb2 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00 > pci3 at ppb2 bus 3 > athn0 at pci3 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 0 int 16 > athn0: AR9285 rev 2 (1T1R), ROM rev 14, address 74:2f:68:4a:d2:fd > ppb3 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00 > pci4 at ppb3 bus 4 > re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E > (0x2c00), apic 0 int 17, address c8:60:00:84:f7:b5 > rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 4 > ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 0 int 18, > version 1.0, legacy support > ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 0 int 17 > usb2 at ehci2: USB revision 2.0 > uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1 > pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43 > pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00 > pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00 > km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00 > pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00 > pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00 > pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00 > pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00 > usb3 at ohci0: USB revision 1.0 > uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1 > usb4 at ohci1: USB revision 1.0 > uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1 > isa0 at pcib0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > 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 > spkr0 at pcppi0 > usb5 at ohci2: USB revision 1.0 > uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1 > usb6 at ohci3: USB revision 1.0 > uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1 > mtrr: Pentium Pro MTRR support > ugen0 at uhub6 port 3 "Atheros Communications AR3011" rev 1.10/2.00 addr 2 > vscsi0 at root > scsibus1 at vscsi0: 256 targets > softraid0 at root > scsibus2 at softraid0: 256 targets > root on sd0a (26f7815995a146a7.a) swap on sd0b dump on sd0b >
As advised on and off list, i am now on -current with the latest patch from yesterday night. Will report if i encounter any issues or not. Many thanks to krw@ for his quick response and patch.