%SYS
Buffer Class Reference

This class represents detailed system metrics captured for global buffering. More...

Inheritance diagram for Buffer:
Collaboration diagram for Buffer:

Static Public Member Functions

SYS.Stats.Buffer Sample (_.Library.Integer Size)
 Instantiate the class for a particular size and fill in current values for all properties. More...
 

Public Attributes

 Avail
 The current number of available buffers (interactive) More...
 
 BatchQ
 The offset to the start of the LRU queue. More...
 
 Interact
 The current number of buffers in interactive portion of LRU queue. More...
 
 MaxInteract
 The max number of buffers in interactive portion of LRU queue. More...
 
 Min
 The threshold for no updaters to enter global module (interactive) More...
 
 MinB
 The threshold for no updaters to enter global module (batch) More...
 
 MinReQ
 The threshold for re-queueing a buffer (interactive) More...
 
 MinReQB
 The threshold for re-queueing a buffer (batch) More...
 
 NumSize
 The number of buffers of this size. More...
 
 OffLRUCnt
 The number of buffers removed from LRU queue. More...
 
 ReQCnt
 The number of buffers requeued in the interactive LRU queue. More...
 
 ReQCntB
 The number of buffers requeued in the batch LRU queue. More...
 
 Size
 The buffer size for this queue, e.g. More...
 
 WrtMax
 The threshold for waking write demon (interactive) More...
 
 WrtQSz
 The current number of interactive buffers queued to be written. More...
 
 WrtSz
 The Number of buffers in current write cycle. More...
 

Detailed Description

This class represents detailed system metrics captured for global buffering.

Each instance of the class represents a different buffer size, e.g. 2k, 8k, etc.

The current values for each class instance may be fetched using the Query 'Sample', and then the current value of each property can be accessed.

For example:

s prop="Size,NumSize,BatchQ,Interact,MaxInteract,MinReQ,MinReQB,ReQCnt,ReQCntB,WrtQSz,OffLRUCnt,WrtSz,WrtMax,Avail,Min,MinB" ; list of properties s rset=##class(ResultSet).New("SYS.Stats.Buffer:Sample") d rset.Execute() s len=$l(prop,",") ; list all resources and related seize counts while rset.Next() { f i=1:1:len w rset.Data($p(prop,",",i)) w:i<len "," w ! }


Global buffer metrics with instances for different buffer sizes, 2k, 8k etc.

Member Function Documentation

◆ Sample()

SYS.Stats.Buffer Sample ( _.Library.Integer  Size)
static

Instantiate the class for a particular size and fill in current values for all properties.

'Size' should be one of 8192, 16384, 32768, 65536 If there are no buffers of the requested size, then NumSize will be zero.

Allows for XML output of a single Buffer instance.

Member Data Documentation

◆ Avail

Avail

The current number of available buffers (interactive)

 

◆ BatchQ

BatchQ

The offset to the start of the LRU queue.

 

◆ Interact

Interact

The current number of buffers in interactive portion of LRU queue.

 

◆ MaxInteract

MaxInteract

The max number of buffers in interactive portion of LRU queue.

 

◆ Min

Min

The threshold for no updaters to enter global module (interactive)

 

◆ MinB

MinB

The threshold for no updaters to enter global module (batch)

 

◆ MinReQ

MinReQ

The threshold for re-queueing a buffer (interactive)

 

◆ MinReQB

MinReQB

The threshold for re-queueing a buffer (batch)

 

◆ NumSize

NumSize

The number of buffers of this size.

 

◆ OffLRUCnt

OffLRUCnt

The number of buffers removed from LRU queue.

 

◆ ReQCnt

ReQCnt

The number of buffers requeued in the interactive LRU queue.

 

◆ ReQCntB

ReQCntB

The number of buffers requeued in the batch LRU queue.

 

◆ Size

Size

The buffer size for this queue, e.g.

2K, 8K, etc.

 

◆ WrtMax

WrtMax

The threshold for waking write demon (interactive)

 

◆ WrtQSz

WrtQSz

The current number of interactive buffers queued to be written.

 

◆ WrtSz

WrtSz

The Number of buffers in current write cycle.