Article View: news.software.nntp
Article #7184Re: expire performance enhancement
From: T. William Wells
Date: Thu, 02 May 1996 00:00
Date: Thu, 02 May 1996 00:00
43 lines
2421 bytes
2421 bytes
In article <4m8bmq$sqa@olivea.atc.olivetti.com>, Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote: : Note that expire's processing of the history file is only a small part : of the total news.daily time. There is still the time for fastrm, : expireover, and log processing. Still, every little bit helps. I do expire at two different times. With the news.daily run, I do a regular expire. Whenever disk space is low, I do a "fast expire". The fast expire starts with expire run with the options to not recreate the history file. This lets me get to deleting files as quickly as possible. In that case, the time spent in expire is important -- it determines how long it'll be from the time I detect the low space condition to the time I start deleting files. A couple of notes on this. First, by only recreating the history files once a day, I don't have the problem with multiple deleted history files hanging around and causing the file system my lib directory is on filling up. Second, it's nothing as simple as just expire and fastrm. The actual procedure is more like: expire and don't recreate the history files sort the resulting file of deletes save this sorted file for the next run of the fast expire comm this file against the previous set of deletes send the comm'ed output into fastrm The reason for this is that, as I don't recreate the history file, each time I do an expire run, already deleted files go into the output; thus the system would spend lots of time trying to delete files already deleted. BTW, I have another trick in my arsenal for speeding up expires. The last step is actually more complex. I split the comm'ed output into multiple files, one for each news spindle and run a fastrm on each of the files. That way, all the spindles get things deleted off them ASAP.
Technical Details
Message-ID:
<DqswGv.KM6@twwells.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-mailReferences:
<Dqp091.7q3@twwells.com> <4m8bmq$sqa@olivea.atc.olivetti.com>Show Full Headers
Complete Article Headers
Message-ID: <DqswGv.KM6@twwells.com> Subject: Re: expire performance enhancement Date: Thu, 02 May 1996 00:00:00 +0000 From: bill@twwells.com (T. William Wells) References: <Dqp091.7q3@twwells.com> <4m8bmq$sqa@olivea.atc.olivetti.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: 152674407 Organization: None, Mt. Laurel, NJ Newsgroups: news.software.nntp