From owner-freebsd-performance@FreeBSD.ORG Fri Jan 19 11:38:12 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1208616A416 for ; Fri, 19 Jan 2007 11:38:12 +0000 (UTC) (envelope-from garcol@postino.it) Received: from abraham.elitel.it (vdisk2.elitel.it [212.34.224.151]) by mx1.freebsd.org (Postfix) with SMTP id 6DBD813C448 for ; Fri, 19 Jan 2007 11:38:09 +0000 (UTC) (envelope-from garcol@postino.it) Received: (qmail 4021 invoked by uid 65534); 19 Jan 2007 11:11:08 -0000 X-Spam-Checker-Version: SpamAssassin on abraham.elitel.it X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.2 tests=BAYES_00,NO_REAL_NAME autolearn=no Received: from 212.63.96.97 ([212.63.96.97]) by www.postino.punto.it (IMP) with HTTP for ; Fri, 19 Jan 2007 12:11:08 +0100 Message-ID: <1169205068.45b0a74c17e88@www.postino.punto.it> Date: Fri, 19 Jan 2007 12:11:08 +0100 From: garcol@postino.it To: freebsd-performance@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 212.63.96.97 Subject: Performance on udp socket X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2007 11:38:12 -0000 Hi, I've seen a packets drop with high rate of radius authentication request (UDP 150 byte) The software is radiator (perl), and it seems not to be dependent on CPU speed. How is possible to avoid this with a more accurate tuning? #netstat -s -p udp udp: 1917 datagrams received 0 with incomplete header 0 with bad data length field 0 with bad checksum 0 with no checksum 0 dropped due to no socket 0 broadcast/multicast datagrams dropped due to no socket 557 dropped due to full socket buffers 0 not for hashed pcb 1360 delivered 1226 datagrams output #netstat -na Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp4 5162 0 *.1813 *.* udp4 13615 0 *.1812 *.* #sysctl -a ... udpcb: 192, 1992, 8, 34, 26713 ... net.inet.udp.maxdgram: 9216 net.inet.udp.recvspace: 42080 ... kern.ipc.maxsockbuf: 1048576 kern.ipc.nmbclusters: 1488 #netstat -s -p udp udp: 4333 datagrams received 0 with incomplete header 0 with bad data length field 0 with bad checksum 0 with no checksum 0 dropped due to no socket 0 broadcast/multicast datagrams dropped due to no socket 724 dropped due to full socket buffers 0 not for hashed pcb 3609 delivered 3582 datagrams output udp: 6366 datagrams received 0 with incomplete header 0 with bad data length field 0 with bad checksum 1 with no checksum 4 dropped due to no socket 8 broadcast/multicast datagrams dropped due to no socket 724 dropped due to full socket buffers 0 not for hashed pcb 6293 delivered 6315 datagrams output netstat -m 158/720/5952 mbufs in use (current/peak/max): 135 mbufs allocated to data 23 mbufs allocated to packet headers 128/368/1488 mbuf clusters in use (current/peak/max) 916 Kbytes allocated to network (20% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines