Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

SystemConfiguration Cache/Buffer Statistics

SystemConfiguration() returns nine values referenced with the following constants used as subscripts in the output array of LONG values an application can use to capture system-wide cache and buffer statistics, (cache pages hold data record images and buffers hold index nodes), allowing an application to track the use of these resources.

SystemConfiguration Return Value

Description

cfgCACHE_PAGES

Available cache pages

cfgCACHE_PAGES_INUSE

Cache pages in use

cfgCACHE_PAGES_MXUSE

Maximum cache pages used

cfgCACHE_PAGES_DED

Available dedicated cache pages

cfgCACHE_PAGES_DEDINUSE

Dedicated cache pages in use

cfgCACHE_PAGES_DEDMXUSE

Maximum dedicated cache pages used

cfgBUFFER_PAGES

Available index buffers

cfgBUFFER_PAGES_INUSE

Index buffers in use

cfgBUFFER_PAGES_MXUSE

Maximum index buffers used

Note: The dedicated cache pages are a subset of the regular cache pages.

See the following example for the use of this feature.

SystemConfiguration() Example

LONG ctcfg[ctCFGLMT];


SystemConfiguration(ctcfg);

printf("\nAvailable Dedicated Cache Pages - %ld",

ctcfg[cfgCACHE_PAGES_DED]);

TOCIndex