man(5) nfsrahead man page man(5)

# [NAME](#NAME)

nfsrahead - Configure the readahead for NFS mounts

# [SYNOPSIS](#SYNOPSIS)

nfsrahead \[-F] \[-d] &lt;device&gt;

# [DESCRIPTION](#DESCRIPTION)

*nfsrahead* is a tool intended to be used with udev to set the *read\_ahead\_kb* parameter of NFS mounts, according to the configuration file (see *CONFIGURATION*). *device* is the device number for the NFS backing device as provided by the kernel.

# [OPTIONS](#OPTIONS)

[**-F**](#F)

Send messages to *stderr* instead of *syslog*

[**-d**](#d)

Increase the debugging level.

# [CONFIGURATION](#CONFIGURATION)

*nfsrahead* is configured in */etc/nfs.conf*, in the section titled *nfsrahead*. It accepts the following configurations.

[**nfs=&lt;value&gt;**](#nfs=_value_)

The readahead value applied to NFSv3 mounts.

[**nfs4=&lt;value&gt;**](#nfs4=_value_)

The readahead value applied to NFSv4 mounts.

[**default=&lt;value&gt;**](#default=_value_)

The default configuration when none of the configurations above is set.

# [EXAMPLE CONFIGURATION](#EXAMPLE_CONFIGURATION)

\[nfsrahead]  
nfs=15000 # readahead of 15000 for NFSv3 mounts  
nfs4=16000 # readahead of 16000 for NFSv4 mounts  
default=128 # default is 128

# [SEE ALSO](#SEE_ALSO)

[**mount.nfs**(8)](/man/os/nfs-utils/mount.nfs.8), [**nfs**(5)](/man/os/nfs-utils/nfs.5), [**nfs.conf**(5)](/man/os/nfs-utils/nfs.conf.5), [**udev**(7)](/man/os/nfs-utils/udev.7), [**bcc-readahead**(8)](/man/os/nfs-utils/bcc-readahead.8)

# [BUGS](#BUGS)

No known bugs.

# [AUTHOR](#AUTHOR)

Thiago Rafael Becker &lt;trbecker@gmail.com&gt;

08 Mar 2022 1.0

---

Document: nfsrahead(5) from nfs-utils 3.1.1-r0 (Chainguard OS)
Source: git://git.linux-nfs.org/projects/steved/nfs-utils.git
