Use defaults that are more reasonable for modern disks, and document the `-n'

option.
This commit is contained in:
mycroft 1994-12-01 18:46:37 +00:00
parent 5e26e46bb4
commit 4c78b5e610
2 changed files with 14 additions and 9 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)newfs.8 8.3 (Berkeley) 3/27/94
.\" $Id: newfs.8,v 1.9 1994/07/16 05:18:11 jtc Exp $
.\" $Id: newfs.8,v 1.10 1994/12/01 18:46:37 mycroft Exp $
.\"
.Dd March 27, 1994
.Dt NEWFS 8
@ -53,6 +53,7 @@
.Op Fl k Ar skew
.Op Fl l Ar interleave
.Op Fl m Ar free space
.Op Fl n Ar nrpos
.Op Fl o Ar optimization
.Op Fl p Ar sectors
.Op Fl r Ar revolutions
@ -129,7 +130,7 @@ This specifies the maximum number of contiguous blocks that will be
laid out before forcing a rotational delay (see the
.Fl d
option).
The default value is one.
The default value is 8.
See
.Xr tunefs 8
for more details on how to set this option.
@ -141,7 +142,7 @@ The default value is 16.
.It Fl d Ar rotdelay
This specifies the expected time (in milliseconds) to service a transfer
completion interrupt and initiate a new transfer on the same disk.
The default is 4 milliseconds.
The default is 0 milliseconds.
See
.Xr tunefs 8
for more details on how to set this option.
@ -167,6 +168,8 @@ The default value used is 10%.
See
.Xr tunefs 8
for more details on how to set this option.
.It Fl n Ar number of rotational positions
The number of distinct rotational positions. The default is 1.
.It Fl o Ar optimization\ preference
.Pq ``space'' or ``time''
The file system can either be instructed to try to minimize the time spent

View File

@ -39,7 +39,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)newfs.c 8.8 (Berkeley) 4/18/94";*/
static char *rcsid = "$Id: newfs.c,v 1.12 1994/09/23 23:51:31 mycroft Exp $";
static char *rcsid = "$Id: newfs.c,v 1.13 1994/12/01 18:46:38 mycroft Exp $";
#endif /* not lint */
/*
@ -108,9 +108,9 @@ void fatal();
* ROTDELAY gives the minimum number of milliseconds to initiate
* another disk transfer on the same cylinder. It is used in
* determining the rotationally optimal layout for disk blocks
* within a file; the default of fs_rotdelay is 4ms.
* within a file; the default of fs_rotdelay is 0ms.
*/
#define ROTDELAY 4
#define ROTDELAY 0
/*
* MAXBLKPG determines the maximum number of data blocks which are
@ -131,9 +131,11 @@ void fatal();
* rotational positions, so that we can lay out the data to be picked
* up with minimum rotational latency. NRPOS is the default number of
* rotational positions that we distinguish. With NRPOS of 8 the resolution
* of our summary information is 2ms for a typical 3600 rpm drive.
* of our summary information is 2ms for a typical 3600 rpm drive. Caching
* and zoning pretty much defeats rotational optimization, so we now use a
* default of 1.
*/
#define NRPOS 8 /* number distinct rotational positions */
#define NRPOS 1 /* number distinct rotational positions */
int mfs; /* run as the memory based filesystem */
@ -162,7 +164,7 @@ int cpgflg; /* cylinders/cylinder group flag was given */
int minfree = MINFREE; /* free space threshold */
int opt = DEFAULTOPT; /* optimization preference (space or time) */
int density; /* number of bytes per inode */
int maxcontig = 0; /* max contiguous blocks to allocate */
int maxcontig = 8; /* max contiguous blocks to allocate */
int rotdelay = ROTDELAY; /* rotational delay between blocks */
int maxbpg; /* maximum blocks per file in a cyl group */
int nrpos = NRPOS; /* # of distinguished rotational positions */