🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
6 messages
6 total messages Started by Doug Eastick Sat, 24 Mar 1990 03:31
$###@!'ing Expire (6.3 PL8 Compilation 63)
#220
Author: Doug Eastick
Date: Sat, 24 Mar 1990 03:31
16 lines
1267 bytes
Ok, the Log file says Expire has been run after 'nnadmin E' (or some
variant) and it also does it after the Cnews upact program has updated
the lowest article field in the active file.

So, why do I still have 83,000 articles in the database, taking up 7MB
of disk space?  And growing?  I cleared it out last time by 'rm -rf
/usr/spool/news/.nn' and rebuilding the DB.  Grrr.

Particulars:	Sun 3/180 (SunOS 3.5)
		Network defined
		Cnews (doesn't matter, right Mark or JFL?)
		no NNTP stuff defined.

Any help appreciated.
--
Doug Eastick -- eastick@me.utoronto.ca
Re: $###@!'ing Expire (6.3 PL8 Compilation 63)
#227
Author: Rene' Seindal
Date: Tue, 27 Mar 1990 16:34
21 lines
1605 bytes
eastick@me.utoronto.ca (Doug Eastick) writes:

> Ok, the Log file says Expire has been run after 'nnadmin E' (or some
> variant) and it also does it after the Cnews upact program has updated
> the lowest article field in the active file.

> So, why do I still have 83,000 articles in the database, taking up 7MB
> of disk space?  And growing?  I cleared it out last time by 'rm -rf
> /usr/spool/news/.nn' and rebuilding the DB.  Grrr.

> Particulars:	Sun 3/180 (SunOS 3.5)
> 		Network defined
> 		Cnews (doesn't matter, right Mark or JFL?)
> 		no NNTP stuff defined.

Cnews doesn't maintain the min-field in the active file, and nnmaster uses
this field to find out whether there is anything to expire.  Cnews comes with
a program 'upact' that increments the min-fields.  Run that before running
'nnadmn E'

Rene' Seindal (seindal@diku.dk)
Re: $###@!'ing Expire (6.3 PL8 Compilation 63)
#228
Author: Doug Eastick
Date: Tue, 27 Mar 1990 19:38
27 lines
1842 bytes
seindal@skinfaxe.diku.dk (Rene' Seindal) writes:
>Cnews doesn't maintain the min-field in the active file, and nnmaster uses
>this field to find out whether there is anything to expire.  Cnews comes with
>a program 'upact' that increments the min-fields.  Run that before running
>'nnadmn E'

Done.  Nightly.  Any other ideas?

The Log-file shows that Expire has ran, but disk space is still
comsumed.
X: Mar 23 05:38 (M): Expire: 2680 art, 441 gr, 4025 s (incl. collect)
X: Mar 24 07:14 (M): Expire: 3804 art, 425 gr, 4552 s (incl. collect)
X: Mar 25 05:28 (M): Expire: 4599 art, 456 gr, 3753 s (incl. collect)
X: Mar 26 05:19 (M): Expire: 5022 art, 490 gr, 3545 s (incl. collect)
X: Mar 27 05:35 (M): Expire: 5109 art, 477 gr, 4043 s (incl. collect)

`nnadmin s` gives:

Master:
   last_scan:     Mar 27 14:23
   no of groups:  1183
   next write:    19443

   Articles:   78540			<--- this grows
   Disk usage: 5535 k			<--- this grows too
--
Doug Eastick -- eastick@me.utoronto.ca
Re: $###@!'ing Expire (6.3 PL8 Compilation 63)
#232
Author: Tom Fitzgerald
Date: Wed, 28 Mar 1990 20:22
14 lines
1331 bytes
seindal@skinfaxe.diku.dk (Rene' Seindal) writes:
> Cnews doesn't maintain the min-field in the active file, and nnmaster uses
> this field to find out whether there is anything to expire.  Cnews comes with
> a program 'upact' that increments the min-fields.  Run that before running
> 'nnadmn E'

If you're going to do this on any kind of regular basis, you're MUCH
better off running updatemin instead of upact.  updatemin is substantially
faster, and since they both lock up the news system while running, you
want it to finish as fast as possible.

---
Tom Fitzgerald      Wang Labs           fitz@wang.com
1-508-967-5278      Lowell MA, USA      ...!uunet!wang!fitz
Re: $###@!'ing Expire (6.3 PL8 Compilation 63)
#235
Author: Wayne Davison
Date: Thu, 29 Mar 1990 01:09
10 lines
1342 bytes
seindal@skinfaxe.diku.dk (Rene' Seindal) wrote:
} Cnews comes with a program 'upact' that increments the min-fields.

'Upact' is a shell script that is VERY slow.  Be sure to check out the
C program, updatemin, in the expire subdirectory of your C news source
for a much faster solution.  You'll have to "make updatemin" and install
it yourself, but it is worth it.
-- 
Wayne Davison           \  /| / /| \/ /| /(_)    davison%drivax@uts.amdahl.com
davison@drivax.UUCP    (_)/ |/ /\| / / |/  \         ...!amdahl!drivax!davison
Re: $###@!'ing Expire (6.3 PL8 Compilation 63)
#256
Author: Kim F. Storm
Date: Tue, 03 Apr 1990 22:36
34 lines
2115 bytes
eastick@me.utoronto.ca (Doug Eastick) writes:

>Ok, the Log file says Expire has been run after 'nnadmin E' (or some
>variant) and it also does it after the Cnews upact program has updated
>the lowest article field in the active file.

>So, why do I still have 83,000 articles in the database, taking up 7MB
>of disk space?  And growing?  I cleared it out last time by 'rm -rf
>/usr/spool/news/.nn' and rebuilding the DB.  Grrr.

I am currently rewriting the entire database expire code to work as
it should always have done:
  - Eliminate ALL expired articles from the database
  - Not rely on 'min' to detect expiration.
  - Reuse as much information from the database as possible.
  - Only recollect information if something is *wrong*, or it is
    explicitly requested.

It will involve running a separate 'nnexpire' program, either directly
from cron after news expire has run, or as now via nnadmin->nnmaster.
In both cases, it will synchronize updates to the database with nnmaster.

I want to have this ready for 6.4, because the current expire code is
either too lazy or too time-consuming, and I think its time has come!
I have almost all the pieces ready (except for the NNTP part), and I
only have to combine them properly, so it should be ready next week.

Does that make you happy?


-- 
Kim F. Storm        storm@texas.dk        Tel +45 429 174 00
Texas Instruments, Marielundvej 46E, DK-2730 Herlev, Denmark
	  No news is good news, but nn is better!
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