public class CgroupV2Subsystem extends Object implements CgroupSubsystem
LONG_RETVAL_UNLIMITED| Modifier and Type | Method and Description |
|---|---|
long |
getBlkIOServiceCount()
Returns the number of block I/O requests to the disk that have been
issued by the Isolation Group.
|
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()
Returns the length of the scheduling period, in
microseconds, for processes within the Isolation Group.
|
long |
getCpuQuota()
Returns the total available run-time allowed, in microseconds,
during each scheduling period for all tasks in the Isolation
Group.
|
int[] |
getCpuSetCpus()
Returns the CPUS that are available for execution of processes
in the current Isolation Group.
|
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()
Returns the aggregate time, in nanoseconds, consumed by all
tasks in the Isolation Group.
|
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 CgroupSubsystem |
getInstance() |
long |
getMemoryAndSwapLimit()
Returns the maximum amount of physical memory and swap space,
in bytes, that can be 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()
Returns the number of times that user memory requests in the
Isolation Group have exceeded the memory limit.
|
long |
getMemoryLimit()
Returns the maximum amount of physical memory, in bytes, that
can be 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 |
getTcpMemoryUsage()
Returns the amount of networking physical memory, in bytes, that
is currently allocated in the current Isolation Group.
|
static Long |
lineToRandWIOs(String line) |
static Long |
lineToRBytesAndWBytesIO(String line) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsystemMetricspublic static CgroupSubsystem getInstance()
public String getProvider()
MetricsgetProvider in interface Metricspublic long getCpuUsage()
MetricsgetCpuUsage in interface Metricspublic long[] getPerCpuUsage()
MetricsgetPerCpuUsage in interface Metricspublic long getCpuUserUsage()
MetricsgetCpuUserUsage in interface Metricspublic long getCpuSystemUsage()
MetricsgetCpuSystemUsage in interface Metricspublic long getCpuPeriod()
MetricsgetCpuPeriod 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()
MetricsMetrics.getEffectiveCpuSetCpus() }.getCpuSetCpus in interface Metricspublic int[] getEffectiveCpuSetCpus()
MetricsgetEffectiveCpuSetCpus in interface Metricspublic int[] getCpuSetMems()
MetricsMetrics.getEffectiveCpuSetMems().getCpuSetMems in interface Metricspublic int[] getEffectiveCpuSetMems()
MetricsgetEffectiveCpuSetMems in interface Metricspublic long getMemoryFailCount()
MetricsgetMemoryFailCount in interface Metricspublic long getMemoryLimit()
MetricsgetMemoryLimit in interface Metricspublic long getMemoryUsage()
MetricsgetMemoryUsage in interface Metricspublic long getTcpMemoryUsage()
MetricsgetTcpMemoryUsage in interface Metricspublic long getMemoryAndSwapLimit()
MetricsgetMemoryAndSwapLimit in interface Metricspublic long getMemoryAndSwapUsage()
MetricsgetMemoryAndSwapUsage in interface Metricspublic long getMemorySoftLimit()
MetricsgetMemorySoftLimit in interface Metricspublic long getBlkIOServiceCount()
MetricsgetBlkIOServiceCount in interface Metricspublic long getBlkIOServiced()
MetricsgetBlkIOServiced in interface Metrics