NFS file-attribute cache tuning
NFS maintains a cache on each client system of the attributes of recently accessed directories and files.
You can set several parameters with the mount command to control the time that a specific entry is retained in the cache. The following parameters are set:
- actimeo
- Absolute time for which file and directory entries are kept in the file-attribute cache after an update. If specified, this value overrides the following *min and *max values, to set them to the actimeo value.
- acregmin
- Minimum time after an update that file entries are retained. The default is 30 seconds.
- acregmax
- Maximum time after an update that file entries are retained. The default is 60 seconds.
- acdirmin
- Minimum time after an update that directory entries are retained. The default is 30 seconds.
- acdirmax
- Maximum time after an update that directory entries are retained. The default is 60 seconds.
Each time the file or directory is updated, its removal is postponed for at least acregmin or acdirmin seconds. If this is the second or subsequent update, the entry is retained for at least the interval between the last two updates, but not more than acregmax or acdirmax seconds.