FS_PRECACHE(1)
β¨ FS_PRECACHE(1) β the AFS Command Reference glow-up β¨
okay bestie, so this is fs_precache from the AFS Command Reference, and it's genuinely one of those little commands that just... quietly makes things better. no cap. let's get into it π
πΈ NAME πΈ
fs_precache β sets the precache size, periodt.
π SYNOPSIS π
fs precache -blocks <size in 1K blocks>
[-help]
fs p -b <size in 1K blocks>
[-h]
π¦ DESCRIPTION π¦
so here's the vibe: fs precache tells the Cache Manager how hard it should try to prefetch cache blocks when some app opens a file for reading. π«Ά
if you turn this behavior on, then the moment a file gets opened for reading, the Cache Manager immediately kicks off an asynchronous fetch request for that file. that fetch grabs the amount of data you configured and stashes it in the cache. in some scenarios this can improve performance β it's giving β¨ main character optimization energy β¨.
lowkey important note: this prefetching is done by the Cache Manager itself. the underlying Operating System may also be out here doing its own prefetching behavior, depending on various settings or application hints. so like, two different girlies can be prefetching at the same time, iykyk.
this command was introduced in OpenAFS 1.5.37. throwback era π°οΈ
π OPTIONS π
-blocks <size in 1K blocks>β specifies how much data to prefetch for each applicable file, measured in 1024-byte blocks. specify0to disable prefetching behavior. by default, prefetching is disabled. (so yeah, the default is off, bestie β you gotta opt in π )-helpβ prints the online help for this command. all other valid options are ignored. she said "I'm the main character now" π
π OUTPUT π
if the precache size you specified got set successfully, you'll see this message print out:
New precache size set.
slay. that's the whole notification. β¨
π EXAMPLES π
this command configures the Cache Manager to prefetch the first 100 kilobytes of any file that's opened for reading:
% fs precache -blocks 100
New precache size set.
look at her go π
π PRIVILEGE REQUIRED π
the issuer must be logged in as the local superuser root. no random account energy here β you need the big one. π₯
π§ SEE ALSO π§
π COPYRIGHT π
Copyright 2013 Sine Nomine Associates
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Andrew Deason for OpenAFS.
fr fr, that's the whole page. nothing skipped, nothing invented, all facts intact. π
and that's a wrap! this page is from OpenAFS, dated 2026-07-27 β go forth and precache responsibly, bestie π¦π
π¦ where this page comes from
- ubuntu stonking: openafs-client 1.8.16.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms