public class CgroupV1Subsystem extends Object implements CgroupSubsystem, CgroupV1Metrics
LONG_RETVAL_UNLIMITED| Modifier and Type | Method and Description |
|---|---|
long |
getBlkIOServiceCount()
BlKIO Subsystem
|
long |
getBlkIOServiced()
Returns the number of block I/O bytes that have been transferred
to/from the disk by the Isolation Group.
|
long |
getCpuNumPeriods()
Returns the number of time-slice periods that have elapsed if
a CPU quota has been setup for the Isolation Group
|
long |
getCpuNumThrottled()
Returns the number of time-slice periods that the group has
been throttled or limited due to the group exceeding its quota
if a CPU quota has been setup for the Isolation Group.
|
long |
getCpuPeriod()
CPU Subsystem
|
long |
getCpuQuota()
Returns the total available run-time allowed, in microseconds,
during each scheduling period for all tasks in the Isolation
Group.
|
int[] |
getCpuSetCpus()
CPUSet Subsystem
|
double |
getCpuSetMemoryPressure()
Returns the (attempts per second * 1000), if enabled, that the
operating system tries to satisfy a memory request for any
process in the current Isolation Group when no free memory is
readily available.
|
int[] |
getCpuSetMems()
Returns the memory nodes that are available for use by processes
in the current Isolation Group.
|
long |
getCpuShares()
Returns the relative weighting of processes with the Isolation
Group used for prioritizing the scheduling of processes across
all Isolation Groups running on a host.
|
long |
getCpuSystemUsage()
Returns the aggregate system time, in nanoseconds, consumed by
all tasks in the Isolation Group.
|
long |
getCpuThrottledTime()
Returns the total time duration, in nanoseconds, that the
group has been throttled or limited due to the group exceeding
its quota if a CPU quota has been setup for the Isolation Group.
|
long |
getCpuUsage()
CPU Accounting Subsystem
|
long |
getCpuUserUsage()
Returns the aggregate user time, in nanoseconds, consumed by all
tasks in the Isolation Group.
|
long |
getEffectiveCpuCount()
Returns the number of effective processors that this Isolation
group has available to it.
|
int[] |
getEffectiveCpuSetCpus()
Returns the CPUS that are available and online for execution of
processes within the current Isolation Group.
|
int[] |
getEffectiveCpuSetMems()
Returns the memory nodes that are available and online for use by
processes within the current Isolation Group.
|
static CgroupV1Subsystem |
getInstance() |
long |
getKernelMemoryFailCount()
Returns the number of times that kernel memory requests in the
Isolation Group have exceeded the kernel memory limit.
|
long |
getKernelMemoryLimit()
Returns the maximum amount of kernel physical memory, in bytes, that
can be allocated in the Isolation Group.
|
long |
getKernelMemoryMaxUsage()
Returns the largest amount of kernel physical memory, in bytes, that
have been allocated in the Isolation Group.
|
long |
getKernelMemoryUsage()
Returns the amount of kernel physical memory, in bytes, that
is currently allocated in the current Isolation Group.
|
long |
getMemoryAndSwapFailCount()
Returns the number of times that user memory requests in the
Isolation Group have exceeded the memory + swap limit.
|
long |
getMemoryAndSwapLimit()
Returns the maximum amount of physical memory and swap space,
in bytes, that can be allocated in the Isolation Group.
|
long |
getMemoryAndSwapMaxUsage()
Returns the largest amount of physical memory and swap space,
in bytes, that have been allocated in the Isolation Group.
|
long |
getMemoryAndSwapUsage()
Returns the amount of physical memory and swap space, in bytes,
that is currently allocated in the current Isolation Group.
|
long |
getMemoryFailCount()
Memory Subsystem
|
long |
getMemoryLimit()
Returns the maximum amount of physical memory, in bytes, that
can be allocated in the Isolation Group.
|
long |
getMemoryMaxUsage()
Returns the largest amount of physical memory, in bytes, that
have been allocated in the Isolation Group.
|
long |
getMemorySoftLimit()
Returns the hint to the operating system that allows groups
to specify the minimum amount of physical memory that they need to
achieve reasonable performance in low memory systems.
|
long |
getMemoryUsage()
Returns the amount of physical memory, in bytes, that is currently
allocated in the current Isolation Group.
|
long[] |
getPerCpuUsage()
Returns the aggregate time, in nanoseconds, consumed by all tasks in
the Isolation Group, separated by CPU.
|
String |
getProvider()
Returns the interface responsible for providing the
platform metrics.
|
long |
getTcpMemoryFailCount()
Returns the number of times that networking memory requests in the
Isolation Group have exceeded the kernel memory limit.
|
long |
getTcpMemoryLimit()
Returns the maximum amount of networking physical memory, in bytes,
that can be allocated in the Isolation Group.
|
long |
getTcpMemoryMaxUsage()
Returns the largest amount of networking physical memory, in bytes,
that have been allocated in the Isolation Group.
|
long |
getTcpMemoryUsage()
Returns the amount of networking physical memory, in bytes, that
is currently allocated in the current Isolation Group.
|
Boolean |
isCpuSetMemoryPressureEnabled()
Returns the state of the memory pressure detection support.
|
Boolean |
isMemoryOOMKillEnabled()
Returns the state of the Operating System Out of Memory termination
policy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsystemMetricspublic static CgroupV1Subsystem getInstance()
public String getProvider()
MetricsgetProvider in interface Metricspublic long getCpuUsage()
getCpuUsage in interface Metricspublic long[] getPerCpuUsage()
MetricsgetPerCpuUsage in interface Metricspublic long getCpuUserUsage()
MetricsgetCpuUserUsage in interface Metricspublic long getCpuSystemUsage()
MetricsgetCpuSystemUsage in interface Metricspublic long getCpuPeriod()
getCpuPeriod in interface Metricspublic long getCpuQuota()
MetricsgetCpuQuota in interface Metricspublic long getCpuShares()
MetricsgetCpuShares in interface Metricspublic long getCpuNumPeriods()
MetricsgetCpuNumPeriods in interface Metricspublic long getCpuNumThrottled()
MetricsgetCpuNumThrottled in interface Metricspublic long getCpuThrottledTime()
MetricsgetCpuThrottledTime in interface Metricspublic long getEffectiveCpuCount()
MetricsRuntime.availableProcessors().getEffectiveCpuCount in interface Metricspublic int[] getCpuSetCpus()
getCpuSetCpus in interface Metricspublic int[] getEffectiveCpuSetCpus()
MetricsgetEffectiveCpuSetCpus in interface Metricspublic int[] getCpuSetMems()
MetricsMetrics.getEffectiveCpuSetMems().getCpuSetMems in interface Metricspublic int[] getEffectiveCpuSetMems()
MetricsgetEffectiveCpuSetMems in interface Metricspublic double getCpuSetMemoryPressure()
CgroupV1MetricsCgroupV1Metrics.isCpuSetMemoryPressureEnabled() to
determine if this support is enabled.getCpuSetMemoryPressure in interface CgroupV1Metricspublic Boolean isCpuSetMemoryPressureEnabled()
CgroupV1MetricsisCpuSetMemoryPressureEnabled in interface CgroupV1Metricspublic long getMemoryFailCount()
getMemoryFailCount in interface Metricspublic long getMemoryLimit()
MetricsgetMemoryLimit in interface Metricspublic long getMemoryMaxUsage()
CgroupV1MetricsgetMemoryMaxUsage in interface CgroupV1Metricspublic long getMemoryUsage()
MetricsgetMemoryUsage in interface Metricspublic long getKernelMemoryFailCount()
CgroupV1MetricsgetKernelMemoryFailCount in interface CgroupV1Metricspublic long getKernelMemoryLimit()
CgroupV1MetricsgetKernelMemoryLimit in interface CgroupV1Metricspublic long getKernelMemoryMaxUsage()
CgroupV1MetricsgetKernelMemoryMaxUsage in interface CgroupV1Metricspublic long getKernelMemoryUsage()
CgroupV1MetricsgetKernelMemoryUsage in interface CgroupV1Metricspublic long getTcpMemoryFailCount()
CgroupV1MetricsgetTcpMemoryFailCount in interface CgroupV1Metricspublic long getTcpMemoryLimit()
CgroupV1MetricsgetTcpMemoryLimit in interface CgroupV1Metricspublic long getTcpMemoryMaxUsage()
CgroupV1MetricsgetTcpMemoryMaxUsage in interface CgroupV1Metricspublic long getTcpMemoryUsage()
MetricsgetTcpMemoryUsage in interface Metricspublic long getMemoryAndSwapFailCount()
CgroupV1MetricsgetMemoryAndSwapFailCount in interface CgroupV1Metricspublic long getMemoryAndSwapLimit()
MetricsgetMemoryAndSwapLimit in interface Metricspublic long getMemoryAndSwapMaxUsage()
CgroupV1MetricsgetMemoryAndSwapMaxUsage in interface CgroupV1Metricspublic long getMemoryAndSwapUsage()
MetricsgetMemoryAndSwapUsage in interface Metricspublic Boolean isMemoryOOMKillEnabled()
CgroupV1MetricsisMemoryOOMKillEnabled in interface CgroupV1Metricspublic long getMemorySoftLimit()
MetricsgetMemorySoftLimit in interface Metricspublic long getBlkIOServiceCount()
getBlkIOServiceCount in interface Metricspublic long getBlkIOServiced()
MetricsgetBlkIOServiced in interface Metrics