From owner-freebsd-net@FreeBSD.ORG Fri Oct 27 06:48:07 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E25E16A407 for ; Fri, 27 Oct 2006 06:48:07 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from mail01.solnet.ch (mail01.solnet.ch [212.101.4.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0A5543D46 for ; Fri, 27 Oct 2006 06:48:06 +0000 (GMT) (envelope-from freebsdlists@bsdunix.ch) X-Virus-Scanned: by amavisd-new at mail01.solnet.ch Received: from mail01.solnet.ch ([127.0.0.1]) by localhost (mail01.solnet.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id F5bbP1DwWVEK for ; Fri, 27 Oct 2006 06:48:02 +0000 (GMT) Received: from [192.168.1.102] (home.bsdunix.ch [82.220.17.23]) by mail01.solnet.ch (Postfix) with ESMTP id 91C3E62582 for ; Fri, 27 Oct 2006 06:48:01 +0000 (GMT) Message-ID: <4541AB5C.2060009@bsdunix.ch> Date: Fri, 27 Oct 2006 08:46:52 +0200 From: Thomas User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: paket loss on freebsd router if (b)snmpd is running 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: Fri, 27 Oct 2006 06:48:07 -0000 Hello I use several 5.4 and 6.1 FBSD machines as router (with quagga). The average traffic is 300mbit/s (em interfaces with polling enabled). It works more or less. Problem: If bsnmpd is running and I'm doing a snmpwalk from a remote machine the router has some significant packet loss. We are talking about 3-15% of packet loss. It's a simple snmpwalk (ipRouteTable and the interfaces stats). The CPU load is always pretty low no matter if snmpd is running or not. I have this problem with 5.x and 6.x Any idea who I can fix this or debug it in a better way? loader.conf: hint.acpi.0.disabled="1" beastie_disable="YES" autoboot_delay="2" kern.ipc.nmbclusters="32768" sysctl.conf: vm.swap_enabled=0 # no swap space kern.ipc.somaxconn=8192 # increased from 1024 kern.polling.enable=1 # interface polling kern.polling.user_frac=20 # reserve this much for userland kern.polling.burst_max=300 # Upper bound for the burst size kern.random.sys.harvest.ethernet=0 kern.random.sys.harvest.interrupt=0 net.inet.udp.recvspace=65536 net.inet.tcp.sendspace=65536 net.inet.udp.maxdgram=57344 # new net.local.stream.recvspace=65535 # new net.local.stream.sendspace=65535 # new net.inet.tcp.delayed_ack=0 # no delayed ACKs net.inet.tcp.msl=5000 # go away after 5 seconds net.isr.enable=1 net.inet.ip.maxfragpackets=40 # don't accept too many net.inet.ip.maxfragsperpacket=4 # only 4 fragments per packet net.inet.ip.fw.one_pass=0 # continue after dummynet net.inet.ip.fw.dyn_max=8192 net.inet.ip.fw.dyn_udp_lifetime=15 net.inet.ip.fastforwarding=1 # forwarding enable net.inet.ip.forwarding=1 net.inet.icmp.icmplim=50 # ICMP Unreach limit to 50 dmesg: Copyright (c) 1992-2005 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.4-RELEASE-p2 #0: Thu Jun 30 13:28:06 UTC 2005 root@bb-router.foobar:/mnt/obj/mnt/src/sys/UPROUTER Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf25 Stepping = 5 Features=0xbfebfbff Hyperthreading: 2 logical CPUs real memory = 1073217536 (1023 MB) avail memory = 1044848640 (996 MB) npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 pci0: at device 0.1 (no driver attached) pcib1: at device 2.0 on pci0 pci1: on pcib1 pci1: at device 28.0 (no driver attached ) pcib2: at device 29.0 on pci1 pci2: on pcib2 em0: port 0x3000-0x303f mem 0xfc200000-0xfc21ffff irq 5 at device 3.0 on pci2 em0: Ethernet address: 00:30:48:2c:6e:9a em0: Speed:N/A Duplex:N/A em1: port 0x3040-0x307f mem 0xfc220000-0xfc23ffff irq 5 at device 3.1 on pci2 em1: Ethernet address: 00:30:48:2c:6e:9b em1: Speed:N/A Duplex:N/A pci1: at device 30.0 (no driver attached ) pcib3: at device 31.0 on pci1 pci3: on pcib3 atapci0: port 0x4000-0x400f,0x4020-0x4023,0x4028-0 x402f,0x4024-0x4027,0x4030-0x4037 mem 0xfc300000-0xfc3001ff irq 5 at device 2.0 on pci3 ata2: channel #0 on atapci0 ata3: channel #1 on atapci0 atapci1: port 0x4010-0x401f,0x4038-0x403b,0x4040-0 x4047,0x403c-0x403f,0x4048-0x404f mem 0xfc300400-0xfc3005ff irq 5 at device 3.0 on pci3 ata4: channel #0 on atapci1 ata5: channel #1 on atapci1 pci0: at device 29.0 (no driver attached) pci0: at device 29.1 (no driver attached) pci0: at device 29.2 (no driver attached) pcib4: at device 30.0 on pci0 pci4: on pcib4 pci4: at device 1.0 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci2: port 0x2060-0x206f,0x376,0x170-0x177,0x 3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci2 ata1: channel #1 on atapci2 pci0: at device 31.3 (no driver attached) orm0: at iomem 0xe0000-0xe3fff,0xc9000-0xcd7ff,0xc8000-0xc8fff ,0xc0000-0xc7fff on isa0 pmtimer0 on isa0 atkbdc0: at port 0x64,0x60 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on isa0 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 (memory) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) Timecounter "TSC" frequency 2399328688 Hz quality 800 Timecounters tick every 1.000 msec IPv6 packet filtering initialized, logging limited to 100 packets/entry Fast IPsec: Initialized Security Association Processing. ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to ac cept, logging limited to 100 packets/entry by default ad0: FAILURE - SETFEATURES ENABLE RCACHE status=51 error=4 ad0: FAILURE - SETFEATURES ENABLE WCACHE status=51 error=4 ad0: 497MB [1010/16/63] at ata0-master PIO4 acd0: CDROM at ata1-master PIO4 em0: Link is up 1000 Mbps Full Duplex em1: Link is up 1000 Mbps Full Duplex ad10: 35304MB [71730/16/63] at ata5-master SATA150 Mounting root from ufs:/dev/ad0s1a Regards, Thomas