🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38298

Re: News server architecture (was: Submitting to Freenix)

#38298
From: Richard Michael Todd
Date: Sun, 27 Jun 1999 00:00
26 lines
2126 bytes
aidan@panix.com (Aidan Cully) writes:

> I'm pretty sure that's wrong.  I think Clayton mmap's every file in the
> overview in order to read it.  As he said, "The overview and cnfs code
> uses mmap'ing as a form of shared memory w/disk backing", and my brief
> look at the code indicates that it _really does_ rely on the shared
> memory aspect of mmap.

The portion of ov3.c that's most reliant on the use of mmap is
probably the handling of the group.index file (which contains,
basically, up-to-date group hi/lo data and the inode numbers of the
current per-group overview files.)  The remaining portions of ov3.c would
be fairly straightforward to make in both mmap() and non-mmap() versions.
You could probably get the group.index code to work non-mmap() too, replacing
each array lookup with a read() call, but I'm not sure you'd like the 
efficiency.

> > > provide. Efficiency, yes, but functionality no.  So code that *requires*
> > > mmap() is *broken*.

Arguably, yes.  But given that the overwhelming majority of systems these days 
do support mmap(), is it worth maintaining both mmap() and non-mmap() versions
of the overview code?  


Technical Details
Message-ID: <yl6lnd5uv4g.fsf@intrepid.ecn.ou.edu>
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: <7g24e7$ckh$1@info.cs.uofs.edu> <ylogi3s8qs.fsf_-_@windlord.stanford.edu> <7l42bc$tm$1@twwells.com> <ylhfnukpwz.fsf@windlord.stanford.edu> <7l5p6n$1kf$1@news.panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <yl6lnd5uv4g.fsf@intrepid.ecn.ou.edu>
Subject: Re: News server architecture (was: Submitting to Freenix)
Date: Sun, 27 Jun 1999 00:00:00 +0000
From: Richard Michael Todd <rmtodd@intrepid.ecn.ou.edu>
References: <7g24e7$ckh$1@info.cs.uofs.edu> <ylogi3s8qs.fsf_-_@windlord.stanford.edu> <7l42bc$tm$1@twwells.com> <ylhfnukpwz.fsf@windlord.stanford.edu> <7l5p6n$1kf$1@news.panix.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
X-Deja-AN: 494561095
Distribution: inet
X-Complaints-To: news@mailhost.ecn.ou.edu
X-Trace: skywalker.ecn.ou.edu 930523119 49316 129.15.112.112 (27 Jun 1999 22:38:39 GMT)
Organization: University of Oklahoma, Engineering Computer Network
NNTP-Posting-Date: 27 Jun 1999 22:38:39 GMT
Newsgroups: news.software.nntp