setcache

Changes cache settings

APPLICABILITY


Product

Command Type

ClearCase


cleartool subcommand


ClearCase LT


cleartool subcommand


Attache


command


Platform

UNIX


Windows

SYNOPSIS

setcache -vie·w { -def·ault | -cac·hesize size } { -cvi·ew | view-tag }
setcache -vie·w -hos·t { -def·ault | -cac·hesize size }
setcache -vie·w -sit·e { -def·ault | -cac·hesize size }

[ -pas·sword registry-password ]
setcache -mvfs { -reg·dnc cnt | -noe·ntdnc cnt | -dir·dnc cnt

| -vob·free cnt | -cvp·free cnt | -rpc·handles cnt } ...

DESCRIPTION

The setcache command sets 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.

ClearCase and Attache-View Caches

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:

NOTE: If your view uses the host value or the site-wide value and that value is changed, your view's cache size does not change until you invoke setcache -view -default or restart the view_server (with endview -server or a reboot).

The dynamic view cache size is allocated among the individual caches. When specifying a cache size, keep the following guidelines in mind:

ClearCase and Attache Dynamic Views-MVFS Caches

A host's MVFS caches are used to optimize file-system performance:

Values set with setcache -mvfs are reset when you reboot your machine. To change the values permanently, see the Administrator's Guide.

For more information on optimizing performance, see the chapters on performance tuning in the Administrator's Guide.

RESTRICTIONS

Identities:

Locks: No locks apply.

Mastership: (Replicated VOBs) No mastership restrictions.

OPTIONS AND ARGUMENTS

SPECIFYING THE CACHE INFORMATION TO CHANGE.   Default: None.

-vie·w

Sets the cache size for a single view. This immediately changes the cache size; you do not need to kill and restart the view_server.
-vie·w -hos·t

Sets the default cache size for the current host.
-vie·w -sit·e

Sets the site-wide default size for view caches.
-mvfs

Temporarily sets cache sizes for the MVFS. These values are reset when you reboot your machine.

SETTING THE CACHE SIZE.   Default: None.

-def·ault

With -view: removes the -cache line from the .view file. This immediately sets the size of the view cache to (in priority order) the host size, the site-wide size, or the default size, as described in the DESCRIPTION section.
With -view -host: deletes the /var/adm/atria/config/view_cache_size (UNIX) 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.
-cac·hesize size

Specifies a size for the view_server cache. size must be an integer value of bytes, optionally followed by the letter k to specify kilobytes or m to specify megabytes; for example, 800k or 3m.

SPECIFYING THE VIEW. Default: None.

-cvi·ew

Sets the cache size for the current view.
view-tag

Specifies the view for which the cache size is changed.

SPECIFYING THE REGISTRY PASSWORD.  Default: When you set the site-wide view cache size with -view -site, setcache prompts you for the registry password.

-pas·sword registry-password

Specifies the site-wide registry password.

SPECIFYING MVFS PARAMETERS (NOT APPLICABLE TO SNAPSHOT VIEWS). Default: None. You must specify at least one option. cnt must be an integer value; see the Administrator's Guide for information on default and suggested values and instructions on setting the values permanently.

-reg·dnc cnt

Sets the number of regular file DNC entries.
-noe·ntdnc cnt

Sets the number of ENOENT (file not found) DNC entries.
-dir·dnc cnt

Sets the number of directory DNC entries.
-vob·free cnt

Sets the number of entries in the attribute cache.
-cvp·free cnt

Sets the number of entries in the cleartext cache.
-rpc·handles cnt

Sets the number of RPC handles cached by the MVFS.

EXAMPLES

The UNIX 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 shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.

SEE ALSO

getcache, mvfscache, setsite, Administrator's Guide