Class Reference
InterSystems: The power behind what matters   
Documentation  Search
 

class SYS.Stats.Buffer extends SYS.WSMon.wsResource

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

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
16 4 1


Summary

Properties
Avail BatchQ Interact MaxInteract Min
MinB MinReQ MinReQB NumSize OffLRUCnt
ReQCnt ReQCntB Size WrtMax WrtQSz
WrtSz

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
Sample SampleClose SampleExecute SampleFetch
XMLDTD XMLExport XMLExportToStream XMLExportToString
XMLNew XMLSchema XMLSchemaNamespace XMLSchemaType


Properties

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

Methods

• classmethod Sample(Size As %Integer) as SYS.Stats.Buffer
Instantiate the class for a particular size and fill in current values for all properties. 'Size' should be one of 2048, 4096, 8192, 16384, 32768 If there are no buffers of the requested size, then NumSize will be zero.

Allows for XML output of a single Buffer instance.
• classmethod SampleClose(ByRef qHandle As %Binary) as %Status
• classmethod SampleExecute(ByRef qHandle As %Binary) as %Status
• classmethod SampleFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status

Queries

• query Sample()
Selects Size As %Integer, NumSize As %Integer, BatchQ As %Integer, Interact As %Integer, MaxInteract As %Integer, MinReQ As %Integer, MinReQB As %Integer, ReQCnt As %Integer, ReQCntB As %Integer, WrtQSz As %Integer, OffLRUCnt As %Integer, WrtSz As %Integer, WrtMax As %Integer, Avail As %Integer, Min As %Integer, MinB As %Integer
Sample counters for all Buffer sizes


Copyright © 1997-2018, InterSystems Corporation