Article View: news.software.nntp
Article #14467Re: Why does fastrm takes so long?
From: Joe Greco
Date: Mon, 27 Jan 1997 00:00
Date: Mon, 27 Jan 1997 00:00
73 lines
3640 bytes
3640 bytes
In article <5cfdlb$3mq$1@schnok.fr.net>,
Christophe Wolfhugel <wolf@schnok.fr.net> wrote:
>This delay is not unusual. Creation and removal of files is a pretty
>affair. From different tests, over all available file systems I've
>tested (UFS on Sun, DEC, *BSD, Advfs on DEC, Ext2fs on Linux), the Ext2fs
>is by far the most efficient, followed by Advfs (which is not adeaquate
>for a today newsspool for other reasons) and everything else is behind.
Huh?
>This is the reason I do like Linux for doing news. In a testing configuration
>(less loaded machine, only incoming trafic, no readers), a standard INN-1.5.1
>on a 486/66 box with one narrow SCSI disk is faster than many production
>servers I run.
>
>Fastrm is also by design faster on Linux, but anyhow unlinking 130k files
>is just a pain. One solution which could help and which shall be doable on
>systems with sources if to add a new system call : munlink (multiple unlink)
>which would allow in one run to remove several files from one directory.
>It has to be coded and tested.
Huh? What? I can delete 24389 files plus the directories they're in
in about 20 seconds... that's only 1200 files per second I guess, which
is far below what the bandwidth of the drive should allow, but still,
for Usenet news that should be adequate. I could delete a days worth
of news in seven minutes... probably less because the news spool is a
bunch of drives, which can be parallelized, not just the single drive
that I ran this test on.
Creating files:0123456789qwertyuiopasdfghjkl done
Removing files @ Mon Jan 27 09:32:59 CST 1997
Completed run @ Mon Jan 27 09:33:19 CST 1997
The program:
% cat runner
#! /bin/sh -
echo -n "Creating files:"
for i in 0 1 2 3 4 5 6 7 8 9 q w e r t y u i o p a s d f g h j k l; do
echo -n ${i}
mkdir ${i}
for j in 0 1 2 3 4 5 6 7 8 9 q w e r t y u i o p a s d f g h j k l; do
mkdir ${i}/${j}
for k in 0 1 2 3 4 5 6 7 8 9 q w e r t y u i o p a s d f g h j k l; do
touch ${i}/${j}/${k}
done
done
done
echo " done"
echo "Removing files @ "`date`
rm -fr 0 1 2 3 4 5 6 7 8 9 q w e r t y u i o p a s d f g h j k l
echo "Completed run @ "`date`
% uname -sr
FreeBSD 2.2-RELEASE
>With those changes, I average at 20 incoming arts/s (still no outgoing feeds
>setup yet) with peaks at 50 arts/s in good cases (presorted batch), still
>on my good old PC. Expiring 120k articles just takes a few minutes.
newsfeeds.sol.net has hit peaks of about 44 articles per second after a
downtime, running a dozen full bidir peers and only half its disks (that
was also without some of the memory it was supposed to have). I only
control one of its peers and I didn't sort the batchfile. (No cheating
allowed). I keep thinking about trying the cyclical FS patches but I
keep wondering if there is any point when I can handle data rates that
are ten times average patterns.
All that having been said... innfeed seems to be a real bottleneck.
... JG
Technical Details
Message-ID:
<5ciirn$llr@earth.alpha.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:
<01bc0afb$f877ef90$827e1bcc@rodia> <5cfdlb$3mq$1@schnok.fr.net>Show Full Headers
Complete Article Headers
Message-ID: <5ciirn$llr@earth.alpha.net> Subject: Re: Why does fastrm takes so long? Date: Mon, 27 Jan 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <01bc0afb$f877ef90$827e1bcc@rodia> <5cfdlb$3mq$1@schnok.fr.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: 212537367 Distribution: inet Sender: joegreco@earth.execpc.com Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp