Thread View: news.software.nntp
2 messages
2 total messages
Started by Butch Kemper
Sun, 24 Aug 1997 00:00
Re: ANN: Newspool-clean V1.0b6
Author: Butch Kemper
Date: Sun, 24 Aug 1997 00:00
Date: Sun, 24 Aug 1997 00:00
36 lines
1720 bytes
1720 bytes
On 16 August, I posted this announcement of the availability of Newspool-clean V1.0b6 for download and test: > The first public beta version of newspool-clean is now available for > download at ftp://ftp.bihs.net/pub/inn/newspool-clean.pl-v1.0b6. > > Newspool-clean searches the INN Spool to purge old directories for deleted > newsgroups, bad symbolic links, articles lost from the history file, and > non-article files. The program creates rmdir and rm commands which can be > used as input to sh. > > I run the job from Cron on the first of each month. I schedule it to start > about 30 minutes after the normal ending time for news.daily. > > Please let me know if you discover any problems. I have only had one report from someone using the program with a version of Perl less than 5.003. Does anyone else have anything to report? Either good or bad about their use of the program? Please send me email about your experience. Thanks. Butch -- Butch Kemper | Free sound advice available Brazos Internet Consulting Group | "95% sound and 5% advice" 409-361-2324 | Refunds cheerfully provided
Re: ANN: Newspool-clean V1.0b6
Author: 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
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