* Q: disk minfree & tunefs
@ 1996-12-13 5:00 Peyton Bland
1996-12-16 5:00 ` Peyton Bland
0 siblings, 1 reply; 2+ messages in thread
From: Peyton Bland @ 1996-12-13 5:00 UTC (permalink / raw)
We just installed a 9Gb disk on our Alpha running DUX 3.2. As stated in
the tunefs command page, by default, 10% of a disk is unavailable to
ordinary mortals. Not a problem on older, smaller disks, but on this disk,
this accounts for a lot of space! The tunefs man page has the scary
warning that reducing minfree (the -m option) to 0% can triple access
times. I don't want to make it 0% - maybe more like 2%. Any comments or
experience on this? Also, what about the -o option? What are the legal
values ("time" or "space" as shown on the newfs man page?) and how does
this interact (if at all) with minfree?
Thanks,
Peyton
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Peyton Bland Digital Image Processing
Lab
Dept. of Radiology, Univ. of Michigan
http://www.med.umich.edu/dipl/
"We all have better moments than anybody ever knows, and so do all the
others. We are a great mystery. Each one of us is a secret, and on that
basis we ought to treat each other with the deepest respect." --
Garrison Keillor
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Q: disk minfree & tunefs
1996-12-13 5:00 Q: disk minfree & tunefs Peyton Bland
@ 1996-12-16 5:00 ` Peyton Bland
0 siblings, 0 replies; 2+ messages in thread
From: Peyton Bland @ 1996-12-16 5:00 UTC (permalink / raw)
Alan Rollow was kind enough to e-mail the following info to me which is
posted here with his permission.
Peyton
---------------------- begin mail msg ----------------------
Date: Sun, 15 Dec 1996 23:03:57 -0700
From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for
Wayward Inodes.)
To: bland@umich.edu
Subject: Re: Q: disk minfree & tunefs
Newsgroups: comp.sys.dec
Organization: Digital Equipment Corp., Colorado Springs, CO.
>I don't want to make it 0% - maybe more like 2%. Any comments or
>experience on this?
For a disk that large 1-2% is probably safe. The space allocation
algorithms depend on being able to find free space quickly. Other-
wise it can a relatively long time to find free space (it uses a
linear search as the last reort when searching) which in turn
affects read access time. With more free space available to chose
from it is fairly easy to find space.
>Also, what about the -o option? What are the legal
>values ("time" or "space" as shown on the newfs man page?)
"time" and "space" are the only values. It determines how small amounts
of space get allocated. For files less than the file system block size
or the ends of files until all the direct blocks are used (96 KB), the
file system has two choices; only allocate a fragment at the beginning
of a block or allocate any fragment that is the right size.
When you allocate a fragment of the right size no matter where, you'll
get better space usage since it allows fragments to do the job they
were intended. The problem is that when one of these fragments grows
and there isn't space at the end of the fragment, or it grows into
a whole block, it may have to copied somewhere. You get better
space usage at the cost of time.
When you chose the other all fragments are aligned at the beginning
of a block so that when it grows it uses the space there and doesn't
have to copy the block; time saved for space wasted.
>and how does this interact (if at all) with minfree?
Good question, since it does. Given the right conditions, the file
system code will switch from one to the other. I've never quite
figured out the conditions and it seems to switch very easily. I
think part of the problem is that the switch was designed around
the time that people might have actually used minfree files *larger*
than 10%. Since modern disks can use smaller values, the switch
over is very easy to trigger and nearly worthless if you want it
to stay in (what the file system thinks is) the "wrong" mode.
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-12-16 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-13 5:00 Q: disk minfree & tunefs Peyton Bland
1996-12-16 5:00 ` Peyton Bland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox