man(5)

πŸ’… man(5) β€” the nfsrahead glow-up, bestie edition πŸ¦‹

okay so this is a page from the man manual set, and the star of the show is nfsrahead. sit down, hydrate, and let's get into it ✨


🌸 NAME 🌸

nfsrahead β€” configure the readahead for NFS mounts πŸ’–


✨ SYNOPSIS ✨

nfsrahead [-F] [-d] <device>

πŸŽ€ DESCRIPTION πŸŽ€

so nfsrahead is a tool that's literally designed to be used with udev, and its whole job is setting the read_ahead_kb parameter of NFS mounts, and it does that based on the configuration file (scroll down to CONFIGURATION, bestie, it's right there).

and <device>? that's the device number for the NFS backing device, as provided by the kernel. no cap. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -F β€” sends messages to stderr instead of syslog. it's giving "i want my messages right here, right now" πŸ™ˆ
  • -d β€” increases the debugging level. turn it up, bestie, we're investigating πŸ”

🌈 CONFIGURATION 🌈

nfsrahead gets configured in /etc/nfs.conf, inside the section titled nfsrahead. and it accepts the following configs, periodt:

  • nfs=<value> β€” the readahead value that gets applied to NFSv3 mounts πŸ“
  • nfs4=<value> β€” the readahead value that gets applied to NFSv4 mounts 🧚
  • default=<value> β€” the default configuration for when none of the configurations above is set. the fallback queen πŸ‘‘

⭐ EXAMPLE CONFIGURATION ⭐

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

look at that. immaculate. no notes. πŸ’―


πŸ‘€ SEE ALSO πŸ‘€

mount.nfs(8), nfs(5), nfs.conf(5), udev(7), bcc-readahead(8)

go read those too, bestie, we love a well-rounded education πŸ“š


πŸ’€ BUGS πŸ’€

no known bugs. she's flawless. not a single crumb. πŸ’…βœ¨


🫢 AUTHOR 🫢

Thiago Rafael Becker <trbecker@gmail.com> β€” thank you for your service, king πŸ‘‘


ngl, if you made it this far you're lowkey an NFS main character now. iconic behavior. πŸ”₯

version 1.0, dated 08 Mar 2022, and yeah it's filed under man(5) β€” love that for us. mwah. bye bestie! πŸ˜­πŸ’œ

πŸ“¦ where this page comes from