🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #14450

Re: Why does fastrm takes so long?

#14450
From: Alexis Rosen
Date: Mon, 27 Jan 1997 00:00
39 lines
2312 bytes
In <32EAB7FA.792F@synapse.net> Evan Champion <evanc@synapse.net> writes:

>Raul Zighelboim wrote:
>> I believe news.daily takes care of sorting the list of files to be removed
>> before feeding them to expirerm (and to fastrm).
>> At least it looks like it when I look at the expire.rm file!
>> 
>> I am running fastrm -es ; are there better options ?
>> (I tried to run it as fastrm -use, but got errors:
>>         'cannot chdir from /var/news/spool/articles/something to
>>                 ../../something_else'  (only one filesystem for spool/articles).

>The default for expirerm is to run "fastrm -e -u -s".  Note that you 
>can't use "-u" if you have symlinks in your news filesystem.

>fastrm only has a limited number of options so beyond tuning -u and -s 
>for your particular platform, you're sort of stuck with it.  You might 
>look in to optimising your system in other ways; for example, you could 
>mount your disks async, or put them on a controller with write-behind 
>caching.

>Evan

Actually you can use "-u" even if you have multiple filesystems, and it's
a big big win. The way you do it is simply split the expire.list into one
file per filesystem. Then you can not only use -u but you can run them
concurrently.

This is nifty enough that it has delayed the urge to move everything to a
massive striped filesystem. I'm about to give in, but not because of expire.

BTW, news.daily does indeed sort the file before handing it to fastrm. But
(to address the original article) you have to make one unlink() call per
file, not per directory. Sorting won't change this.

/a

Technical Details
Message-ID: <5chq2f$3pp@panix4.panix.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
References: <01bc0afb$f877ef90$827e1bcc@rodia> <5cdvdi$msu$1@kurgan.hilander.com> <01bc0b1f$1cabbcc0$827e1bcc@rodia> <32EAB7FA.792F@synapse.net>

Show Full Headers
Complete Article Headers
Message-ID: <5chq2f$3pp@panix4.panix.com>
Subject: Re: Why does fastrm takes so long?
Date: Mon, 27 Jan 1997 00:00:00 +0000
From: alexis@panix.com (Alexis Rosen)
References: <01bc0afb$f877ef90$827e1bcc@rodia> <5cdvdi$msu$1@kurgan.hilander.com> <01bc0b1f$1cabbcc0$827e1bcc@rodia> <32EAB7FA.792F@synapse.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-mail
X-Deja-AN: 212492447
Distribution: inet
Organization: PANIX Public Access Internet and Unix, NYC
Newsgroups: news.software.nntp