Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Oct 2006 08:46:52 +0200
From:      Thomas <freebsdlists@bsdunix.ch>
To:        freebsd-net@freebsd.org
Subject:   paket loss on freebsd router if (b)snmpd is running
Message-ID:  <4541AB5C.2060009@bsdunix.ch>

next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 1073217536 (1023 MB)
avail memory = 1044848640 (996 MB)
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 21 Entries> on motherboard
pci0: <PCI bus> on pcib0
pci0: <unknown> at device 0.1 (no driver attached)
pcib1: <PCIBIOS PCI-PCI bridge> at device 2.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <base peripheral, interrupt controller> at device 28.0 (no driver
attached
)
pcib2: <PCIBIOS PCI-PCI bridge> at device 29.0 on pci1
pci2: <PCI bus> on pcib2
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> 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: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> 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: <base peripheral, interrupt controller> at device 30.0 (no driver
attached
)
pcib3: <PCIBIOS PCI-PCI bridge> at device 31.0 on pci1
pci3: <PCI bus> on pcib3
atapci0: <SiI 3112 SATA150 controller> 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: <SiI 3112 SATA150 controller> 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: <serial bus, USB> at device 29.0 (no driver attached)
pci0: <serial bus, USB> at device 29.1 (no driver attached)
pci0: <serial bus, USB> at device 29.2 (no driver attached)
pcib4: <PCIBIOS PCI-PCI bridge> at device 30.0 on pci0
pci4: <PCI bus> on pcib4
pci4: <display, VGA> at device 1.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci2: <Intel ICH3 UDMA100 controller> 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: <serial bus, SMBus> at device 31.3 (no driver attached)
orm0: <ISA Option ROMs> at iomem
0xe0000-0xe3fff,0xc9000-0xcd7ff,0xc8000-0xc8fff
,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sc0: <System console> 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: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> 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<READY,DSC,ERROR>
error=4<ABOR
TED>
ad0: FAILURE - SETFEATURES ENABLE WCACHE status=51<READY,DSC,ERROR>
error=4<ABOR
TED>
ad0: 497MB <SAMSUNG CF/ATA/04/05/06> [1010/16/63] at ata0-master PIO4
acd0: CDROM <CD-224E/1.9A> at ata1-master PIO4
em0: Link is up 1000 Mbps Full Duplex
em1: Link is up 1000 Mbps Full Duplex
ad10: 35304MB <WDC WD360GD-00FNA0/35.06K35> [71730/16/63] at ata5-master
SATA150
Mounting root from ufs:/dev/ad0s1a


Regards,
Thomas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4541AB5C.2060009>