🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88022

Re: Permanent retention with cycbuff

#88022
From: Russ Allbery
Date: Fri, 25 Oct 2019 18:21
32 lines
2399 bytes
Richard Knight <keep_it@nntp.server> writes:

> As far as I can understand, if the cycbuffs always have enough space
> then that should be feasible. However when a new batch of articles is
> posted to the server then a significant portion expire (they don't
> routinely expire otherwise), even though it seems the cycbuffs have
> enough space.

Why are you certain that the cycbuffs have enough space?

> Buffer EIGHT, len: 2048.00 Mbytes, used: 0.08 Mbytes ( 0.0%)   3 cycles
>   Meta MAIN, order: 8, current: FALSE, blocksize: 4096
>   Newest: 2019-10-18  9:52:00,    7 days,  5:53:57 ago

3 cycles says that the cycbuff has run out of space three times and
articles have therefore been written back at the start of the cycbuff,
overwriting earlier articles.  If the cycbuff had never run out of space,
it would be at 1 cycle.

I think the confusing part here is that "used" doesn't mean what it sounds
like it means (which is probably a UI bug).  That's actually calculated
based on the free element of the cycbuff header, which points to the next
location in the cycbuff to which an article would be written.  That means
that when a cycbuff completely fills, the free pointer is moved back to
the start of the cycbuff, which means that a completely full cycbuff will
show used of 0.0% similar to what you see above.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87o8y4elez.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20191025155942.a2e420936c484038c919d38a@nntp.server>

Show Full Headers
Complete Article Headers
Message-ID: <87o8y4elez.fsf@hope.eyrie.org>
Subject: Re: Permanent retention with cycbuff
Date: Fri, 25 Oct 2019 11:21:08 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <20191025155942.a2e420936c484038c919d38a@nntp.server>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 32
Nntp-Posting-Host: hope.eyrie.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: usenet.stanford.edu 1572027668 21857 166.84.7.155 (25 Oct 2019 18:21:08 GMT)
X-Complaints-To: action@cs.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:3ubjJj4MsgKdKEpF01/dwDYH304=