🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37102

Re: Abandoning uniover - but how?

#37102
From: bill davidsen
Date: Wed, 28 Apr 1999 00:00
60 lines
4327 bytes
In article <19990428114141.388$tD@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:

| I gave up waiting for the inn guys to fix the overview problem and
| just decided to do it myself.  But instead of hacking fixes into inn
| I just decided to write my own server from the ground up.  That way
| I could fix everything I didn't like about the way inn worked as well
| as add in the other features that I needed.  I started on that last
| December and the server is running in beta test now.  It really wasn't as
| big of a project as I feared it might be.
| 
| I'm still working on the overview performance issue.  I currently don't
| build and save overview records when I receive news.  I build it on
| demand when users read the overview - but that of course is very slow for
| large groups.  I cache recently built overview records in memory so
| asking for the same overview records again is fast (even for different
| users) - and that's something my web interface does a lot of so that's a
| big win for my special case.
| 
| But to deal with the general issue, my current plan is to save batches
| of overview records (about 100 at a time) to disk after they have been
| created on demand.  I'm just going to write them to the CNFS-like bufs as
| "special" articles.  When a user requests overview data, it will come from
| the in-core cache if there, if not, the overview batches are read from the
| article buffers if they have been created, if not, then the overview data
| is just re-created from the articles (and saved as new batches at the same
| time).  Writing it to the article bufs means the data expires on it's own
| at a rate which is close to the rate the articles are expiring.  My design
| (like Typhoon) requires no external expire (or other clean-up jobs) to be
| run.  The server just keeps everying "clean" while it runs.  I really
| dislike the idea of having to run all the extera clean-up jobs that inn in
| all its forms requires.

There was a patch to 2.1 which did an embedded overview, but there were
some other issues with it, and it never got to 2.2. My recollevtion is
that it worked very well at both accepting articles and reading, but it
didn't work with xrefslave and {something}.

That code simply built the overview in memory until it was full and then
wrote out a block. I'm not sure how you would build overview on the fly
if you didn't save the info when you read the article, at least not
without rereading the whole spool. Perhaps some form of high water mark,
showing that the cycbuffs have been overviewed up to some point, and a
partial scan on startup after a dirty shutdown.

For incoming speed you want to write overview in order of article
reception, while for read speed you want to have a prebuilt list ala 1.x
which can just be thrown at the client. These seem to be somewhat
contradictory requirements, and I have often wondered how a B+ tree
would fare, since the top of the tree would always be in memory, and the
common stuff would be there too, in any reasonable disk caching scheme.
-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  One common problem is mistyping an email address and creating another
valid, though unintended, recipient. Always check the recipient's
address carefully when sending personal information, such as credit
card numbers, death threats or offers of sexual services.


Technical Details
Message-ID: <7g7qt4$1fou$1@newssvr03-int.news.prodigy.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: <7f5p31$vmq$1@news.netmar.com> <19990427104942.033$2b@newsreader.com> <7g5b88$pi$1@twwells.com> <19990428114141.388$tD@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <7g7qt4$1fou$1@newssvr03-int.news.prodigy.com>
Subject: Re: Abandoning uniover - but how?
Date: Wed, 28 Apr 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <7f5p31$vmq$1@news.netmar.com> <19990427104942.033$2b@newsreader.com> <7g5b88$pi$1@twwells.com> <19990428114141.388$tD@newsreader.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: 472013531
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr03-int.news.prodigy.com 925331172 48926 199.4.137.118 (28 Apr 1999 20:26:12 GMT)
Organization: TMR Associates, Schenectady NY
NNTP-Posting-Date: 28 Apr 1999 20:26:12 GMT
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com