Article View: news.software.nntp
Article #38295Re: News server architecture (was: Submitting to Freenix)
From: Russ Allbery
Date: Sun, 27 Jun 1999 00:00
Date: Sun, 27 Jun 1999 00:00
24 lines
1891 bytes
1891 bytes
Richard Michael Todd <rmtodd@intrepid.ecn.ou.edu> writes: > 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. Any reason why you can't do the same thing we used to do with the active file in nnrpd and just re-read it into memory on a periodic basis? Or even take another step of advancement forward and resurrect actived? Seems like it's the same problem. I'm all for mmap() as a solution, but we should probably provide a fallback. It should be relatively clean to do so, if we have a simple API; you don't even have to inject code in that many different paths. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylaetljfxu.fsf@windlord.stanford.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-mailReferences:
<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> <yl6lnd5uv4g.fsf@intrepid.ecn.ou.edu>Show Full Headers
Complete Article Headers
Message-ID: <ylaetljfxu.fsf@windlord.stanford.edu> Subject: Re: News server architecture (was: Submitting to Freenix) Date: Sun, 27 Jun 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.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> <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 X-Deja-AN: 494596693 Distribution: inet Organization: The Eyrie Newsgroups: news.software.nntp