From owner-freebsd-net@FreeBSD.ORG Tue Feb 6 12:44:06 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 83C8916A405 for ; Tue, 6 Feb 2007 12:44:06 +0000 (UTC) (envelope-from r.gruyters@yirdis.nl) Received: from mail.yirdis.nl (82-148-208-109.fiber.unet.nl [82.148.208.109]) by mx1.freebsd.org (Postfix) with ESMTP id EFD5913C471 for ; Tue, 6 Feb 2007 12:44:05 +0000 (UTC) (envelope-from r.gruyters@yirdis.nl) Received: from server.yirdis.net (localhost [127.0.0.1]) by mail.yirdis.nl (8.13.6/8.13.6) with ESMTP id l16Ci2bQ023407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Feb 2007 13:44:02 +0100 (CET) (envelope-from r.gruyters@yirdis.nl) Received: (from www@localhost) by server.yirdis.net (8.13.6/8.13.6/Submit) id l16ChxeU023393; Tue, 6 Feb 2007 13:43:59 +0100 (CET) (envelope-from r.gruyters@yirdis.nl) X-Authentication-Warning: server.yirdis.net: www set sender to r.gruyters@yirdis.nl using -f Received: from hp-xw4100-01.yirdis.nl (hp-xw4100-01.yirdis.nl [10.8.0.27]) by server.yirdis.net (Horde MIME library) with HTTP; Tue, 06 Feb 2007 13:43:59 +0100 Message-ID: <20070206134359.36a01xthhcosogws@server.yirdis.net> Date: Tue, 06 Feb 2007 13:43:59 +0100 From: Robin Gruyters To: Oleg Bulyzhin References: <20070125170532.c9c2374hkwk4oc4k@server.yirdis.net> <20070205232800.GA45487@lath.rinet.ru> In-Reply-To: <20070205232800.GA45487@lath.rinet.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.1) / FreeBSD-5.4 X-Virus-Scanned: OK Cc: freebsd-net@freebsd.org Subject: Re: [Fwd: Re: bge Ierr rate increase from 5.3R -> 6.1R] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2007 12:44:06 -0000 Ok, I have patched and rebuild the kernel. Looks ok now. Here some info: media 100baseTX mediaopt full-duplex serverA (Broadcom BCM5705K) <192.168.254.1/30> (iperf server) serverB (Broadcom BCM5704) <192.168.254.2/30> (iperf client) # iperf -c 192.168.254.1 -t 60 -i 5 ------------------------------------------------------------ Client connecting to 192.168.254.1, TCP port 5001 TCP window size: 32.5 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.254.2 port 56356 connected with 192.168.254.1 port 5001 [ 3] 0.0- 5.0 sec 55.1 MBytes 92.4 Mbits/sec [ 3] 5.0-10.0 sec 55.8 MBytes 93.7 Mbits/sec [ 3] 10.0-15.0 sec 54.0 MBytes 90.6 Mbits/sec [ 3] 15.0-20.0 sec 55.7 MBytes 93.5 Mbits/sec [ 3] 20.0-25.0 sec 55.7 MBytes 93.4 Mbits/sec [ 3] 25.0-30.0 sec 53.9 MBytes 90.4 Mbits/sec [ 3] 30.0-35.0 sec 55.8 MBytes 93.6 Mbits/sec [ 3] 35.0-40.0 sec 56.0 MBytes 93.9 Mbits/sec [ 3] 40.0-45.0 sec 55.8 MBytes 93.5 Mbits/sec [ 3] 45.0-50.0 sec 54.9 MBytes 92.2 Mbits/sec [ 3] 50.0-55.0 sec 56.0 MBytes 93.9 Mbits/sec [ 3] 55.0-60.0 sec 55.5 MBytes 93.2 Mbits/sec [ 3] 0.0-60.0 sec 664 MBytes 92.9 Mbits/sec [netstat -ni -f link] bge1 1500 00:12:79:94:ed:11 756917 0 971564 =20 0 0 [/end] media 1000baseTX mediaopt full-duplex serverA (Broadcom BCM5705K) <192.168.254.1/30> (iperf server) serverB (Broadcom BCM5704) <192.168.254.2/30> (iperf client) iperf -c 192.168.254.1 -t 60 -i 5 ------------------------------------------------------------ Client connecting to 192.168.254.1, TCP port 5001 TCP window size: 32.5 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.254.2 port 56295 connected with 192.168.254.1 port 5001 [ 3] 0.0- 5.0 sec 275 MBytes 461 Mbits/sec [ 3] 5.0-10.0 sec 291 MBytes 488 Mbits/sec [ 3] 10.0-15.0 sec 291 MBytes 488 Mbits/sec [ 3] 15.0-20.0 sec 271 MBytes 454 Mbits/sec [ 3] 20.0-25.0 sec 288 MBytes 484 Mbits/sec [ 3] 25.0-30.0 sec 291 MBytes 489 Mbits/sec [ 3] 30.0-35.0 sec 281 MBytes 471 Mbits/sec [ 3] 35.0-40.0 sec 290 MBytes 487 Mbits/sec [ 3] 40.0-45.0 sec 291 MBytes 489 Mbits/sec [ 3] 45.0-50.0 sec 290 MBytes 486 Mbits/sec [ 3] 50.0-55.0 sec 258 MBytes 434 Mbits/sec [ 3] 55.0-60.0 sec 287 MBytes 482 Mbits/sec [ 3] 0.0-60.0 sec 3.33 GBytes 476 Mbits/sec [netstat -ni -f link] bge1 1500 00:12:79:94:ed:11 2342915 0 3433038 =20 0 0 [/end] Regards, Robin Gruyters Network and Security Engineer Yirdis B.V. I: http://yirdis.com P: +31 (0)36 5300394 F: +31 (0)36 5489119 Quoting Oleg Bulyzhin : > On Thu, Jan 25, 2007 at 05:05:32PM +0100, Robin Gruyters wrote: >> On 13-Jan-2007 Oleg Bulyzhin wrote: >> > >> >> Could you please test attached patch? It should fix ierrs issue >> >and should not >> >> break link events (would be fine to test it: unplug/plug cable, >> >try to change >> >> media with ifconfig, change media on other end of wire). >> >> >> Hi ya, >> >> Just wondering will this patch/update be available for RELENG_6? I >> have the same problems here with 3 of our servers. >> >> Here is dmesg from our development server: >> >> [...] >> Copyright (c) 1992-2007 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 6.2-RELEASE #1: Mon Jan 15 15:34:19 CET 2007 >> root@server.yirdis.net:/data/obj/data/src_6_2/sys/YIRDIS >> Timecounter "i8254" frequency 1193182 Hz quality 0 >> CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU) >> Origin =3D "GenuineIntel" Id =3D 0xf41 Stepping =3D 1 >> >> Features=3D0xbfebfbff >> Features2=3D0x641d> >> AMD Features=3D0x20000000 >> Logical CPUs per core: 2 >> real memory =3D 2147430400 (2047 MB) >> avail memory =3D 2100547584 (2003 MB) >> ACPI APIC Table: >> Security auditing service present >> BSM auditing present >> ioapic1: Changing APIC ID to 9 >> ioapic0 irqs 0-23 on motherboard >> ioapic1 irqs 24-47 on motherboard >> ioapic2 irqs 48-71 on motherboard >> ioapic3 irqs 72-95 on motherboard >> acpi0: on motherboard >> acpi0: Power Button (fixed) >> Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 >> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x908-0x90b on acpi0 >> cpu0: on acpi0 >> pcib0: on acpi0 >> pci0: on pcib0 >> pcib1: at device 2.0 on pci0 >> pci13: on pcib1 >> pcib2: at device 4.0 on pci0 >> pci6: on pcib2 >> pcib3: at device 0.0 on pci6 >> pci7: on pcib3 >> pcib4: at device 0.2 on pci6 >> pci10: on pcib4 >> pcib5: at device 1.0 on pci10 >> pci11: on pcib5 >> ste0: port 0x5000-0x507f irq 72 at >> device 4.0 on pci11 >> miibus0: on ste0 >> ukphy0: on miibus0 >> ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> ste0: Ethernet address: 00:0d:88:fc:c8:cc >> ste1: port 0x5080-0x50ff irq 73 at >> device 5.0 on pci11 >> miibus1: on ste1 >> ukphy1: on miibus1 >> ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> ste1: Ethernet address: 00:0d:88:fc:c8:cd >> ste2: port 0x5400-0x547f irq 74 at >> device 6.0 on pci11 >> miibus2: on ste2 >> ukphy2: on miibus2 >> ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> ste2: Ethernet address: 00:0d:88:fc:c8:ce >> ste3: port 0x5480-0x54ff irq 75 at >> device 7.0 on pci11 >> miibus3: on ste3 >> ukphy3: on miibus3 >> ukphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> ste3: Ethernet address: 00:0d:88:fc:c8:cf >> pcib6: at device 6.0 on pci0 >> pci3: on pcib6 >> pcib7: at device 28.0 on pci0 >> pci2: on pcib7 >> ciss0: port 0x4000-0x40ff mem >> 0xfdff0000-0xfdff1fff,0xfdf80000-0xfdfbffff irq 24 at device 1.0 on pci2 >> ciss0: [GIANT-LOCKED] >> bge0: mem >> 0xfdf70000-0xfdf7ffff irq 25 at device 2.0 on pci2 >> miibus4: on bge0 >> brgphy0: on miibus4 >> brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, >> 1000baseTX-FDX, auto >> bge0: Ethernet address: 00:12:79:94:ed:12 >> bge1: mem >> 0xfdf60000-0xfdf6ffff irq 26 at device 2.1 on pci2 >> miibus5: on bge1 >> brgphy1: on miibus5 >> brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, >> 1000baseTX-FDX, auto >> bge1: Ethernet address: 00:12:79:94:ed:11 >> pci0: at device 29.0 (no driver attached) >> pci0: at device 29.1 (no driver attached) >> pci0: at device 29.4 (no driver attached) >> pci0: at device 29.5 (no >> driver attached) >> pci0: at device 29.7 (no driver attached) >> pcib8: at device 30.0 on pci0 >> pci1: on pcib8 >> pci1: at device 3.0 (no driver attached) >> pci1: at device 4.0 (no driver attached) >> pci1: at device 4.2 (no driver attached) >> isab0: at device 31.0 on pci0 >> isa0: on isab0 >> atapci0: port >> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x500-0x50f irq 18 at device 31.1 >> on pci0 >> ata0: on atapci0 >> ata1: on atapci0 >> acpi_tz0: on acpi0 >> atkbdc0: port 0x60,0x64 irq 1 on acpi0 >> atkbd0: irq 1 on atkbdc0 >> kbd0 at atkbd0 >> atkbd0: [GIANT-LOCKED] >> psm0: irq 12 on atkbdc0 >> psm0: [GIANT-LOCKED] >> psm0: model IntelliMouse Explorer, device ID 4 >> sio0: port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 >> sio0: type 16550A >> fdc0: port 0x3f2-0x3f5 irq 6 drq 2 on acp= i0 >> fdc0: [FAST] >> fd0: <1440-KB 3.5" drive> on fdc0 drive 0 >> pmtimer0 on isa0 >> orm0: at iomem >> 0xc0000-0xc7fff,0xc8000-0xcbfff,0xee000-0xeffff on isa0 >> sc0: at flags 0x100 on isa0 >> sc0: VGA <16 virtual consoles, flags=3D0x300> >> sio1 at port 0x2f8-0x2ff irq 3 on isa0 >> sio1: type 16550A >> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 >> Timecounter "TSC" frequency 3000124702 Hz quality 800 >> Timecounters tick every 1.000 msec >> acd0: CDROM at ata0-master PIO4 >> da0 at ciss0 bus 0 target 0 lun 0 >> da0: Fixed Direct Access SCSI-0 device >> da0: 135.168MB/s transfers >> da0: 69459MB (142253280 512 byte sectors: 255H 32S/T 17433C) >> Trying to mount root from ufs:/dev/da0s1a >> Accounting enabled >> [...] >> >> And here the netstat interface statistics: >> [...] >> Name Mtu Network Address Ipkts Ierrs Opkts >> Oerrs Coll >> ste0* 1500 00:0d:88:fc:c8:cc 0 0 0 >> 0 0 >> ste1* 1500 00:0d:88:fc:c8:cd 0 0 0 >> 0 0 >> ste2* 1500 00:0d:88:fc:c8:ce 0 0 0 >> 0 0 >> ste3* 1500 00:0d:88:fc:c8:cf 0 0 0 >> 0 0 >> bge0 1500 00:12:79:94:ed:12 11343768 2114510 20564242 >> 0 0 >> bge1* 1500 00:12:79:94:ed:11 0 0 0 >> 0 0 >> pflog 33208 0 0 0 >> 0 0 >> lo0 16384 60221421 0 60221421 >> 0 0 >> [...] >> >> If you have a patch for FreeBSD 6.2, i'm quite happily to test it on >> our development server. >> >> Regards, >> >> Robin Gruyters >> > > Sorry for the late reply - i was AFK for some time and didnt read mails. > Patch against 6.2R attached, please let me know does it helps or not. > > -- > Oleg. > > =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=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- oleg@rinet.ru =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=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >