Re: dhclient could not allocate memory
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 0xfee0: 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 0xfec0, version 21, 24 pins ioapic0: misconfigured as apic 3, remapped to apid 0 acpimcfg0 at acpi0 addr 0xe000, 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
dhclient could not allocate memory
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 0xfee0: 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 0xfec0, version 21, 24 pins ioapic0: misconfigured as apic 3, remapped to apid 0 acpimcfg0 at acpi0 addr 0xe000, 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
Re: dhclient could not allocate memory
On Thu, Feb 28, 2013 at 12:58 PM, Marc Peters m...@mpeters.org wrote: dhclient I've noticed a lot of dhclient changes in cvs over the past few weeks.You might try a newer snapshot. Chris
Re: dhclient could not allocate memory
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 0xfee0: 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 0xfec0, version 21, 24 pins ioapic0: misconfigured as apic 3, remapped to apid 0 acpimcfg0 at acpi0 addr 0xe000, 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