From owner-freebsd-bugs@freebsd.org Mon Oct 24 19:53:17 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E59B0C202E0 for ; Mon, 24 Oct 2016 19:53:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7D06D73 for ; Mon, 24 Oct 2016 19:53:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9OJrHAj033266 for ; Mon, 24 Oct 2016 19:53:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 213751] bfe(4) link state goes down und up when big transfers start over socket to geom volume Date: Mon, 24 Oct 2016 19:53:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: 1983-01-06@gmx.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2016 19:53:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213751 Bug ID: 213751 Summary: bfe(4) link state goes down und up when big transfers start over socket to geom volume Product: Base System Version: 11.0-STABLE Hardware: i386 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: 1983-01-06@gmx.net CC: freebsd-i386@FreeBSD.org CC: freebsd-i386@FreeBSD.org My system: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Copyright (c) 1992-2016 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-STABLE #1 r307823: Mon Oct 24 09:09:51 CEST 2016 mosipov@bsd1home:/usr/obj/usr/src/sys/BSD1HOME i386 FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) VT(vga): resolution 640x480 CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2405.51-MHz 686-class CPU) Origin=3D"GenuineIntel" Id=3D0xf27 Family=3D0xf Model=3D0x2 Stepping= =3D7 =20 Features=3D0xbfebfbff Features2=3D0x4400 real memory =3D 2147483648 (2048 MB) avail memory =3D 2076766208 (1980 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: random: unblocking device. ioapic0 irqs 0-23 on motherboard random: entropy device external interface kbd1 at kbdmux0 module_register_init: MOD_LOAD (vesa, 0x8129c9c0, 0) error 19 nexus0 vtvga0: on motherboard cryptosoft0: on motherboard acpi0: on motherboard acpi0: Overriding SCI from IRQ 9 to IRQ 22 acpi0: Power Button (fixed) cpu0: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x73 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: mem 0xde000000-0xdeffffff,0xe0000000-0xefffffff,0xdd000000-0xddffffff irq 16 at device 0.0 on pci1 vgapci0: Boot video device uhci0: port 0xd800-0xd81f irq 1= 6 at device 29.0 on pci0 uhci0: LegSup =3D 0x2f00 usbus0 on uhci0 uhci1: port 0xd400-0xd41f irq 1= 9 at device 29.1 on pci0 uhci1: LegSup =3D 0x2f00 usbus1 on uhci1 uhci2: port 0xd000-0xd01f irq 1= 8 at device 29.2 on pci0 uhci2: LegSup =3D 0x2f00 usbus2 on uhci2 ehci0: mem 0xdc800000-0xdc800= 3ff at device 29.7 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci0 pcib2: at device 30.0 on pci0 pci2: on pcib2 bfe0: mem 0xdc000000-0xdc001fff at device = 5.0 on pci2 miibus0: on bfe0 bmtphy0: PHY 1 on miibus0 bmtphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bfe0: Ethernet address: 00:0c:6e:17:d3:5c rl0: port 0xb800-0xb8ff mem 0xdb800000-0xdb8000= ff at device 11.0 on pci2 miibus1: on rl0 rlphy0: PHY 0 on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:1e:2a:c1:b7:90 atapci0: port 0xb400-0xb407,0xb000-0xb003,0xa800-0xa807,0xa400-0xa403,0xa000-0xa0ff irq 2= 1 at device 13.0 on pci2 ata2: at channel 0 on atapci0 ata3: at channel 1 on atapci0 isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f irq 18 at device 31.1 on = pci0 ata0: at channel 0 on atapci1 ata1: at channel 1 on atapci1 pmtimer0 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] fdc0: No FDOUT register! ppc0: parallel port not found. fuse-freebsd: version 0.4.4, FUSE ABI 7.8 Timecounters tick every 1.000 msec nvme cam probe device init usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 cd0 at ata1 bus 0 scbus3 target 0 lun 0 cd0: <_NEC DVD_RW ND-3500AG 2.1B> Removable CD-ROM SCSI device cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present ada0 at ata2 bus 0 scbus0 target 0 lun 0 ada0: ATA-6 device ada0: Serial Number WD-WCAL82220375 ada0: 100.000MB/s transfers (UDMA5, PIO 8192bytes) ada0: 190782MB (390721968 512 byte sectors) ada1 at ata2 bus 0 scbus0 target 1 lun 0 ada1: ATA-6 device ada1: Serial Number WD-WMAEP3043891 ada1: 100.000MB/s transfers (UDMA5, PIO 8192bytes) ada1: 190782MB (390721968 512 byte sectors) ada2 at ata3 bus 0 scbus1 target 0 lun 0 ada2: ATA-6 device ada2: Serial Number WD-WMAEH2583910 ada2: 100.000MB/s transfers (UDMA5, PIO 8192bytes) ada2: 190782MB (390721968 512 byte sectors) ada3 at ata0 bus 0 scbus2 target 0 lun 0 ada3: ATA-6 device ada3: Serial Number 5GCMFD8T ada3: 100.000MB/s transfers (UDMA5, PIO 8192bytes) ada3: 76319MB (156301488 512 byte sectors) taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0 Timecounter "TSC-low" frequency 1202752882 Hz quality 800 taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered Trying to mount root from ufs:/dev/gpt/system [rw,acls]... uhub3: 6 ports with 6 removable, self powered =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ada0, ada1, ada2 are linked to: # graid3 status Name Status Components raid3/data COMPLETE diskid/DISK-WD-WMAEH2583910 (ACTIVE) diskid/DISK-WD-WMAEP3043891 (ACTIVE) diskid/DISK-WD-WCAL82220375 (ACTIVE) which is mounted: # mount /dev/gpt/system on / (ufs, local, journaled soft-updates, acls) devfs on /dev (devfs, local, multilabel) fdescfs on /dev/fd (fdescfs) procfs on /proc (procfs, local) /dev/raid3/data on /mnt (ufs, local) ifconfig: bfe0: flags=3D8843 metric 0 mtu 1500 options=3D80008 ether 00:0c:6e:17:d3:5c inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=3D29 media: Ethernet autoselect (100baseTX ) status: active rl0: flags=3D8843 metric 0 mtu 1500 options=3D2008 ether 00:1e:2a:c1:b7:90 inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=3D29 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=3D8049 metric 0 mtu 16384 options=3D600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=3D21 groups: lo Writing large files over a socket with SSH, SMB, nc to that mountpoint resu= lts in tremendous breakdowns of transfer speed down to kilobytes per second. SSH becomes unresponsive. dmesg says over and over again: Oct 24 21:24:37 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:24:38 bsd1home kernel: bfe0: link state changed to DOWN Oct 24 21:24:40 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:24:41 bsd1home kernel: bfe0: link state changed to DOWN Oct 24 21:24:43 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:24:44 bsd1home kernel: bfe0: link state changed to DOWN Oct 24 21:24:46 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:24:48 bsd1home kernel: bfe0: link state changed to DOWN Oct 24 21:24:50 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:24:50 bsd1home kernel: bfe0: link state changed to DOWN Oct 24 21:24:52 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:24:52 bsd1home kernel: bfe0: link state changed to DOWN Oct 24 21:24:54 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:24:54 bsd1home kernel: bfe0: link state changed to DOWN Oct 24 21:24:56 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:24:56 bsd1home kernel: bfe0: link state changed to DOWN Oct 24 21:24:58 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:24:58 bsd1home kernel: bfe0: link state changed to DOWN Oct 24 21:25:00 bsd1home kernel: bfe0: link state changed to UP Oct 24 21:25:02 bsd1home dhclient: New IP Address (bfe0): 192.168.1.7 Oct 24 21:25:02 bsd1home dhclient: New Subnet Mask (bfe0): 255.255.255.0 Oct 24 21:25:02 bsd1home dhclient: New Broadcast Address (bfe0): 192.168.1.= 255 Oct 24 21:25:02 bsd1home dhclient: New Routers (bfe0): 192.168.1. The same test was performed with another NIC in that system: rl0 (Realtek 8139). No performance degregation was found. Additionally, 10baseT and half-duplex where tested with some positive resul= ts. Though, dropouts came a bit later, but still unacceptable to use. Similar issues were already reported some years ago: http://www.mail-archive.com/freebsd-net@freebsd.org/msg11038.html http://forums.nas4free.org/viewtopic.php?t=3D3606 It seems to be driver-related. --=20 You are receiving this mail because: You are the assignee for the bug.=