🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #14730

Re: Patch to inn-1.5.1's nnrpd to mmap() the active file shared+ro

#14730
From: Karl Denninger
Date: Tue, 04 Feb 1997 00:00
44 lines
2333 bytes
In article <5d6th6$b8h@flea.best.net>,
Matt Dillon <dillon@flea.best.net> wrote:
>    This patch uses mmap() to map the active file shared + read-only.
>    For newsreader machines with large (~ 1MByte) active files, this
>    patch more then halves the per-nnrpd process memory usage.  It is
>    roughly equivalent to the shared-active mods that have been
>    floating around, but approaches the problem somewhat differently.
>
>    I don't know which is better, or whether it even matters.  I do know
>    that this patch allows our newsreader machine to support nearly twice
>    as many nnrpd's as it would otherwise be able to... around 
>    500 nnrpd processes on a 256 MByte pentium-pro 200 running FreeBSD.
>
>    The patch has been reasonably well tested, and since it restricts
>    itself to a read-only map, it ought to work on any machine that
>    supports mmap().
>
>					-Matt

Heh INN people!

How about folding this into the default distribution if MMAP is defined?

This REALLY does work well, and it completely avoids the "crash and wedge"
problem that the shared-active patch has had from time to time.

With this one, perhaps I can get rid of one of my "watchdog" processes that
runs around trying to detect the wedge condition -- since it can't happen
any longer.

I like it.  A lot.

Thanks Matt.

--
-- 
Karl Denninger (karl@MCS.Net)| MCSNet - The Finest Internet Connectivity
http://www.mcs.net/~karl     | T1's from $600 monthly to FULL DS-3 Service
			     | 99 Analog numbers, 77 ISDN, Web servers $75/mo
Voice: [+1 312 803-MCS1 x219]| Email to "info@mcs.net" WWW: http://www.mcs.net/
Fax:   [+1 773 248-9865]     | 2 FULL DS-3 Internet links; 400Mbps B/W Internal

Technical Details
Message-ID: <5d8d56$2k0$1@Jupiter.Mcs.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
References: <5d6th6$b8h@flea.best.net>

Show Full Headers
Complete Article Headers
Message-ID: <5d8d56$2k0$1@Jupiter.Mcs.Net>
Subject: Re: Patch to inn-1.5.1's nnrpd to mmap() the active file shared+ro
Date: Tue, 04 Feb 1997 00:00:00 +0000
From: karl@MCS.COM (Karl Denninger)
References: <5d6th6$b8h@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: 214461907
Distribution: inet
Organization: /usr/lib/news/organi[sz]ation
Newsgroups: news.software.nntp