* Re: Tunefs the /news filesystem?
@ 1994-09-13 22:50 Ian Phillipps
1994-09-15 0:36 ` Rob Robertson
1994-09-15 0:42 ` R. David Murray
0 siblings, 2 replies; 14+ messages in thread
From: Ian Phillipps @ 1994-09-13 22:50 UTC (permalink / raw)
In article <352be5$mpc@kenya.isu.edu>,
A. Andrew Brennan <BRENNAN@HAL.HAHNEMANN.EDU> wrote:
> I'm still set with the defaults of reserving 10% of my filesystem to su
> use ... roughly 100Mb and I figure the note "up to a factor of three in
> throughput will be lost [by dropping minfree to 0%]" is serious enough
> that I don't want to do this lightly. Still, 100Mb could be used much
> better if weren't held out as a panic-comfort zone in a 1.05Gb drive.
> Anyone care to make recommendations? I am considering dropping minfree
> to 2 or 3% and setting the optimization preference to time (vs. the man
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 :-)
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.
> log files to a filesystem that is better tuned for size, this fiddling
> shouldn't cause me major headaches later, no? I've already slapped the
No, it should be possible to back out of it without too much trouble.
Any snarlups should remove themselves as the articles expire.
Ian
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
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
1994-09-16 18:28 ` Nick Sayer
1994-09-15 0:42 ` R. David Murray
1 sibling, 2 replies; 14+ messages in thread
From: Rob Robertson @ 1994-09-15 0:36 UTC (permalink / raw)
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.
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.
rob
--
william robertson
the people's usenet administrator
uc berkeley
rob@agate.berkeley.edu
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
1994-09-15 0:36 ` Rob Robertson
@ 1994-09-15 18:20 ` Chris Maltby
1994-09-16 20:29 ` Per Hedeland
1994-09-16 18:28 ` Nick Sayer
1 sibling, 1 reply; 14+ messages in thread
From: Chris Maltby @ 1994-09-15 18:20 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
1994-09-15 18:20 ` Chris Maltby
@ 1994-09-16 20:29 ` Per Hedeland
0 siblings, 0 replies; 14+ messages in thread
From: Per Hedeland @ 1994-09-16 20:29 UTC (permalink / raw)
In article <35a38j$rol@ftp.UU.NET> chris@suite.sw.oz.au (Chris Maltby) writes:
>In <3584uk$mkm@ftp.UU.NET> rob@agate.berkeley.edu (Rob Robertson) writes:
>>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.
Indeed - I also run at 5% minfree (on SunOS 4.1.3_U1), with most of the
95% used up (i.e. df typically reports 90-96%), and my spool changes
from TIME to SPACE and back just about every day. The paradoxical thing
is that it switches to SPACE when expire (fastrm actually) has run for a
while, and back to TIME during the day when it starts to fill up again -
i.e. exactly the opposite of what one would naively expect.
The reason is, of course, that the expiration increases fragmentation
drastically by causing lots of previously full blocks to be only
partially filled, while running with SPACE optim for a while thereafter
reduces fragmentation to an acceptable level again by filling up the
blocks.
I don't believe you ever get these spontaneous TIME/SPACE changes unless
you have minfree below 10%, though.
--Per Hedeland
per@erix.ericsson.se or
per%erix.ericsson.se@sunic.sunet.se or
...uunet!erix.ericsson.se!per
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
1994-09-15 0:36 ` Rob Robertson
1994-09-15 18:20 ` Chris Maltby
@ 1994-09-16 18:28 ` Nick Sayer
1994-09-17 6:18 ` Don Lewis
1994-09-20 0:03 ` Mario Klebsch
1 sibling, 2 replies; 14+ messages in thread
From: Nick Sayer @ 1994-09-16 18:28 UTC (permalink / raw)
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.
I've had /news at minfree 0 for ages now. I don't care how long it takes
to look up a stupid news article, for heaven's sake (even this one). :-)
--
Nick Sayer <nsayer@quack.kfu.com> | "Hey Guido... It's all so clear to me
N6QQQ @ N0ARY.#NOCAL.CA.USA.NOAM | now. I'm the keeper of the cheese,
+1 408 249 9630, log in as 'guest' | and you're the lemon merchant..."
URL: http://www.kfu.com/~nsayer/ | -- Ren
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
1994-09-16 18:28 ` Nick Sayer
@ 1994-09-17 6:18 ` Don Lewis
1994-09-20 0:03 ` Mario Klebsch
1 sibling, 0 replies; 14+ messages in thread
From: Don Lewis @ 1994-09-17 6:18 UTC (permalink / raw)
In article <35co3u$oc@ftp.UU.NET>, Nick Sayer <nsayer@quack.kfu.com> wrote:
>I've had /news at minfree 0 for ages now. I don't care how long it takes
>to look up a stupid news article, for heaven's sake (even this one). :-)
Well I don't care much about reading time either, but our news server
happens to be the machine sitting on my desk. I can definitely tell
the condition of the spool disk by the interactive responsiveness of
the machine. When a big uucp batch of news arrives and starts unpacking
and I can no longer see what I'm typing, I want it to get the unbatching
over with as soon as possible :-(
--
Don "Truck" Lewis Silicon Systems
Internet: gdonl@gv.ssi1.com 138 New Mohawk Road
Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
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
1 sibling, 2 replies; 14+ messages in thread
From: Mario Klebsch @ 1994-09-20 0:03 UTC (permalink / raw)
Hello!
nsayer@quack.kfu.com (Nick Sayer) writes:
>I've had /news at minfree 0 for ages now. I don't care how long it takes
>to look up a stupid news article, for heaven's sake (even this one). :-)
Agreed. But you need to store things like your active and your history
file on a different partition.
But sincs I don't care how long it takes to look up an article, why
doesn't the news software simply compress the articles after posting
and decompresses them when reading? As long as all news readers use
nntp, there should be no problems.
Mario
--
Mario Klebsch, DG1AM, mkl@rob.cs.tu-bs.de +49 531 / 391 - 7457
Institut fuer Robotik und Prozessinformatik der TU Braunschweig
Hamburger Strasse 267, 38114 Braunschweig, Germany
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
1994-09-20 0:03 ` Mario Klebsch
@ 1994-09-20 17:05 ` davidsen
1994-09-22 20:09 ` Tom Limoncelli
1 sibling, 0 replies; 14+ messages in thread
From: davidsen @ 1994-09-20 17:05 UTC (permalink / raw)
In article <35l8sf$49u@ftp.UU.NET>, Mario Klebsch <mkl@rob.cs.tu-bs.de> wrote:
>But sincs I don't care how long it takes to look up an article, why
>doesn't the news software simply compress the articles after posting
>and decompresses them when reading? As long as all news readers use
>nntp, there should be no problems.
I think most people do care very much how long it take to look up
an article. In fact, most site with >1 reader care. Would you really
want to wait 20-30sec for an article? Then you do care, the question
becomes "what tradeoff will you make?"
--
Speaking *from* but never *for* Prodigy
"Pain builds moral fiber" -my dad
"Pain hurts" -me
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
1994-09-20 0:03 ` Mario Klebsch
1994-09-20 17:05 ` davidsen
@ 1994-09-22 20:09 ` Tom Limoncelli
1 sibling, 0 replies; 14+ messages in thread
From: Tom Limoncelli @ 1994-09-22 20:09 UTC (permalink / raw)
In <35l8sf$49u@ftp.UU.NET> mkl@rob.cs.tu-bs.de (Mario Klebsch) writes:
>But sincs I don't care how long it takes to look up an article, why
>doesn't the news software simply compress the articles after posting
>and decompresses them when reading? As long as all news readers use
>nntp, there should be no problems.
It's even more simple than that! All programs read articles via the
same call in the INN source. Modify that one routine to check for a
.gz file if the article isn't found. Then, to do the compression just
do this every 6 hours:
cd /var/spool/news
gfind . -regex '.*/[0-9][0-9]*$' -mtime +1 -print | xargs gzip -9
This way you get (1) minimal code changes, (2) fast access to
recent news.
This is another opportunity for someone to become famous by writing
a minimal amount of code.
--tal
--
Tom Limoncelli -- tal@plts.org (home) -- tal@big.att.com (work)
Write to me for info about internet mailing lists on these topics:
Drew University Alumni/ae, IXO/tpage users, New Jersey Unix Sysadmins' Group
(like SAGE), New Jersey motss, North East motss, BiNet/New Jersey, and more!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
1994-09-13 22:50 Tunefs the /news filesystem? Ian Phillipps
1994-09-15 0:36 ` Rob Robertson
@ 1994-09-15 0:42 ` R. David Murray
1 sibling, 0 replies; 14+ messages in thread
From: R. David Murray @ 1994-09-15 0:42 UTC (permalink / raw)
ian@pipex.net (Ian Phillipps) writes:
>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.
I've seen console messages from OSF saying the optimization was being
switched from space to time and vice-versa, so it does do some sort of
on the fly optimization.
--David
^ permalink raw reply [flat|nested] 14+ messages in thread
* Tunefs the /news filesystem?
@ 1994-09-12 19:50 A. Andrew Brennan
1994-09-14 1:03 ` Ian Phillipps
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: A. Andrew Brennan @ 1994-09-12 19:50 UTC (permalink / raw)
I'm still set with the defaults of reserving 10% of my filesystem to su
use ... roughly 100Mb and I figure the note "up to a factor of three in
throughput will be lost [by dropping minfree to 0%]" is serious enough
that I don't want to do this lightly. Still, 100Mb could be used much
better if weren't held out as a panic-comfort zone in a 1.05Gb drive.
Anyone care to make recommendations? I am considering dropping minfree
to 2 or 3% and setting the optimization preference to time (vs. the man
recommended 'space') as fragmentation shouldn't be a serious problem on
a drive dedicated to USENET news articles. If I move the history* and
log files to a filesystem that is better tuned for size, this fiddling
shouldn't cause me major headaches later, no? I've already slapped the
'double the inodes' setting, but I haven't seen this type of stuff in
the FAQs yet ...
andrew. (brennan@hal.hahnemann.edu)
<a href=http://www.hahnemann.edu/misc/aab.html>too many home pages</a>
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Tunefs the /news filesystem?
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
2 siblings, 0 replies; 14+ messages in thread
From: Ian Phillipps @ 1994-09-14 1:03 UTC (permalink / raw)
In article <352be5$mpc@kenya.isu.edu>,
A. Andrew Brennan <BRENNAN@HAL.HAHNEMANN.EDU> wrote:
> I'm still set with the defaults of reserving 10% of my filesystem to su
> use ... roughly 100Mb and I figure the note "up to a factor of three in
> throughput will be lost [by dropping minfree to 0%]" is serious enough
> that I don't want to do this lightly. Still, 100Mb could be used much
> better if weren't held out as a panic-comfort zone in a 1.05Gb drive.
> Anyone care to make recommendations? I am considering dropping minfree
> to 2 or 3% and setting the optimization preference to time (vs. the man
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 :-)
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.
> log files to a filesystem that is better tuned for size, this fiddling
> shouldn't cause me major headaches later, no? I've already slapped the
No, it should be possible to back out of it without too much trouble.
Any snarlups should remove themselves as the articles expire.
Ian
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
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
2 siblings, 0 replies; 14+ messages in thread
From: Don Lewis @ 1994-09-15 0:38 UTC (permalink / raw)
In article <352be5$mpc@kenya.isu.edu>,
A. Andrew Brennan <BRENNAN@HAL.HAHNEMANN.EDU> wrote:
> I'm still set with the defaults of reserving 10% of my filesystem to su
> use ... roughly 100Mb and I figure the note "up to a factor of three in
> throughput will be lost [by dropping minfree to 0%]" is serious enough
> that I don't want to do this lightly. Still, 100Mb could be used much
> better if weren't held out as a panic-comfort zone in a 1.05Gb drive.
I've run with minfree set to 5% and I've noticed that the machine really
starts to drag when the spool is close to full. I'd believe the quote
about the throughput degradation.
> Anyone care to make recommendations? I am considering dropping minfree
> to 2 or 3% and setting the optimization preference to time (vs. the man
> recommended 'space') as fragmentation shouldn't be a serious problem on
> a drive dedicated to USENET news articles.
At one point I was really my news spool was really hurting for space, so
I dropped minfree to 0%, and I had the news software set to shut down at
5 MB free on a 300 MB partition. Things blew up when I ran out of free
blocks. I still had more that 5 MB free according to df (about 6.5 MB as
I recall), but it was all frags, so files bigger than a K or so couldn't
be created. Running clear full with minfree at 2 or 3% puts you in
the danger zone.
One thing that you may be able to do that is a real winner is to newfs
the spool partition with 4K blocks and 512 byte frags instead of 8K/1K.
This haves the amount of space wasted at the end of each file. If you
do this, it is best to have all the big files, like history and the
logs on another partition, otherwise accesses to these files will slow
down. Unfortunately, this is not adjustable by tunefs. The filesystem
has to be set up this way with newfs.
--
Don "Truck" Lewis Silicon Systems
Internet: gdonl@gv.ssi1.com 138 New Mohawk Road
Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tunefs the /news filesystem?
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
2 siblings, 0 replies; 14+ messages in thread
From: PE. Smee @ 1994-09-15 0:40 UTC (permalink / raw)
In article <352be5$mpc@kenya.isu.edu>,
A. Andrew Brennan <BRENNAN@HAL.HAHNEMANN.EDU> wrote:
> I'm still set with the defaults of reserving 10% of my filesystem to su
> use ... roughly 100Mb and I figure the note "up to a factor of three in
> throughput will be lost [by dropping minfree to 0%]" is serious enough
> that I don't want to do this lightly. Still, 100Mb could be used much
> better if weren't held out as a panic-comfort zone in a 1.05Gb drive.
We run the (nonstandard) 'dexpire' package to handle expires. It
expires things based on relative importance of the groups to you,
rather than absolute 'time the article has been here', and it expires
however much stuff is necessary to leave a specified amount of free
space on the disk.
With that bit of technology as background, I set up dexpire to try to
leave 100 Meg free (on a 1 Gig disk), and run it every 3 hours to keep
things that way. (It's fairly fast, since it doesn't update history.
We run normal expire with LOONG expire times once a day to catch that
up. We also disable dexpire, and use only expire, on some selected
groups like *.answers and news.newusers, since dexpire also doesn't
honor Expires headers - which probably also speeds it up.)
Since that's 10%, I tunefs'ed that filesystem, which is used ONLY by
news, to have a minfree of 0%. Works fine. We get (at least) 900 Meg
of articles, plus whatever percent of the notionally- free 100Meg has
been taken up by new articles arriving since the last dexpire run.
Prior to that, we were running about 750 Meg articles, 150 Meg 'useable
free space' (freed by expire - of course, highly variable depending on
what had been happening recently), and 100 Meg 'lost' (reserved)
space. Now, I've still got my 'performance' 10% free, but it's free in
a useful manner.
--
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
P.Smee@bristol.ac.uk - Tel +44 117 928 7865 - FAX +44 117 929 1576
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~1994-09-22 20:09 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox