From owner-freebsd-performance@FreeBSD.ORG Thu May 26 17:58:53 2005 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68CF516A427 for ; Thu, 26 May 2005 17:58:53 +0000 (GMT) (envelope-from gollum123@free.fr) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF77C43D48 for ; Thu, 26 May 2005 17:58:52 +0000 (GMT) (envelope-from gollum123@free.fr) Received: from BIGBOY (tui75-2-82-229-178-102.fbx.proxad.net [82.229.178.102]) by postfix4-2.free.fr (Postfix) with ESMTP id 4CCD5319387; Thu, 26 May 2005 19:58:51 +0200 (CEST) Date: Thu, 26 May 2005 19:58:52 +0200 From: Mathieu CHATEAU X-Mailer: The Bat! (v3.0) Professional X-Priority: 3 (Normal) Message-ID: <406837405.20050526195852@free.fr> To: Peter Kieser In-Reply-To: <1117129668.42960bc4b751b@webmail.telus.net> References: <1117129668.42960bc4b751b@webmail.telus.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org Subject: Re: Performance/lockup issues with FreeBSD as a router X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mathieu CHATEAU List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2005 17:58:54 -0000 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@freebsd.org mailing list PK> http://lists.freebsd.org/mailman/listinfo/freebsd-performance PK> To unsubscribe, send any mail to PK> "freebsd-performance-unsubscribe@freebsd.org" -- Best regards, Mathieu mailto:gollum123@free.fr