| –cvp/freemax cnt | –rpc/handles cnt | –vobfreemin cnt
| –cvpfreemin cnt | –mnmax cnt
| { –cto | –ncto } | { –aca/che | –nac/ache }
| { –dnc/ache | –ndnc/ache }
{ –rlc/ache | –nrlc/ache } | { –rvc/ache | –nrvc/ache } } ...
The setcache command sets MVFS and view cache sizes. Although both dynamic and snapshot views use caches, cache size is more significant for a dynamic view than for a snapshot view.
The dynamic view caches consist mostly of data retrieved from the VOB and enable the view_server to respond faster to RPCs from client machines. When a view_server process is started, it chooses its cache size from the first of the following sources to yield a value:
The dynamic view cache size is allocated among the individual caches. When specifying a cache size, keep the following guidelines in mind:
A host's MVFS caches are used to optimize file system performance:
cleartool: Error: Unable to set some current MVFS parameters
to requested values because caches are in active use.
Ask users to stop using ClearCase actively (that is, keep their view contexts, but stop manipulating files) and enter the setcache command again.
For more information about using setcache, see the discussion of client performance tuning in the IBM Rational ClearCase Administrator's Guide.
With –view –host, deletes the /var/adm/rational/clearcase/config/view_cache_size (UNIX and Linux) or ccase-home-dir\var\config\view_cache_size (Windows) file.
With –view –site, removes the value for the site-wide cache from the registry.
When used with setcache –mvfs, –default must be used with the –persistent or –persistent_only option, and restores MVFS cache values to installed defaults. (See Description.) Setting certain values that force changes in other values may cause setcache to print a message explaining that the new values will not take effect until you restart the MVFS.
In all other cases, this option specifies that all options are applied immediately and also set persistently. If you do not specify –persistent, options revert to their former values when the MVFS is restarted.
The UNIX system and Linux examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.
cmd-context setcache –view –cachesize 800k smg_test
The new view server cache limits are:
Lookup cache: 78624 bytes
Readdir cache: 327680 bytes
File stats cache: 137592 bytes
Object cache: 275184 bytes
Total cache size: 819200 bytes
cmd-context setcache –view –site –cachesize 2m
Registry password: <enter registry password><ENTER>
...