Article View: news.software.nntp
Article #21128Re: ANN: Newspool-clean V1.0b6
From: Butch Kemper
Date: Sun, 31 Aug 1997 00:00
Date: Sun, 31 Aug 1997 00:00
91 lines
4100 bytes
4100 bytes
In article <PN6r$cC@NewsReader.Com>, curt@kcwc.com (Curt Welch) wrote:
> kemper@bihs.net (Butch Kemper) wrote:
> > Does anyone else have anything to report? Either good or bad about their
> > use of the program?
>
> I tried it out yesterday.
>
> Not bad. I've been looking for just such a tool and have always
> wondered why it wasn't written and included with inn long ago.
> Using find to clean up the spool is workable, but just not "right".
>
> Instead of producing rm commands, you should have an option to
> just do the unlink in perl. Having to exec rm just slows it down
> and on a really messy spool (like mine) this makes a difference.
I want the program to run at maximum speed and give the sysadmin the
opportunity to see what was going to be done before it happened. That is
why I made the program produce commands.
My experience has shown that the time to do the rm commands is a minor
portion of the time required to scan the spool and read the history file.
>
> Also, I don't like how it saves all the info and spits it out
> at the end. It should just spit it out (or do the work) as it
> finds it. This way, if the system crashes, or is taken down in
> the middle of the run, or the program bombs, at least some of the
> work will have been done.
That is a difficult problem to avoid. I did not want the program to make
any changes to the news spool that you couldn't see the results of. Thus,
the program does it's job in four phases:
1. Read the active file to determine the active newsgroups. This
is fairly quick.
2. Scan the spool to find all the bad directories and some of the
bad files. A vector of the article numbers found is built for
phase three. This phase is the longest and takes a long time.
3. The history file is read and the valid article numbers are
removed from the vector.
4. The vectors are scanned to output removal commands for invalid
article numbers. This phase is quick.
>
> Also, sorting the files makes the rm less effecient.
> If you leave the list in the order your program found the problems
> it would run faster.
The rmdir commands are sorted in reverse order to remove all empty directories.
My experience has shown that the rm time is a minor portion of the time
required to scan the news spool and read the history file.
>
> I too would like to see it have an option to clean up over.view
> directores as well.
I don't run over.view so I can't test it. If you want to write the code, I
will include it.
>
> I'm happy enough with it that I'll continue using it even if you
> don't improve it. If I have a spare 10 minutes, I'll make the
> changes myself.
I think you will find that making all the changes you talked about will
require more than 10 minutes but when you are done, I will be glad to
include the changes.
>
> Also, the ftp site/web site were the program can be found should
> be inlcuded in the comments so people know where to go look for
> updated versions.
I will add that information and also send it in for the contributions
portion of the source tree.
>
> Curt Welch
> http://CurtWelch.Com/
--
Butch Kemper | Free sound advice available
Brazos Internet Consulting Group | "95% sound and 5% advice"
409-361-2324 | Refunds cheerfully provided
Technical Details
Message-ID:
<kemper-ya02408000R3108972150030001@news.bihs.net>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-mailReferences:
<kemper-ya02408000R2408971518350001@news.bihs.net> <PN6r$cC@NewsReader.Com>Show Full Headers
Complete Article Headers
Message-ID: <kemper-ya02408000R3108972150030001@news.bihs.net> Subject: Re: ANN: Newspool-clean V1.0b6 Date: Sun, 31 Aug 1997 00:00:00 +0000 From: kemper@bihs.net (Butch Kemper) References: <kemper-ya02408000R2408971518350001@news.bihs.net> <PN6r$cC@NewsReader.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: 269287417 Organization: Brazos Internet Consulting Group Newsgroups: news.software.nntp