🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #34986

Re: Expire with INN2: Unclear on the concept

#34986
From: Aidan Cully
Date: Tue, 26 Jan 1999 00:00
82 lines
4678 bytes
In news.software.nntp, davidsen@tmr.com (bill davidsen) wrote:
> In article <Pine.LNX.4.00.9901230848270.1119-100000@Qoredump.ineT.telE.dQ>,
> BARRY BOUWSMA IS A PROUD MEMBER OF NAMBLA  <fluffy@vszbr.cz> wrote:
> | On 22 Jan 1999, bill davidsen wrote:
> | 
> | > | Well bugger that.  So I'm tied down by the amount of space I've
> | > | allocated for my spool, so I guess expire is trying to be too
> | > | smart for its own good and poking around in the buffers.
> | > 
> | > I realize that you have constraints on memory, but why don't you just
> | > make the damn cycbuffs smaller?!! If you want to play with the code,
> | > fine enough, but there is a cleaner solution by tuning your cycbuff
> | > size.
> | 
> | Then I lose out on being able to hold backlogs for a few days
> | in case of downtime where I need it.  You'd think it would be
> | easier for me just to pop the cover off one of my cow-orkers'
> | NT machines and swipe some of their memory.
> 
> Now you totally lose me... if you make history smaller, you have the
> articles still online but you can't find them any more... this seems to
> be the worst of all possible worlds, you devote space to the srticle but
> can't use it. A more balanced size between history, overview, and
> cycbuffs is indicated.

I think Barry is running traditional spool?  If so, you don't need a
history entry for the article to do lookups by number, right?

> 1 - embedded overview patch
> 
>   Has anyone used the embedded overview patch to 2.1 from digital.com?
> It mixes the articles and overview in the cycbuff, and seems to keep
> blocks of overview for the same group in order, so delivery of XOVER
> data sounds faster.

This is actually the first I've heard of this patch..  I'm not about to
try it, though, since I'm loath to run a non-standard INN, but that's
just me.

> 2 - making cycbuffs larger
> 
>   Assuming that you want to make existing cycbuffs larger rather than
> adding more, is it as easy as just appending a block of zeros to the
> end of the existing cycbuff (to get as contiguous allocation as
> possible)  and then restarting with the size changed in the cycbuff
> control file? 

I think you'll probably also want to do some bit manipulation in the
cycbuff's usage map at the beginning of the buffer..  The usage-map
will grow and shrink proportionally with the cycbuff, so the tail end
of the cycbuff will end up overwriting an area that used to be used
by articles.  Since the usage map is basically 1 bit for every 512
bytes after the end of the usage map marks whether an article is there
or not, you'd actually have to move the entire usage map left a
certain number of bits (depending on how much you grow your buffer..
1 bit for every 512 bytes, I think.), filling in what's left with 0's.

> 3 - making cycbuffs smaller
> 
>   If you change the size down in the cycbuff control file, and then let
> news run until the cycbuff rolls over twice, can you then ftrunc() the
> file down to the new smaller size?

Same sort of thing as above..  If you want to keep the current articles,
you'd have to mess with the usage map, but moving the bits in the other
direction this time.

If you don't care about keeping current articles, I wrote a dumb little
C-program for zeroing out the header and the usage-map on a CNFS-buffer
and sent it off to the ISC for inclusion..  I haven't checked if it
made it in, but if anyone wants it I can make it available from my FTP
site.  Growing and shrinking the buffer would be someone else's
responsibility.

HTH,
--aidan
-- 
Aidan Cully       "Umm..  Could you call back?  My house is on fire."
Panix Staff          --Tom Waits
aidan@panix.com

Technical Details
Message-ID: <78lne2$7eh$1@panix7.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
References: <Pine.LNX.4.00.9901200022550.1119-100000@Qoredump.ineT.telE.dQ> <78aodj$2j0o$1@newssvr03-int.news.prodigy.com> <Pine.LNX.4.00.9901230848270.1119-100000@Qoredump.ineT.telE.dQ> <78llto$1fam$1@newssvr03-int.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <78lne2$7eh$1@panix7.panix.com>
Subject: Re: Expire with INN2: Unclear on the concept
Date: Tue, 26 Jan 1999 00:00:00 +0000
From: aidan@panix.com (Aidan Cully)
References: <Pine.LNX.4.00.9901200022550.1119-100000@Qoredump.ineT.telE.dQ> <78aodj$2j0o$1@newssvr03-int.news.prodigy.com> <Pine.LNX.4.00.9901230848270.1119-100000@Qoredump.ineT.telE.dQ> <78llto$1fam$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
X-Deja-AN: 437323119
Distribution: inet
X-Complaints-To: usenet@panix.com
X-Trace: news.panix.com 917397763 25272 166.84.0.232 (27 Jan 1999 00:42:43 GMT)
Organization: PANIX -- Public Access Networks Corp
NNTP-Posting-Date: 27 Jan 1999 00:42:43 GMT
Newsgroups: news.software.nntp