🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Valentina Huber Thu, 28 Aug 2003 11:18
Expire problem
#66577
Author: Valentina Huber
Date: Thu, 28 Aug 2003 11:18
54 lines
3324 bytes
Hi all,

we have expire problem on our INN server. The history and overview 
databases contain the information about articles, which must be already 
expired. It cause, that the allocated space grows.

I have specified in the expire.ctl file:

/remember/:7
*:A:1:7:10

and run every day "news.daily expireover lowmark delayrm". It produce 
the output like:

---------------------------
expireover start Thu Aug 28 03:04:56 BST 2003: ( -z/var/spool/news/log/expire.rm -Z/var/spool/news/log/expire.lowmark)
    Article lines processed  1839666
    Articles dropped          250421
    Overview index dropped    250421
expireover end Thu Aug 28 05:50:42 BST 2003
lowmarkrenumber begin Thu Aug 28 05:50:42 BST 2003: (/var/spool/news/log/expire.lowmark)
lowmarkrenumber end Thu Aug 28 05:50:44 BST 2003
	expirerm start Thu Aug 28 05:51:31 BST 2003
	expirerm end Thu Aug 28 06:48:31 BST 2003
expire begin Thu Aug 28 06:49:02 BST 2003: (-v1)
    Article lines processed  2197507
    Articles retained        1965542
    Entries expired           231965
    Old entries dropped       233063
    Old entries retained       94331
expire end Thu Aug 28 07:08:36 BST 2003
-----------------

It seems so, that the articles from the timehash have been really 
removed. But it does not work for the articles stored in the CNFS 
buffer. We have now in the list such articles from July 11.

Have everybody any idea, what is wrong? It is also strange, that the 
history file contain the information about old articles, but not e.g. 
about articles from the timehash. For example:

 > grephistory 7128047.0307152020.552cd825@posting.google.com  # article 
which must be alreay expired
 > @030242494E5448524500000BAD710000003D@

 > grephistory 3f4b1556$1_1@news.tiscalinet.ch                           
                # timehash-article
 > Not found.

PS. We had in the time between 11-14 July no disk space left on the 
server and it crashed.

Valentina Huber
Re: Expire problem
#66584
Author: Mike Berger
Date: Thu, 28 Aug 2003 21:15
23 lines
1983 bytes
The cnfs storage is a circular buffer -- there isn't any point to expiring
old articles, instead of just letting them get overwritten by new ones.

Imagine the overhead of eliminating articles from the middle of the
buffer, then compressing it to remove the holes.  It's a sequential buffer.

If for some reason you want to expire some articles earlier than others,
you should use a separate, smaller circular buffer for just those groups.

Valentina Huber wrote:

> Hi all,
>
> we have expire problem on our INN server. The history and overview
> databases contain the information about articles, which must be already
> expired. It cause, that the allocated space grows.
>
> ...
> It seems so, that the articles from the timehash have been really
> removed. But it does not work for the articles stored in the CNFS
> buffer. We have now in the list such articles from July 11.

Re: Expire problem
#66585
Author: Jeffrey M. Vinocur
Date: Thu, 28 Aug 2003 21:16
26 lines
1928 bytes
In article <bikofe$96a$1@codas.jet.uk>,
Valentina Huber  <Valentina.Huber@jet.efda.org> wrote:
>
>It seems so, that the articles from the timehash have been really 
>removed. But it does not work for the articles stored in the CNFS 
>buffer. We have now in the list such articles from July 11.
>
>Have everybody any idea, what is wrong? It is also strange, that the 
>history file contain the information about old articles, but not e.g. 
>about articles from the timehash.

Nope, that's normal.  CNFS keeps articles until the buffer is
full; then it writes new articles over the old ones.  So normally
you want to keep the history entries for those articles, because
otherwise they're just wasting space.

But if you really want to expire articles in CNFS, you can add
the -N flag to the crontab entry for `expire`.  (A different idea
would be to make a smaller CNFS buffer and use the extra room for
a larger history file.)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads