Re: Performance/lockup issues with FreeBSD as a router (followup)

From: Peter Kieser (pfak_at_telus.net)
Date: 05/27/05

  • Next message: Ivan Voras: "Re: Performance/lockup issues with FreeBSD as a router (followup)"
    Date: Thu, 26 May 2005 18:44:30 -0700
    To: freebsd-performance@freebsd.org
    
    

    Hello,

    I fixed the problem. It appears that the kernel was running out of
    memory to allocate the network sockets, I took your guys suggestions
    (along with the kernel configurations and such), and the problem is now
    resolved. I also replaced the physical machine, but am using the same
    NICs for even better performance.

    If anyone is interested in the exact configuration I've used, I'll be
    happy to post.

    --Peter

    Peter Kieser wrote:

    >Hello guys,
    >
    >I'm not quite sure if this is the right list to address this to, as it's partly
    >a performance problem and partly otherwise.
    >
    >I have a FreeBSD machine acting as a router (doing approx. 15-25Mbit/s of
    >traffic (lot's of small packets, about 45,000 pps)), however I'm currently
    >running into issues where one, or both of the NICs will stop transmitting
    >traffic. When I go onto the machine, and try to ping something I get "No buffer
    >space available"
    >
    >The nics are if_dc, this is a stock FreeBSD 5.4-RELEASE installation (no
    >firewall or anything):
    >
    >Here's my /etc/sysctl.conf:
    >
    >net.inet.ip.rtexpire=1800
    >net.inet.ip.rtminexpire=1800
    >kern.maxfiles=32768
    >kern.maxfilesperproc=32768
    >kern.ipc.somaxconn=32767
    >net.inet.tcp.sendspace=256000
    >net.inet.tcp.recvspace=256000
    >kern.ipc.maxsockbuf=2097152
    >net.inet.ip.fastforwarding=1
    >net.inet.tcp.rfc1323=1
    >net.link.ether.inet.max_age=600
    >net.inet.tcp.msl=7500
    >net.inet.ip.fw.dyn_udp_lifetime=10
    >net.inet.ip.fw.dyn_buckets=1024
    >
    >And here's my /boot/loader.conf:
    >
    >kern.ipc.maxsockets="163840"
    >kern.maxusers="2048"
    >
    >Is there anythign I'm overlooking that would be causing the machine to lockup
    >like this?
    >
    >--Peter
    >
    >_______________________________________________
    >freebsd-performance@freebsd.org mailing list
    >http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    >To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"
    >
    >
    >

    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"


  • Next message: Ivan Voras: "Re: Performance/lockup issues with FreeBSD as a router (followup)"

    Relevant Pages

    • Make kernel error nr. 1
      ... I get an error when i make the kernel. ... # GENERIC -- Generic kernel configuration file for FreeBSD/i386 ... # To support HyperThreading, HTT is needed in addition to SMP and APIC_IO ... # PCI Ethernet NICs that use the common MII bus controller code. ...
      (freebsd-questions)
    • Re: (2) 5.1-R-p2 crashes on SMP with AMI RAID and Intel 1000/Pro
      ... occured when heavy IO was done, but this also could be a evidence for an IRQ problem, I think. ... FreeBSD 5.1-p2 on the TYAN S1867 seems to have much more problems, but I do not know whether I ... It also crashes on a UP kernel on this machine. ... :>> from AGP slot on) made things clear, but using both NICs together ...
      (freebsd-current)
    • Compiling FreeBSD 4.10 kernel with gcc native and gcc-3.4.3
      ... The third time I didn't touch emacs so the kernel ... # PCI Ethernet NICs that use the common MII bus controller code. ... # ISA Ethernet NICs. ... The result was that after succesful compilation I got ...
      (freebsd-performance)
    • Compiling FreeBSD 4.10 kernel with gcc native and gcc-3.4.3
      ... The third time I didn't touch emacs so the kernel ... # PCI Ethernet NICs that use the common MII bus controller code. ... # ISA Ethernet NICs. ... The result was that after succesful compilation I got ...
      (freebsd-questions)
    • Compiling(running make) the kernel!
      ... Here are the config file and the error i get while compiling the kernel. ... # device lines is also present in the ./LINT configuration file. ... # To support HyperThreading, HTT is needed in addition to SMP and APIC_IO ... # PCI Ethernet NICs that use the common MII bus controller code. ...
      (freebsd-questions)

  • Quantcast