BSD 4_2 development
[unix-history] / usr / man / man8 / tunefs.8
CommitLineData
868d1828
C
1.TH TUNEFS 8 "20 February 1983"
2.UC 4
3.SH NAME
4tunefs \- tune up an existing file system
5.SH SYNOPSIS
6.B /etc/tunefs
7.I tuneup-options
8.IR special | filesys
9.SH DESCRIPTION
10.I Tunefs
11is designed to change the dynamic parameters of a file system
12which affect the layout policies.
13The parameters which are to be changed are indicated by the flags
14given below:
15.IP "\fB\-a\fP maxcontig"
16.br
17This specifies the maximum number of contiguous blocks that will
18be laid out before forcing a rotational delay (see \-d below).
19The default value is one, since most device drivers require
20an interrupt per disk transfer.
21Device drivers that can chain several buffers together in a single
22transfer should set this to the maximum chain length.
23.IP "\fB\-d\fP rotdelay"
24.br
25This specifies the expected time (in milliseconds)
26to service a transfer completion
27interrupt and initiate a new transfer on the same disk.
28It is used to decide how much rotational spacing to place between
29successive blocks in a file.
30.IP "\fB\-e\fP maxbpg"
31.br
32This indicates the maximum number of blocks any single file can
33allocate out of a cylinder group before it is forced to begin
34allocating blocks from another cylinder group.
35Typically this value is set to about one quarter of the total blocks
36in a cylinder group.
37The intent is to prevent any single file from using up all the
38blocks in a single cylinder group,
39thus degrading access times for all files subsequently allocated
40in that cylinder group.
41The effect of this limit is to cause big files to do long seeks
42more frequently than if they were allowed to allocate all the blocks
43in a cylinder group before seeking elsewhere.
44For file systems with exclusively large files,
45this parameter should be set higher.
46.IP "\fB\-m\fP minfree"
47.br
48This value specifies the percentage of space held back
49from normal users; the minimum free space threshold.
50The default value used is 10%.
51This value can be set to zero, however up to a factor of three
52in throughput will be lost over the performance obtained at a 10%
53threshold.
54Note that if the value is raised above the current usage level,
55users will be unable to allocate files until enough files have
56been deleted to get under the higher threshold.
57.SH "SEE ALSO"
58fs(5),
59newfs(8),
60mkfs(8)
61.PP
62McKusick, Joy, Leffler; "A Fast File System for Unix",
63Computer Systems Research Group, Dept of EECS, Berkeley, CA 94720;
64TR #7, September 1982.
65.SH BUGS
66This program should work on mounted and active file systems.
67Because the super-block is not kept in the buffer cache,
68the program will only take effect if it is run on dismounted file systems.
69(if run on the root file system, the system must be rebooted)
70.PP
71You can tune a file system, but you can't tune a fish.