logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fs_precache - Set precache size

Description

       The fsprecache command configures to what degree the Cache Manager will attempt to prefetch cache blocks
       when an application opens a file for reading.  If this behavior is enabled, whenever a file is opened for
       reading, the Cache Manager will immediately initiate an asynchronous fetch request for that file.  This
       fetch request will fetch the configured amount of data for that file, and store the data in the cache. In
       some scenarios, this can improve performance.

       Note that this prefetching behavior is done by the Cache Manager itself. The underlying Operating System
       may also perform its own prefetching behavior, depending on various settings or application hints.

       This command was introduced in OpenAFS 1.5.37.

Examples

       The following 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.

Name

       fs_precache - Set precache size

Options

-blocks <sizein1Kblocks>
           Specifies  how  much  data  to  prefetch  for each applicable file, in 1024-byte blocks. Specify 0 to
           disable prefetching behavior. By default, prefetching is disabled.

       -help
           Prints the online help for this command. All other valid options are ignored.

Output

       If the specified precache size has been set successfully, the following message will be printed:

          New precache size set.

Privilege Required

       The issuer must be logged in as the local superuser "root".

See Also

afsd(8)

Synopsis

fsprecache-blocks <sizein1Kblocks>
           [-help]

       fsp-b <sizein1Kblocks>
           [-h]

See Also