From owner-freebsd-hackers Sat Feb 27 11:15: 6 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from chmls06.mediaone.net (chmls06.mediaone.net [24.128.1.71]) by hub.freebsd.org (Postfix) with ESMTP id 64AB515121 for ; Sat, 27 Feb 1999 11:15:01 -0800 (PST) (envelope-from housley@frenchknot.ne.mediaone.net) Received: from frenchknot.ne.mediaone.net (frenchknot.ne.mediaone.net [24.128.74.10]) by chmls06.mediaone.net (8.8.7/8.8.7) with ESMTP id OAA23499; Sat, 27 Feb 1999 14:14:43 -0500 (EST) Received: from frenchknot.ne.mediaone.net (localhost [127.0.0.1]) by frenchknot.ne.mediaone.net (8.9.2/8.9.1) with ESMTP id OAA16004; Sat, 27 Feb 1999 14:14:43 -0500 (EST) (envelope-from housley@frenchknot.ne.mediaone.net) Message-ID: <36D84421.1F2B4755@frenchknot.ne.mediaone.net> Date: Sat, 27 Feb 1999 14:14:41 -0500 From: "James E. Housley" X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Dave Hayes Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Quake2 and UDP recvspace References: <199902260437.UAA09666@hokkshideh.jetcafe.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dave Hayes wrote: > > I'm runing Quake2 on FreeBSD 2.2.8-RELEASE as a dedicated server. > Quake2 with many players basically slams the UDP layer of my > machine, for those of you who don't already know. :) > > Netstat -s reports: > > udp: > 110301027 datagrams received > 0 with incomplete header > 30 with bad data length field > 1377 with bad checksum > >> 29882 dropped due to no socket > 651167 broadcast/multicast datagrams dropped due to no socket > >> 15494 dropped due to full socket buffers > 0 not for hashed pcb > 109603077 delivered > 36475854 datagrams output > > Now I have my sysctl variables set up like so: > > net.inet.udp.checksum: 1 > net.inet.udp.maxdgram: 9216 > net.inet.udp.recvspace: 246723 > > Note that the recvspace is basically as big as I can make it. I > noticed a decrease in the "dropped due to full socket buffers" when I > increased the recvspace from the default 16K value. > > I know that the max value is in the kernel somewhere. My questions > are "where?" and "what will this screw up if I change it?". I am running 2 or 3 quakeII servers on my machine. I was getting lost of lost packets due to full buffers. I added this to my kernel: options NMBCLUSTERS=8192 And that reduced it greatly, (found in the mailing list archives) -- James E. Housley PGP: 1024/03983B4D System Supply, Inc. 2C 3F 3A 0D A8 D8 C3 13 Pager: pagejim@notepage.com 7C F0 B5 BF 27 8B 92 FE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message