🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17965

Re: Fastrm is a PIG

#17965
From: Jerry Aguirre
Date: Fri, 23 May 1997 00:00
44 lines
2689 bytes
In article <338498BB.34E8@MBnet.MB.CA>,
Dave Rose  <Dave_Rose@MBnet.MB.CA> wrote:
>The drives are fairly light on the usage too:

I am not too supprised at this.  If you think about it you have a
single process, fastrm, doing one "unlink" at a time.  File removal
results in some synchronous updates to the disk so each unlink takes
time.

So fastrm is doing one IO to one disk at a time.  The other disks do
nothing so they are not getting stressed.  (Unless unimportant functions
such as new articles, outgoing feeds,  or reading is occuring.:-)

The clock time for fastrm to complete is long but is that a problem?
As long as it is done before the next expire run you should be OK.
News doesn't stop processing and fastrm doesn't use a lot of RAM so it
should not be an issue.

Then there is the problem of groups like control.cancel and
misc.jobs.offered which are so large it can take considerable time for
the OS just to find the article.  The high system time is the fault of
the OS and there is not much that can be done about that without either
changing the OS or storing the articles differently.

A hardware write cache will provide the improved speed of the fastfs
program without the risk of file damage in a crash.  Of course you
pay more for a write cache than you do for setting the asycio bit on
the filesystem.

You should be able to speed up the clock time considerably by spliting
the expire.rm list into several parts and processing them in parallel
Thus you might have one fastrm processing the first 10,000 entries, a
second processing the next 10,000, etc.  This will delete the files
faster but at the expense of a much more intense load on the CPU and
disks.  If you are trying to finish during the "off" time before the
busy part of the day this might be reasonable.

The only time I used to "push" fastrm was when news had been throttled
and would not un-throttle until enough space was freed.  Other than that
I would just let it go at its own pace.  My current spool is VXFS
instead of UFS so fastrm runs very quickly.

Technical Details
Message-ID: <5m32rh$chm$1@fes.whowhere.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: <338209E6.76EA@MBnet.MB.CA> <5luhe0$24t$2@zingo.tninet.se> <338498BB.34E8@MBnet.MB.CA>

Show Full Headers
Complete Article Headers
Message-ID: <5m32rh$chm$1@fes.whowhere.com>
Subject: Re: Fastrm is a PIG
Date: Fri, 23 May 1997 00:00:00 +0000
From: jerry@rigel.whowhere.com (Jerry Aguirre)
References: <338209E6.76EA@MBnet.MB.CA> <5luhe0$24t$2@zingo.tninet.se> <338498BB.34E8@MBnet.MB.CA>
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: 243214745
Organization: WhoWhere?; Mt. View, CA USA
Newsgroups: news.software.nntp