From owner-freebsd-questions@FreeBSD.ORG Sun Oct 19 18:53:12 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE70316A4B3 for ; Sun, 19 Oct 2003 18:53:12 -0700 (PDT) Received: from smtp21.singnet.com.sg (smtp21.singnet.com.sg [165.21.101.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90C8343FE0 for ; Sun, 19 Oct 2003 18:53:10 -0700 (PDT) (envelope-from shanali@blanc.magix.com.sg) Received: from blanc.magix.com.sg (blanc.magix.com.sg [202.166.43.1]) by smtp21.singnet.com.sg (8.12.10/8.12.9) with ESMTP id h9K1r9Rk032465 for ; Mon, 20 Oct 2003 09:53:09 +0800 Received: (from shanali@localhost) by blanc.magix.com.sg (8.12.9p2/8.12.9/Submit) id h9K1u6xB092201 for freebsd-questions@freebsd.org; Mon, 20 Oct 2003 09:56:06 +0800 (SGT) (envelope-from shanali) Date: Mon, 20 Oct 2003 09:56:06 +0800 From: S H A N To: freebsd-questions@freebsd.org Message-ID: <20031020015606.GA91943@blanc.magix.com.sg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: udp packets drop X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2003 01:53:12 -0000 hi, i have a radius server running p3/1GB ram called yoyo. below is what has happened to it... [root@yoyo:~]$ netstat -s -s -p udp udp: 5397 datagrams received 186 dropped due to full socket buffers 5198 delivered 5207 datagrams output [root@yoyo:~]$ netstat -i -b -d Name Mtu Network Address Ipkts Ierrs Ibytes Opkts Oerrs Obytes Coll Drop fxp0 1500 00:c0:4f:01:15:9d 149570 0 10018080 13882 0 7040614 0 0 fxp0 1500 yyy.yyy.yyy.yyy yoyo 12807 - 1612355 13732 - 6840464 - - fxp1 1500 00:90:27:e5:bc:d4 596777 0 40928713 111791 0 10794960 0 0 fxp1 1500 192.168.192 192.168.192.13 111913 - 10269671 111726 - 9227484 - - fxp2 1500 00:90:27:e5:b5:5a 0 0 0 1 0 42 0 0 fxp2 1500 192.168.193 192.168.193.13 0 - 0 0 - 0 - - lo0 16384 133 0 74619 133 0 74619 0 0 lo0 16384 your-net localhost 133 - 74619 133 - 74619 - - [root@yoyo:~]$ netstat -m 202/624/131072 mbufs in use (current/peak/max): 200 mbufs allocated to data 2 mbufs allocated to packet headers 198/406/32768 mbuf clusters in use (current/peak/max) 968 Kbytes allocated to network (0% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines since yoyo needs to be tuned for udp performance, here is what i got in /etc/sysctl.conf kern.ipc.maxsockbuf=2097152 net.inet.udp.recvspace=65535 net.inet.udp.maxdgram=57344 net.inet.udp.blackhole: 1 and compiled the kernel with these options machine i386 cpu I686_CPU ident yoyo maxusers 1024 options NSFBUFS=1024 options NMBCLUSTERS=32768 ok. now the question is... yoyo complains that 186 udp packets dropped due to full socket buffers. so how to avoid loosing any packet? please help this freebsd newbie. S H A N