From: chris@suite.sw.oz.au (Chris Maltby)
Subject: Re: Tunefs the /news filesystem?
Date: 15 Sep 1994 14:20:03 -0400 [thread overview]
Message-ID: <35a38j$rol@ftp.UU.NET> (raw)
In-Reply-To: 3584uk$mkm@ftp.UU.NET
In <3584uk$mkm@ftp.UU.NET> rob@agate.berkeley.edu (Rob Robertson) writes:
>In article <355aci$be@kenya.isu.edu> ian@pipex.net (Ian Phillipps) writes:
>
> Increasing space by 8% will win you around two months at the rate Usenet
> is expanding. It's probably not worth it, but try it and see, and let us
> know what happens. The rest of us would probably prefer this experiment
> to be done on someone else's file system :-)
>i've done it with my 4 gig striped partition, and am not seeing any
>ill affects. i've set it to 5% tho.
Well, you won't see any impact on performance until your disk starts to get
full. The 10% reservation default is tuned (or was tuned) to suit a
combination of CPU and disk performance for VAX11/780s. The extent of the
non-linear performance problem depends on how fast you can find the best
next block for a file - when there aren't many easy choices left, it rapidly
gets much harder to find the "best" spot. Some of this is related to the
disk geometry stuff, so fiddling with sector/track numbers may help.
The fragmentation algorithm can cause slowdowns on very full disks too.
In any case, I have happily used minfree of 5% (and less) on a news partition.
Given the size of the average news article, it makes some more sense to
use a 4K block sizes, so you can have 512 byte fragments.
> As for optimization - Sun 4.1 automatically sets space/time on the fly
> depending on how full the disk is. If OSF1 does the same, you won't get
> anything from setting it by hand.
>it only changes it from time to space if you cross into your minfree
>space.
Actually, it changes when the number of free fragments gets to be too large
a proportion of your free space. This is so that you don't hit the problem
where there are no free whole blocks, just assorted fragments - with a
resulting allocation failure. You can eliminate the space/time tradeoff
entirely by setting fragsize==blocksize, or reduce it with (say) fragsize=512,
blocksize=1024. If your ffs has a fixed maxcontig test, you can recover some
of the sequential performance you lose this way by boosting maxcontig.
When time optimisation is on, the best placed block will be assigned - even
for a possible fragment. When space is on, a suitable fragment will be
found instead, which preserves the (presumably) dwindling pool of free blocks.
Perhaps a better solution might be to use a file system type better suited
to the create, write sequential once, read sequential infrequent, delete
pattern of news files. ProLogic have a compressing filesystem they call
dtfs which has this property as well and would make a much bigger impact
than any minfree setting. Also, it has dynamic allocated inodes, to eliminate
the other bane of the news administrators life.
--
Chris Maltby - Softway Pty Ltd Internet: chris@softway.sw.oz.au
PHONE: +61-2-698-2322 "What I don't want is for C to look like C++ with the
FAX: +61-2-699-9174 functionality out and the syntax left behind" - Pike.
next prev parent reply other threads:[~1994-09-15 18:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-09-13 22:50 Tunefs the /news filesystem? Ian Phillipps
1994-09-15 0:36 ` Rob Robertson
1994-09-15 18:20 ` Chris Maltby [this message]
1994-09-16 20:29 ` Per Hedeland
1994-09-16 18:28 ` Nick Sayer
1994-09-17 6:18 ` Don Lewis
1994-09-20 0:03 ` Mario Klebsch
1994-09-20 17:05 ` davidsen
1994-09-22 20:09 ` Tom Limoncelli
1994-09-15 0:42 ` R. David Murray
-- strict thread matches above, loose matches on Subject: below --
1994-09-12 19:50 A. Andrew Brennan
1994-09-14 1:03 ` Ian Phillipps
1994-09-15 0:38 ` Don Lewis
1994-09-15 0:40 ` PE. Smee
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox