getcache

Displays cache information

APPLICABILITY


Product

Command Type

ClearCase


cleartool subcommand


ClearCase LT


cleartool subcommand


Attache


command


Platform

UNIX


Windows

SYNOPSIS

getcache -vie·w [ -a·ll | -s·hort ] [ -reset ] { -cvi·ew | view-tag }
getcache -vie·w -hos·t
getcache -vie·w -sit·e
getcache -mvfs [ -s·hort ] [ -reset ]

DESCRIPTION

The getcache command displays cache information for a view. In ClearCase dynamic views and and Attache, you can also use getcache to get information on the multiversion file system (MVFS). View cache information includes cumulative statistics about the number of operations performed and the size of each of the view's caches. (You can specify the total size for the view's caches with the setcache command; that total is allocated among the individual caches.) getcache can also reset the view or MVFS statistics with the -reset option.

NOTE: Two sets of statistics are kept for a view: the set displayed by -all, which is reset only when the view_server is restarted (with endview -server or by rebooting); and the normal set, which you can zero with the -reset option.

With the -host option, getcache displays the default size of the view cache for the current host. With the -site option, getcache displays the site-wide default size for view caches. With the -mvfs option, getcache displays information about a host's MVFS caches, which are used to optimize file-system performance. (For more information on optimizing performance, see the chapters on performance tuning in the Administrator's Guide.)

getcache can sometimes reports cache use greater than 100%. The Object cache, in particular, can show usage exceeding 100% because other objects, including cache objects, can reference the Object cache. Usually, this means the Object cache size is too small compared to the sizes of other caches.

RESTRICTIONS

getcache -mvfs -reset requires root privileges on UNIX and local administrator privileges on Windows. No other restricitons apply

OPTIONS AND ARGUMENTS

SPECIFYING THE CACHE INFORMATION TO DISPLAY.   Default: None.

-vie·w

Displays cache information for a single view.
-vie·w -hos·t

Displays the default cache size for the current host. If this value has not been set, getcache displays the following message:
No host-wide default view cache size is known.
This value is stored in the view_cache_size file (in /var/adm/atria/config/ (UNIX) or ccase-home-dir\var\config\ (Windows)) and is set with setcache -view -host.
-vie·w -sit·e

Displays the site-wide default size for view caches. If this value has not been set, getcache displays the following message:
No site-wide default view cache size is known.
This value is stored in the ClearCase or ClearCase LT site config registries and is set with setcache -view -site or setsite.
-mvfs

Displays cache information for the MVFS. These values are set with setcache -mvfs.

SPECIFYING HOW MUCH INFORMATION TO DISPLAY.  Default: With -view, displays statistics gathered since the last reset and the current cache sizes. With -mvfs, displays current cache sizes/utilizations and advice on cache sizing.

-a·ll

Displays view statistics since the time that the view_server was started. These statistics are not reset when you execute getcache -reset.
-view -s·hort

Displays only cache sizes.
-mvfs -s·hort

Displays only cache sizes and utilizations.

RESETTING VIEW STATISTICS. Default: The counters for the normal set of view statistics keep running.

-reset

With the -view option, displays current statistics, resets them to zero, and prints a summary to the view log. With the -mvfs option, displays current statistics, then resets them to zero.

SPECIFYING A VIEW.  Default: None.

-cvi·ew

Displays or resets statistics for the current view.
view-tag

Specifies the view whose statistics are displayed or reset.

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

mkview, mvfscache, setcache, setsite, Administrator's Guide