From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 23 06:20:17 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBD2816A4ED for ; Thu, 23 Sep 2004 06:20:17 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9884743D49 for ; Thu, 23 Sep 2004 06:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i8N6KHOg037285 for ; Thu, 23 Sep 2004 06:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8N6KHke037283; Thu, 23 Sep 2004 06:20:17 GMT (envelope-from gnats) Resent-Date: Thu, 23 Sep 2004 06:20:17 GMT Resent-Message-Id: <200409230620.i8N6KHke037283@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, George Potapov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C35C416A4CF for ; Thu, 23 Sep 2004 06:14:54 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BB8043D5A for ; Thu, 23 Sep 2004 06:14:54 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8N6EsqA085300 for ; Thu, 23 Sep 2004 06:14:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i8N6Esfg085299; Thu, 23 Sep 2004 06:14:54 GMT (envelope-from nobody) Message-Id: <200409230614.i8N6Esfg085299@www.freebsd.org> Date: Thu, 23 Sep 2004 06:14:54 GMT From: George Potapov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/72022: packet loss on loopback interface X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 06:20:18 -0000 >Number: 72022 >Category: kern >Synopsis: packet loss on loopback interface >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 23 06:20:17 GMT 2004 >Closed-Date: >Last-Modified: >Originator: George Potapov >Release: 5.3-BETA5 >Organization: Inline >Environment: FreeBSD nephrite.bm.in-line.local 5.3-BETA5 FreeBSD 5.3-BETA5 #16: Wed Sep 22 19:18:47 MSD 2004 root@nephrite.bm.in-line.local:/usr/src/sys/i386/compile/NEPHRITE i386 >Description: when trying to send packets via loopback interface there occurs strange packet loss: nephrite@nephrite:/usr/home/nephrite$ ping 127.0.0.1 .. --- 127.0.0.1 ping statistics --- 134 packets transmitted, 65 packets received, 51% packet loss round-trip min/avg/max/stddev = 0.053/0.067/0.124/0.009 ms the same for any local network services like sendmail or oops http proxy. "Real" network interfaces like my 3Com card work fine. Here is ifconfig output: ==start== xl0: flags=8843 mtu 1500 options=9 inet 192.168.122.164 netmask 0xffffff00 broadcast 192.168.122.255 ether 00:10:5a:b3:7f:d2 media: Ethernet 10baseT/UTP (10baseT/UTP ) status: active lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 ==end== Here is my kernel config: ==start== machine i386 cpu I486_CPU cpu I586_CPU cpu I686_CPU ident NEPHRITE options SCHED_4BSD # 4BSD scheduler options INET # InterNETworking options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options MD_ROOT # MD is a potential root device options NFSCLIENT # Network Filesystem Client options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_GPT # GUID Partition Tables. options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extension s options KBD_INSTALL_CDEV # install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. options ADAPTIVE_GIANT # Giant mutex is adaptive. options ZERO_COPY_SOCKETS options DEVICE_POLLING options HZ=1000 # Bus support. Do not remove isa, even if you have no isa slots device isa device pci # Floppy drives device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives options ATA_STATIC_ID # Static device numbering # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device vga # VGA video card driver device splash # Splash screen and screen saver support # syscons is the default console driver, resembling an SCO console device sc # Enable this for the pcvt (VT220 compatible) console driver #device vt #options XSERVER # support for X server on a vt console #options FAT_CURSOR # start with block cursor #device agp # support several AGP chipsets # Floating point support - do not disable. device npx # Serial (COM) ports device sio # 8250, 16[45]50 based serial ports # If you've got a "dumb" serial or parallel PCI card that is # supported by the puc(4) glue driver, uncomment the following # line to enable it (connects to the sio and/or ppc drivers): #device puc # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device ether device xl # Pseudo devices. device loop # Network loopback device mem # Memory and kernel memory devices device random # Entropy device device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device bpf # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device usb # USB Bus (required) #device udbp # USB Double Bulk Pipe devices device ugen # Generic device uhid # "Human Interface Devices" device ukbd # Keyboard device ulpt # Printer device ums # Mouse device io ==end== and here is dmesg output ==start== Copyright (c) 1992-2004 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 5.3-BETA5 #16: Wed Sep 22 19:18:47 MSD 2004 root@nephrite.bm.in-line.local:/usr/src/sys/i386/compile/NEPHRITE Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) CPU 2.40GHz (2400.04-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 Features=0xbfebfbff real memory = 528416768 (503 MB) avail memory = 511619072 (487 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 $PIR: No matching entry for 0.29.INTA $PIR: No matching entry for 0.29.INTB $PIR: No matching entry for 0.29.INTC $PIR: No matching entry for 0.29.INTD pci0: at device 2.0 (no driver attached) uhci0: port 0xd800-0xd81f irq 12 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ums0: A4Tech USB Optical Mouse, rev 1.10/0.01, addr 2, iclass 3/1 ums0: 7 buttons and Z dir. uhci1: port 0xd000-0xd01f irq 9 at d evice 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xd400-0xd41f irq 7 at d evice 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: at device 29.7 (no driver attached) pcib1: at device 30.0 on pci0 pci1: on pcib1 xl0: <3Com 3c900B-TPO Etherlink XL> port 0xc000-0xc07f mem 0xdd000000-0xdd00007f irq 11 at device 1.0 on pci1 xl0: selecting 10baseT transceiver, half duplex xl0: Ethernet address: 00:10:5a:b3:7f:d2 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f,0x376,0x170-0x177,0x 3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 31.3 (no driver attached) pci0: at device 31.5 (no driver attached) cpu0 on motherboard atkbdc0: at port 0x64,0x60 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) Timecounter "TSC" frequency 2400042440 Hz quality 800 Timecounters tick every 1.000 msec ad0: 76319MB [155061/16/63] at ata0-master UDMA100 ATAPI_RESET time = 40us acd0: CDROM <_NEC CD-ROM CD-3002A/C000> at ata1-master UDMA33 Mounting root from ufs:/dev/ad0s1a pid 739: corrected slot count (2->1) ==end== >How-To-Repeat: occurs from time to time. Just boot, enter "ping localhost" and wait, it will happen very soon. >Fix: not known :-( >Release-Note: >Audit-Trail: >Unformatted: