Performance/lockup issues with FreeBSD as a router

Mathieu CHATEAU gollum123 at free.fr
Thu May 26 10:58:54 PDT 2005


Hello Peter,


in your kernel, try :

options VM_KMEM_SIZE_SCALE
options DEVICE_POLLING
options HZ=1000

You say that you do not have any firewall,
so why do you use:
net.inet.ip.fw.dyn_udp_lifetime=10
net.inet.ip.fw.dyn_buckets=1024

you may add:
kern.polling.enable=1
kern.polling.user_frac=50

best regards,
Mathieu CHATEAU

Thursday, May 26, 2005, 7:47:48 PM, you wrote:

PK> Hello guys,

PK> I'm not quite sure if this is the right list to address this to, as it's partly
PK> a performance problem and partly otherwise.

PK> I have a FreeBSD machine acting as a router (doing approx. 15-25Mbit/s of
PK> traffic (lot's of small packets, about 45,000 pps)), however I'm currently
PK> running into issues where one, or both of the NICs will stop transmitting
PK> traffic. When I go onto the machine, and try to ping something I get "No buffer
PK> space available"

PK> The nics are if_dc, this is a stock FreeBSD 5.4-RELEASE installation (no
PK> firewall or anything):

PK> Here's my /etc/sysctl.conf:

PK> net.inet.ip.rtexpire=1800
PK> net.inet.ip.rtminexpire=1800
PK> kern.maxfiles=32768
PK> kern.maxfilesperproc=32768
PK> kern.ipc.somaxconn=32767
PK> net.inet.tcp.sendspace=256000
PK> net.inet.tcp.recvspace=256000
PK> kern.ipc.maxsockbuf=2097152
PK> net.inet.ip.fastforwarding=1
PK> net.inet.tcp.rfc1323=1
PK> net.link.ether.inet.max_age=600
PK> net.inet.tcp.msl=7500
PK> net.inet.ip.fw.dyn_udp_lifetime=10
PK> net.inet.ip.fw.dyn_buckets=1024

PK> And here's my /boot/loader.conf:

PK> kern.ipc.maxsockets="163840"
PK> kern.maxusers="2048"

PK> Is there anythign I'm overlooking that would be causing the machine to lockup
PK> like this?

PK> --Peter

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



-- 
Best regards,
 Mathieu                            mailto:gollum123 at free.fr



More information about the freebsd-performance mailing list