🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92963

Re: Kernel tweaking

#92963
From: Steven G. Kargl
Date: Fri, 17 Jul 2026 21:42
39 lines
2818 bytes
On Fri, 17 Jul 2026 03:18:23 -0000 (UTC), The Doctor wrote:

> In article <113bmo6$dtb$1@omnios-inn.blueworldhosting.com>,
> Jesse Rehmer  <jesse.rehmer@blueworldhosting.com> wrote:
> 
>>I've never had to tune FreeBSD for web, database, SMTP, or NNTP. I did mess
>>around with a lot of suggestions for making NFS and Samba/SMB faster, but none
>>of it worked. Unsure the technical reason, but Linux beats the pants off
>>FreeBSD for NFS and SMB performance. Could never get more than ~55Mbps
>>throughput with FreeBSD, but can get near wire-speed from Linux. If anyone
>>happens to read this and has suggestions, I'm all ears.
> 
> I recall tuning my BSD/OS server.  Same method should apply.

It's been a long time since I adjusted kernel knobs, but
you may want to look into one or more of

% sysctl -a | grep -E recv | more
net.local.stream.recvspace: 65536
net.local.dgram.recvspace: 16384
net.local.seqpacket.recvspace: 65536
net.inet.igmp.recvifkludge: 1
net.inet.tcp.recvspace: 65536
net.inet.tcp.recvbuf_max: 8388608
net.inet.tcp.recvbuf_auto: 1
net.inet.udp.recvspace: 42080
net.inet.raw.recvspace: 9216
net.key.recvspace: 8192
net.netlink.recvspace: 65536
net.wlan.recv_bar: 1
net.rtsock.recvspace: 8192

There may also be a few NIC specific tunable to look
at.  For I have re0, so 'sysctl -a | grep dev.re'.
This NIC's driver seems to not have any relevant knobs
to tweak.

-- 
steve
Technical Details
Message-ID: <113e7jk$34cfh$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <113anvi$klt$13@gallifrey.nk.ca> <113atgf$22len$1@dont-email.me> <113blcb$1cg0$14@gallifrey.nk.ca> <113bmo6$dtb$1@omnios-inn.blueworldhosting.com> <113c6tv$qs3$5@gallifrey.nk.ca>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu>
Newsgroups: comp.unix.bsd.freebsd.misc,news.software.nntp
Subject: Re: Kernel tweaking
Date: Fri, 17 Jul 2026 21:42:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <113e7jk$34cfh$1@dont-email.me>
References: <113anvi$klt$13@gallifrey.nk.ca> <113atgf$22len$1@dont-email.me>
	<113blcb$1cg0$14@gallifrey.nk.ca>
	<113bmo6$dtb$1@omnios-inn.blueworldhosting.com>
	<113c6tv$qs3$5@gallifrey.nk.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 17 Jul 2026 21:42:13 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3289585"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19qHjXjMZyIXVAGttSG2xUB"; posting-host="8d1e24a4dbf1caec3b79f7438115ea23"
User-Agent: Pan/0.164 (Kupiansk)
Cancel-Lock: sha1:Otsu84pfo1OyU9k9F5oLyZ/1F5k= sha256:/v/ZhCsw/5Uf6E2tBdez4J35Z7+eq14tPPLzmeLI6ko=
	sha1:HHJ78cWL6fBL1F8N0As6Qy1VEzQ= sha256:Sn4phg34gzX11IIf9kYgSRSFib4GjC0qLXeBv/P78uk=