| 1 |
.\" Manpage for nfsrahead. |
| 2 |
.nh |
| 3 |
.ad l |
| 4 |
.TH man 5 "08 Mar 2022" "1.0" "nfsrahead man page" |
| 5 |
.SH NAME |
| 6 |
|
| 7 |
nfsrahead \- Configure the readahead for NFS mounts |
| 8 |
|
| 9 |
.SH SYNOPSIS |
| 10 |
|
| 11 |
nfsrahead [-F] [-d] <device> |
| 12 |
|
| 13 |
.SH DESCRIPTION |
| 14 |
|
| 15 |
\fInfsrahead\fR is a tool intended to be used with udev to set the \fIread_ahead_kb\fR parameter of NFS mounts, according to the configuration file (see \fICONFIGURATION\fR). \fIdevice\fR is the device number for the NFS backing device as provided by the kernel. |
| 16 |
|
| 17 |
.SH OPTIONS |
| 18 |
.TP |
| 19 |
.B -F |
| 20 |
Send messages to |
| 21 |
.I stderr |
| 22 |
instead of |
| 23 |
.I syslog |
| 24 |
|
| 25 |
.TP |
| 26 |
.B -d |
| 27 |
Increase the debugging level. |
| 28 |
|
| 29 |
.SH CONFIGURATION |
| 30 |
.I nfsrahead |
| 31 |
is configured in |
| 32 |
.IR /etc/nfs.conf , |
| 33 |
in the section titled |
| 34 |
.IR nfsrahead . |
| 35 |
It accepts the following configurations. |
| 36 |
|
| 37 |
.TP |
| 38 |
.B nfs=<value> |
| 39 |
The readahead value applied to NFSv3 mounts. |
| 40 |
|
| 41 |
.TP |
| 42 |
.B nfs4=<value> |
| 43 |
The readahead value applied to NFSv4 mounts. |
| 44 |
|
| 45 |
.TP |
| 46 |
.B default=<value> |
| 47 |
The default configuration when none of the configurations above is set. |
| 48 |
|
| 49 |
.SH EXAMPLE CONFIGURATION |
| 50 |
[nfsrahead] |
| 51 |
.br |
| 52 |
nfs=15000 # readahead of 15000 for NFSv3 mounts |
| 53 |
.br |
| 54 |
nfs4=16000 # readahead of 16000 for NFSv4 mounts |
| 55 |
.br |
| 56 |
default=128 # default is 128 |
| 57 |
|
| 58 |
.SH SEE ALSO |
| 59 |
|
| 60 |
.BR mount.nfs (8), |
| 61 |
.BR nfs (5), |
| 62 |
.BR nfs.conf (5), |
| 63 |
.BR udev (7), |
| 64 |
.BR bcc-readahead (8) |
| 65 |
|
| 66 |
.SH BUGS |
| 67 |
|
| 68 |
No known bugs. |
| 69 |
|
| 70 |
.SH AUTHOR |
| 71 |
|
| 72 |
Thiago Rafael Becker <[email protected]> |