1 fs setcachesize AFS Commands fs setcachesize
6 fs setcachesize -- set size of disk cache.
9 fs setcachesize [-blocks <size in 1K byte blocks>] [-reset]
12 ACCEPTABLE ABBREVIATIONS/ALIASES
14 fs setca [-b <size in 1K byte blocks>] [-r] [-h]
16 fs cachesize [-b <size in 1K byte blocks>] [-r] [-h]
20 On machines using a disk cache, changes the amount of local
21 disk space that the Cache Manager may use for its data
22 cache. Specify the number in kilobyte blocks. This command
23 is not operative on machines using memory caching.
25 To return the cache size to the default value specified in
26 /usr/vice/etc/cacheinfo on the client's local disk, specify
27 0 as the number of kilobyte blocks. The cacheinfo file is
28 human-readable and visible with the cat command. The third
29 and final field is the number of kilobyte blocks allocated
30 to the cache at reboot. The chapter in the AFS System
31 Administrator's Guide on client machine configuration
32 further describes the contents of cacheinfo.
34 To return the cache size to the value set when the machine
35 was last booted, use the -reset flag instead of the -blocks
36 argument. This is normally the amount specified in
37 cacheinfo, unless the -blocks argument was used on afsd to
38 override the cacheinfo value.
40 The fs getcacheparms command displays the current actual
41 cache size and the amount of space in use, both for disk and
46 This command is not operative on machines using memory
47 caching, and will result in an error message.
49 On machines using a disk cache, do not set the cache size to
50 exceed 90% of the actual disk space available for the cache
51 directory. The cache implementation itself requires a small
52 amount of room on the partition.
57 specifies the number of 1 kilobyte blocks the Cache
58 Manager may devote to the cache. Specifying a value
59 of "0" sets cache size to the default specified in
60 cacheinfo. This implies that the smallest possible
61 cache size is 1 kilobyte, not 0.
64 returns the cache size to the value set when the
68 machine was last booted. This agrees with the value
69 in cacheinfo unless the -blocks argument was used on
72 -help prints the online help entry for this command. Do not
73 provide any other arguments or flags with this one.
74 See section 3.1 in the Reference Manual for more
79 The following sets the disk cache size to 25000 kilobyte
84 Both of the following reset the disk cache size to the value
85 in cacheinfo, assuming that the -blocks argument on afsd was
88 % fs setcachesize 0 % fs setca -r
92 Issuer must be logged in as "root" in the UNIX file system
93 of the machine on which the command is being issued.