Events OS Metrics: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:


==CpuNiceTime==
==CpuNiceTime==
The percentage of total CPU time spent executing code in user mode with low priority (nice).


Also see:  
Also see:  
Line 21: Line 23:
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuNiceTime.java GitHub CpuNiceTime]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuNiceTime.java GitHub CpuNiceTime]


==CpuKernelTime==


* <span id=""></span>CpuNiceTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuNiceTime.java GitHub])
The percentage of total CPU time spent executing system calls on behalf of processes.
 
 
* <span id='nice'></span>'''nice''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent in user mode with low priority (nice).
 
==CpuKernelTime==


Also see:  
Also see:  
Line 33: Line 31:
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuKernelTime.java GitHub CpuKernelTime]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuKernelTime.java GitHub CpuKernelTime]


==CpuIdleTime==


* <span id=""></span>CpuKernelTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuKernelTime.java GitHub])
The percentage of total CPU time spent in idle mode.
 
* <span id='system'></span>'''system''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent in system mode: kernel executing system calls on behalf of processes.
 
==CpuIdleTime==


Also see:  
Also see:  
Line 44: Line 39:
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuIdleTime.java GitHub CpuIdleTime]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuIdleTime.java GitHub CpuIdleTime]


==CpuIoWaitTime==


* <span id=""></span>CpuIdleTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuIdleTime.java GitHub])
The percentage of total CPU time spent waiting for I/O to complete. The CPU will not wait for IO, it will be schedule onto another task or will enter idle state. When a CPU goes into idle state for outstanding task I/O, another task will be scheduled on this CPU. On a multi-core CPU, the task waiting for I/O to complete is not running on any CPU, so the iowait of each CPU is difficult to calculate.
 
* <span id='idle'></span>'''idle''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent in idle mode. This value should be USER_HZ times the second entry in [[/proc/uptime]].
 
==CpuIoWaitTime==


Also see:  
Also see:  
Line 55: Line 47:
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuIoWaitTime.java GitHub CpuIoWaitTime]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuIoWaitTime.java GitHub CpuIoWaitTime]


==CpuHardwareInterruptTime==


* <span id=""></span>CpuIoWaitTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuIoWaitTime.java GitHub])
The percentage of total CPU time spent servicing hardware interrupts.
 
* <span id=''></span>'''iowait''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units processes are waiting for I/O to complete. The CPU will not wait for IO, it will be schedule onto another task or will enter idle state. When a CPU goes into idle state for outstanding task I/O, another task will be scheduled on this CPU. On a multi-core CPU, the task waiting for I/O to complete is not running on any CPU, so the iowait of each CPU is difficult to calculate.
 
==CpuHardwareInterruptTime==


Also see:  
Also see:  
Line 66: Line 55:
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuHardwareInterruptTime.java GitHub CpuHardwareInterruptTime]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuHardwareInterruptTime.java GitHub CpuHardwareInterruptTime]


==CpuSoftwareInterruptTime==


* <span id=""></span>CpuHardwareInterruptTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuHardwareInterruptTime.java GitHub])
The percentage of total CPU time spent servicing software interrupts.
 
* <span id=''></span>'''irq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing hardware interrupts.
 
==CpuSoftwareInterruptTime==


Also see:  
Also see:  
Line 77: Line 63:
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuSoftwareInterruptTime.java GitHub CpuSoftwareInterruptTime]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuSoftwareInterruptTime.java GitHub CpuSoftwareInterruptTime]


==CpuStolenTime==


* <span id=''></span>'''softirq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing softirqs.
The percentage of total CPU time spent in other operating systems when running in a virtualized environment.
 
* <span id=""></span>CpuSoftwareInterruptTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuSoftwareInterruptTime.java GitHub])
 
==CpuStolenTime==


Also see:  
Also see:  
* [[/proc/stat#steal|/proc/stat cpu steal time reading]]
* [[/proc/stat#steal|/proc/stat cpu steal time reading]]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuStolenTime.java GitHub CpuStolenTime]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuStolenTime.java GitHub CpuStolenTime]
* <span id='steal'></span>'''steal''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent in other operating systems when running in a virtualized environment.
* <span id=""></span>CpuStolenTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuStolenTime.java GitHub])


=Memory Metrics=
=Memory Metrics=

Revision as of 22:54, 10 September 2017

Internal

Overview

CPU Metrics

CpuUserTime

The percentage of total CPU time spent executing code in user mode.

Also see:

CpuNiceTime

The percentage of total CPU time spent executing code in user mode with low priority (nice).

Also see:

CpuKernelTime

The percentage of total CPU time spent executing system calls on behalf of processes.

Also see:

CpuIdleTime

The percentage of total CPU time spent in idle mode.

Also see:

CpuIoWaitTime

The percentage of total CPU time spent waiting for I/O to complete. The CPU will not wait for IO, it will be schedule onto another task or will enter idle state. When a CPU goes into idle state for outstanding task I/O, another task will be scheduled on this CPU. On a multi-core CPU, the task waiting for I/O to complete is not running on any CPU, so the iowait of each CPU is difficult to calculate.

Also see:

CpuHardwareInterruptTime

The percentage of total CPU time spent servicing hardware interrupts.

Also see:

CpuSoftwareInterruptTime

The percentage of total CPU time spent servicing software interrupts.

Also see:

CpuStolenTime

The percentage of total CPU time spent in other operating systems when running in a virtualized environment.

Also see:

Memory Metrics

PhysicalMemoryUsed

Also see:

PhysicalMemoryFree

Also see:

PhysicalMemoryTotal

Also see:

Swap Metrics

SwapUsed

Also see:

SwapFree

Also see:

SwapTotal

Also see:

Load Average Metrics

LoadAverageLastMinute

Also see:


LoadAverageLastFiveMinutes

Also see:


LoadAverageLastTenMinutes

Also see: