Thread View: news.software.nn
2 messages
2 total messages
Started by Tom Ivar Helbekkmo
Fri, 22 Jun 1990 07:14
Trouble with article counts
Author: Tom Ivar Helbekkmo
Date: Fri, 22 Jun 1990 07:14
Date: Fri, 22 Jun 1990 07:14
38 lines
2240 bytes
2240 bytes
Seems to me that there's a bit of trouble with article counts here and there... More specifically, NNs idea of how many articles it has is exagerrated; it starts out right, and then just keeps increasing. Right now, 8 days after the last reinit of NN, "nnadmin s" tells me I have about 5000 articles *more* than the number of inodes actually used on the file system -- and there are actually a few thousand non-news files on there as well... :-) I also note that nnstats gives the same skewed view; I log collection and expiry, and the difference in numbers between the two just keep growing, day by day. Right now, it says it's collected about 40000 articles after the initial collection run, which I removed from the Log file, and expired about 28000. This agrees with the way nnadmin indicates a constantly growing number of articles. Here's the script I run nightly -- the double killing of the running master is there because the first try sometimes fails, but the second try will always succeed: /usr/lib/nn/nnmaster -k /usr/lib/nn/nnmaster -k /usr/lib/nn/back_act /usr/lib/news/trimlib /usr/lib/news/expire -e 7 -E 14 /usr/lib/nn/nnmaster -u -i -e1 -E -LC -f /usr/lib/nn/nnmaster -r -C -B -O42 With this setup, even immediately after the script has run, the oldest several messages NN lists in each group will be unavailable (NN says they're expired, but still lists them on the menu). Am I doing something wrong? Thanks for NN! It's the best newsreader I've ever seen! -tih -- Tom Ivar Helbekkmo, NHH, Bergen, Norway. Telephone: +47-5-959205 tih@barsoom.nhh.no, thelbekk@norunit.bitnet, edb_tom@debet.nhh.no
Re: Trouble with article counts
Author: Kim F. Storm
Date: Mon, 25 Jun 1990 10:53
Date: Mon, 25 Jun 1990 10:53
83 lines
3672 bytes
3672 bytes
tih@barsoom.nhh.no (Tom Ivar Helbekkmo) writes:
>Seems to me that there's a bit of trouble with article counts here and
>there... More specifically, NNs idea of how many articles it has is
>exagerrated; it starts out right, and then just keeps increasing.
I suppose that you are refering to the article count reported by
nnadmin's (S)tat command. It tells you how many articles are recorded
in nn's database, so you better believe it :-)
If it is (a lot) higher than then number of actual news articles, then
it indicates that the database is not expired properly - and looking
at the commands you use, it isn't!
Maybe the installation guide isn't explicit enought about this, but
the only way to accomplish a full expire on all groups in the database
is to execute the following command after the news expire has completed:
nnadmin =EYW
(Running nnmaster -F "" is an alternative though, but you have to be
more careful to ensute that another nnmaster is not already running)
>Here's the script I run nightly -- the double killing of the running
>master is there because the first try sometimes fails, but the second
>try will always succeed:
> /usr/lib/nn/nnmaster -k
> /usr/lib/nn/nnmaster -k
> /usr/lib/nn/back_act
> /usr/lib/news/trimlib
> /usr/lib/news/expire -e 7 -E 14
> /usr/lib/nn/nnmaster -u -i -e1 -E -LC -f
> /usr/lib/nn/nnmaster -r -C -B -O42
I don't know why you need to kill it twice (I've heard about the problem
before, but haven't been able to explain it).
I have several comments to your script:
1) Unless you intend to run "nnmaster -F", there is no need to stop
nnmaster while news/expire is running.
2) Running nnmaster -e1 is not a safe way to ensure that expire is
run on all groups - it will only apply to groups where the "min"
field is updated by expire, and experience shows that this is a
very unreliable way to detect expiration in a group!
3) The -O42 will probably not have any effect, since only new articles
which are added to the database are checked - and I can't imagine
any new articles that are not seen by nnmaster within 42 days.
So the -O option is intended to be used only when you initialize
the database (i.e. on the first run after nnmaster -I).
So here is my recommendation:
A) Either run nnmaster permanently, started from /etc/rc with the
following options:
.../nnmaster -r -h -B -C
(-h is a new option in patch #6 to avoid racing with rnews)
and execute nnadmin =EYW from you script after news/expire has
finished:
/usr/lib/nn/back_act
/usr/lib/news/trimlib
/usr/lib/news/expire -e 7 -E 14
/usr/bin/nnadmin =EYW
B) Or use the -F option to get an unconditional expiration
/usr/lib/nn/nnmaster -k
/usr/lib/nn/nnmaster -k
/usr/lib/nn/back_act
/usr/lib/news/trimlib
/usr/lib/news/expire -e 7 -E 14
/usr/lib/nn/nnmaster -u -i -F ""
/usr/lib/nn/nnmaster -r -h -C -B
--
Kim F. Storm <storm@texas.dk> No news is good news,
Texas Instruments A/S, Denmark 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