CACHE_INFO
Returns information about a cache.
typedef struct {
nuint32 maxByteCount ;
nuint32 minNumOfCacheBuffers ;
nuint32 minCacheReportThreshold ;
nuint32 allocWaitingCount ;
nuint32 numDirtyBlocks ;
nuint32 cacheDirtyWaitTime ;
nuint32 cacheMaxConcurrentWrites ;
nuint32 maxDirtyTime ;
nuint32 numOfDirCacheBuffers ;
nuint32 cacheByteToBlockShiftFactor ;
} CACHE_INFO;
uses calwin32
CACHE_INFO = packed Record
maxByteCount : nuint32;
minNumOfCacheBuffers : nuint32;
minCacheReportThreshold : nuint32;
allocWaitingCount : nuint32;
numDirtyBlocks : nuint32;
cacheDirtyWaitTime : nuint32;
cacheMaxConcurrentWrites : nuint32;
maxDirtyTime : nuint32;
numOfDirCacheBuffers : nuint32;
cacheByteToBlockShiftFactor : nuint32
End;
The minNumOfCacheBuffers, minCacheReportThreshold, cacheDirtyWaitTime, and cacheMaxConcurrentWrites fields can be set by using the SET console command.
When the number of cache buffers reach a number equal to the sum of the numbers specified by the minNumOfCacheBuffers and minCacheReportThreshold fields, the server sends a message warning that the cache buffers are getting low.
The block size (in bytes) is calculated using:
block size = 2 n+9
where n is the shift factor.