Re: Possible regression on dhclient (current)
On Tue, Nov 13, 2012 at 12:01:31AM +0200, Ville Valkonen wrote: Hello all, I was surfing on a Web when suddenly all traffic stopped. Closer examination revealed Too many open files failure with the dhclient. Since there have been You are not sufficiently current. That should have been fixed a couple of days ago. Ken improvements in the dhclient lately, could this be related? Tried to do pkill -TERM dhclient sudo dhclient trunk0 but no cigar. Any hints what to try the next time if this occurs? Uptime was 3 days if it happens to matter. I'm also testing Brain Fuck Scheduler patch since it makes videos playable. Yes, I can rule it out by running GENERIC if necessary. Complete dmesg at the bottom of this message. But now, here's some information: $ dmesg |tail -100 ... arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address ... /var/log/daemon: Nov 12 23:08:38 dhclient[9627]: DHCPDISCOVER on trunk0 to 255.255.255.255 port 67 interval 3 Nov 12 23:08:38 dhclient[9627]: DHCPOFFER from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[9627]: DHCPREQUEST on trunk0 to 255.255.255.255 port 67 Nov 12 23:08:38 dhclient[9627]: DHCPACK from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[7427]: socket open failed: Too many open files Nov 12 23:08:38 dhclient[9627]: bound to 192.168.50.102 -- renewal in 300 seconds. Nov 12 23:08:38 dhclient[9627]: DHCPDISCOVER on trunk0 to 255.255.255.255 port 67 interval 3 Nov 12 23:08:38 dhclient[9627]: DHCPOFFER from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[9627]: DHCPREQUEST on trunk0 to 255.255.255.255 port 67 Nov 12 23:08:38 dhclient[9627]: DHCPACK from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[7427]: socket open failed: Too many open files Nov 12 23:08:38 dhclient[9627]: bound to 192.168.50.102 -- renewal in 300 seconds. /var/log/messages Nov 12 23:11:59 /bsd: arpresolve: 192.168.50.101: route without link local address Nov 12 23:12:21 /bsd: arpresolve: 192.168.50.101: route without link local address Nov 12 23:14:58 last message repeated 15 times Nov 12 23:22:22 last message repeated 32 times Nov 12 23:22:24 dhclient[9276]: SIOCDIFADDR failed (192.168.50.102): Can't assign requested address Nov 12 23:22:24 dhclient[9276]: SIOCDIFADDR failed (192.168.50.102): Can't assign requested address Nov 12 23:22:27 /bsd: arpresolve: 192.168.50.101: route without link local address Nov 12 23:23:04 last message repeated 5 times $ ulimit -a time(cpu-seconds)unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 716800 stack(kbytes)4096 lockedmem(kbytes)1298308 memory(kbytes) 3881796 nofiles(descriptors) 500 processes128 NOTICE: Closed Chromium since it had several descriptors opened. After that fstat |wc -l showed ~400. Tried to restart dhclient again but with no luck. $ route -n show # (not using inet6) Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.50.101 UGS4 192 - 8 trunk0 127/8 127.0.0.1 UGRS 00 33152 8 lo0 127.0.0.1 127.0.0.1 UH 2 2935 33152 4 lo0 192.168.50/24 link#5 UC 10 - 4 trunk0 192.168.50.101 00:30:18:a4:f8:e3 UHLc 0 55 - 4 trunk0 192.168.50.102 127.0.0.1 UG 00 3315256 lo0 224/4 127.0.0.1 URS00 33152 8 lo0 OpenBSD 5.2-current (GENERIC.MP) #0: Fri Nov 9 15:19:24 EET 2012 weezel@:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4121640960 (3930MB) avail mem = 3989434368 (3804MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe0010 (44 entries) bios0: vendor LENOVO version 6JET93WW (1.51 ) date 03/26/2012 bios0: LENOVO 284756G acpi0 at bios0: rev 4 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP HPET MCFG APIC BOOT SLIC SSDT SSDT SSDT acpi0: wakeup devices P0P2(S4) P0P1(S4) USB0(S3) USB1(S3) USB2(S3) USBR(S3) EHC1(S3) USB3(S3) USB4(S3) USB5(S3) EHC2(S3) HDEF(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) RP06(S4) BLAN(S4) LID_(S3) SLPB(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 Duo CPU T5870 @ 2.00GHz, 1995.34 MHz cpu0:
Possible regression on dhclient (current)
Hello all, I was surfing on a Web when suddenly all traffic stopped. Closer examination revealed Too many open files failure with the dhclient. Since there have been improvements in the dhclient lately, could this be related? Tried to do pkill -TERM dhclient sudo dhclient trunk0 but no cigar. Any hints what to try the next time if this occurs? Uptime was 3 days if it happens to matter. I'm also testing Brain Fuck Scheduler patch since it makes videos playable. Yes, I can rule it out by running GENERIC if necessary. Complete dmesg at the bottom of this message. But now, here's some information: $ dmesg |tail -100 ... arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address ... /var/log/daemon: Nov 12 23:08:38 dhclient[9627]: DHCPDISCOVER on trunk0 to 255.255.255.255 port 67 interval 3 Nov 12 23:08:38 dhclient[9627]: DHCPOFFER from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[9627]: DHCPREQUEST on trunk0 to 255.255.255.255 port 67 Nov 12 23:08:38 dhclient[9627]: DHCPACK from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[7427]: socket open failed: Too many open files Nov 12 23:08:38 dhclient[9627]: bound to 192.168.50.102 -- renewal in 300 seconds. Nov 12 23:08:38 dhclient[9627]: DHCPDISCOVER on trunk0 to 255.255.255.255 port 67 interval 3 Nov 12 23:08:38 dhclient[9627]: DHCPOFFER from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[9627]: DHCPREQUEST on trunk0 to 255.255.255.255 port 67 Nov 12 23:08:38 dhclient[9627]: DHCPACK from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[7427]: socket open failed: Too many open files Nov 12 23:08:38 dhclient[9627]: bound to 192.168.50.102 -- renewal in 300 seconds. /var/log/messages Nov 12 23:11:59 /bsd: arpresolve: 192.168.50.101: route without link local address Nov 12 23:12:21 /bsd: arpresolve: 192.168.50.101: route without link local address Nov 12 23:14:58 last message repeated 15 times Nov 12 23:22:22 last message repeated 32 times Nov 12 23:22:24 dhclient[9276]: SIOCDIFADDR failed (192.168.50.102): Can't assign requested address Nov 12 23:22:24 dhclient[9276]: SIOCDIFADDR failed (192.168.50.102): Can't assign requested address Nov 12 23:22:27 /bsd: arpresolve: 192.168.50.101: route without link local address Nov 12 23:23:04 last message repeated 5 times $ ulimit -a time(cpu-seconds)unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 716800 stack(kbytes)4096 lockedmem(kbytes)1298308 memory(kbytes) 3881796 nofiles(descriptors) 500 processes128 NOTICE: Closed Chromium since it had several descriptors opened. After that fstat |wc -l showed ~400. Tried to restart dhclient again but with no luck. $ route -n show # (not using inet6) Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.50.101 UGS4 192 - 8 trunk0 127/8 127.0.0.1 UGRS 00 33152 8 lo0 127.0.0.1 127.0.0.1 UH 2 2935 33152 4 lo0 192.168.50/24 link#5 UC 10 - 4 trunk0 192.168.50.101 00:30:18:a4:f8:e3 UHLc 0 55 - 4 trunk0 192.168.50.102 127.0.0.1 UG 00 3315256 lo0 224/4 127.0.0.1 URS00 33152 8 lo0 OpenBSD 5.2-current (GENERIC.MP) #0: Fri Nov 9 15:19:24 EET 2012 weezel@:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4121640960 (3930MB) avail mem = 3989434368 (3804MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe0010 (44 entries) bios0: vendor LENOVO version 6JET93WW (1.51 ) date 03/26/2012 bios0: LENOVO 284756G acpi0 at bios0: rev 4 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP HPET MCFG APIC BOOT SLIC SSDT SSDT SSDT acpi0: wakeup devices P0P2(S4) P0P1(S4) USB0(S3) USB1(S3) USB2(S3) USBR(S3) EHC1(S3) USB3(S3) USB4(S3) USB5(S3) EHC2(S3) HDEF(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) RP06(S4) BLAN(S4) LID_(S3) SLPB(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 Duo CPU T5870 @ 2.00GHz, 1995.34 MHz cpu0: FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF cpu0: 2MB 64b/line 8-way L2 cache cpu0: apic clock running at 494MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R)
Re: Possible regression on dhclient (current)
Am 12.11.2012 um 23:01 schrieb Ville Valkonen weezeld...@gmail.com: Hello all, I was surfing on a Web when suddenly all traffic stopped. Closer examination revealed Too many open files failure with the dhclient. Since there have been improvements in the dhclient lately, could this be related? Are you really on latest -current? There was a fix committed for a descriptor leak, which results in the problems you describe. http://www.openbsd.org/cgi-bin/cvsweb/src/sbin/dhclient/kroute.c.diff?r1=1.12;r2=1.13;f=h Tried to do pkill -TERM dhclient sudo dhclient trunk0 but no cigar. Any hints what to try the next time if this occurs? route flush Uptime was 3 days if it happens to matter. I'm also testing Brain Fuck Scheduler patch since it makes videos playable. Yes, I can rule it out by running GENERIC if necessary. Complete dmesg at the bottom of this message. But now, here's some information: $ dmesg |tail -100 ... arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address arpresolve: 192.168.50.101: route without link local address ... /var/log/daemon: Nov 12 23:08:38 dhclient[9627]: DHCPDISCOVER on trunk0 to 255.255.255.255 port 67 interval 3 Nov 12 23:08:38 dhclient[9627]: DHCPOFFER from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[9627]: DHCPREQUEST on trunk0 to 255.255.255.255 port 67 Nov 12 23:08:38 dhclient[9627]: DHCPACK from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[7427]: socket open failed: Too many open files Nov 12 23:08:38 dhclient[9627]: bound to 192.168.50.102 -- renewal in 300 seconds. Nov 12 23:08:38 dhclient[9627]: DHCPDISCOVER on trunk0 to 255.255.255.255 port 67 interval 3 Nov 12 23:08:38 dhclient[9627]: DHCPOFFER from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[9627]: DHCPREQUEST on trunk0 to 255.255.255.255 port 67 Nov 12 23:08:38 dhclient[9627]: DHCPACK from 192.168.50.101 (00:30:18:a4:f8:e3) Nov 12 23:08:38 dhclient[7427]: socket open failed: Too many open files Nov 12 23:08:38 dhclient[9627]: bound to 192.168.50.102 -- renewal in 300 seconds. /var/log/messages Nov 12 23:11:59 /bsd: arpresolve: 192.168.50.101: route without link local address Nov 12 23:12:21 /bsd: arpresolve: 192.168.50.101: route without link local address Nov 12 23:14:58 last message repeated 15 times Nov 12 23:22:22 last message repeated 32 times Nov 12 23:22:24 dhclient[9276]: SIOCDIFADDR failed (192.168.50.102): Can't assign requested address Nov 12 23:22:24 dhclient[9276]: SIOCDIFADDR failed (192.168.50.102): Can't assign requested address Nov 12 23:22:27 /bsd: arpresolve: 192.168.50.101: route without link local address Nov 12 23:23:04 last message repeated 5 times $ ulimit -a time(cpu-seconds)unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 716800 stack(kbytes)4096 lockedmem(kbytes)1298308 memory(kbytes) 3881796 nofiles(descriptors) 500 processes128 NOTICE: Closed Chromium since it had several descriptors opened. After that fstat |wc -l showed ~400. Tried to restart dhclient again but with no luck. $ route -n show # (not using inet6) Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.50.101 UGS4 192 - 8 trunk0 127/8 127.0.0.1 UGRS 00 33152 8 lo0 127.0.0.1 127.0.0.1 UH 2 2935 33152 4 lo0 192.168.50/24 link#5 UC 10 - 4 trunk0 192.168.50.101 00:30:18:a4:f8:e3 UHLc 0 55 - 4 trunk0 192.168.50.102 127.0.0.1 UG 00 3315256 lo0 224/4 127.0.0.1 URS00 33152 8 lo0 OpenBSD 5.2-current (GENERIC.MP) #0: Fri Nov 9 15:19:24 EET 2012 weezel@:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4121640960 (3930MB) avail mem = 3989434368 (3804MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe0010 (44 entries) bios0: vendor LENOVO version 6JET93WW (1.51 ) date 03/26/2012 bios0: LENOVO 284756G acpi0 at bios0: rev 4 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP HPET MCFG APIC BOOT SLIC SSDT SSDT SSDT acpi0: wakeup devices P0P2(S4) P0P1(S4) USB0(S3) USB1(S3) USB2(S3) USBR(S3) EHC1(S3) USB3(S3) USB4(S3) USB5(S3) EHC2(S3) HDEF(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) RP06(S4) BLAN(S4) LID_(S3) SLPB(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0:
Re: Possible regression on dhclient (current)
On 13 November 2012 00:09, Joerg Zinke m...@umaxx.net wrote: Are you really on latest -current? There was a fix committed for a descriptor leak, which results in the problems you describe. http://www.openbsd.org/cgi-bin/cvsweb/src/sbin/dhclient/kroute.c.diff?r1=1.12;r2=1.13;f=h Noup, and thanks for the pointer. Will upgrade asap and sorry for the noise.
Re: Possible regression on dhclient (current)
On Mon, Nov 12, 2012 at 11:12 PM, Ville Valkonen weezeld...@gmail.com wrote: On 13 November 2012 00:09, Joerg Zinke m...@umaxx.net wrote: Are you really on latest -current? There was a fix committed for a descriptor leak, which results in the problems you describe. http://www.openbsd.org/cgi-bin/cvsweb/src/sbin/dhclient/kroute.c.diff?r1=1.12;r2=1.13;f=h Noup, and thanks for the pointer. Will upgrade asap and sorry for the noise. Saw that for one day as well, but update to latest did help.