🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21302

Re: NNRPD resource consumption

#21302
From: coneill
Date: Fri, 05 Sep 1997 00:00
15 lines
1278 bytes

dillon@best.net (Matt Dillon) writes:
>     Ah, easy solution:  Hack nnrpd to set the SO_SNDBUF socket option to
>     something small like 2K.  This should reduce the impact of suck-feeds
>     over fast network links.

It also means that your nnrpd are going to take more context
switches. The way we've done it here is that we've modified the
overview code so that it's not cpu bound anymore and that we can
actually stream overview records to the client, filling their TCP
window.  We intentionally set the window size to 32k so that the
process sleeps while the kernel handles emptying the buffers.

Technical Details
Message-ID: <86k9gvv4w6.fsf@blah.erols.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5unqlf$jfa@shell.monmouth.com> <5uo3j0$fah@dfw-ixnews1.ix.netcom.com> <5uphmp$86q$1@flea.best.net>

Show Full Headers
Complete Article Headers
Message-ID: <86k9gvv4w6.fsf@blah.erols.com>
Subject: Re: NNRPD resource consumption
Date: Fri, 05 Sep 1997 00:00:00 +0000
From: coneill@blah.erols.com
References: <5unqlf$jfa@shell.monmouth.com> <5uo3j0$fah@dfw-ixnews1.ix.netcom.com> <5uphmp$86q$1@flea.best.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 270082539
Distribution: inet
Organization: Erol's Internet Services
X-Received-On: 5 Sep 1997 21:15:31 GMT
Newsgroups: news.software.nntp