%SYSTEM.CPU
Class %SYSTEM.CPU Extends (%RegisteredObject, %SYSTEM.Help) [ System = 4 ]
This class holds information about available processors. The number of threads (virtual or logical cpus), cores and chips always reflect the situation in the current partition or processor set.
Properties
Arch
Property Arch As %String;
Architecture, eg: x86, Itanium, SPARC, PA-RISC
Model
Property Model As %String;
Chip model, eg: Pentium 4, POWER5
Vendor
Property Vendor As %String;
Chip vendor, eg: Intel, Sun, IBM
nThreads
Property nThreads As %Numeric;
Total number of threads (virtual or logical cpus)
nCores
Property nCores As %Numeric;
Total number of cores
nChips
Property nChips As %Numeric;
Total number of chips
nThreadsPerCore
Property nThreadsPerCore As %Numeric;
Number of threads per core (physical property)
nCoresPerChip
Property nCoresPerChip As %Numeric;
Number of cores per chip (physical property)
MHz
Property MHz As %Numeric;
Clock in MHz
MTSupported
Property MTSupported As %Boolean;
Is Hardware Multi-Threading supported?
MTEnabled
Property MTEnabled As %Boolean;
Is Hardware Multi-Threading enabled? (eg: HyperThreading(Intel) or SMT(ppc))
InsideCgroup
Property InsideCgroup As %Numeric;
Is IRIS running inside a cgroup
PeriodUs
Property PeriodUs As %Numeric;
cgroup cfs period in us
QuotaUs
Property QuotaUs As %Numeric;
cgroup cfs quota in us
Methods
Refresh
Method Refresh() As %Status
Force update and get new properties
GetProperties
Method GetProperties() As %Status [ Private ]
Query the system and update object properties
%OnNew
Method %OnNew() As %Status
Dump
ClassMethod Dump()
Display CPU information