Events OS Metrics: Difference between revisions

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


Also see:  
Also see:  
* [[/proc/stat#user|/proc/stat cpu user time reading|]]
* [[/proc/stat#user|/proc/stat cpu user time reading]]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuUserTime.java GitHub CpuUserTime]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuUserTime.java GitHub CpuUserTime]


==CpuNiceTime==
==CpuNiceTime==
Also see:
* [[/proc/stat#nice|/proc/stat cpu nice time reading]]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuNiceTime.java GitHub CpuNiceTime]


* <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])
* <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])
Line 23: Line 28:


==CpuKernelTime==
==CpuKernelTime==
Also see:
* [[/proc/stat#system|/proc/stat cpu system time reading]]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuKernelTime.java GitHub CpuKernelTime]


* <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])
* <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])
Line 29: Line 39:


==CpuIdleTime==
==CpuIdleTime==
Also see:
* [[/proc/stat#idle|/proc/stat cpu idle time reading]]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuIdleTime.java GitHub CpuIdleTime]


* <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])
* <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])
Line 35: Line 50:


==CpuIoWaitTime==
==CpuIoWaitTime==
Also see:
* [[/proc/stat#iowait|/proc/stat cpu iowait time reading]]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuIoWaitTime.java GitHub CpuIoWaitTime]


* <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])
* <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])


* <span id='iowait'></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.
* <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==
==CpuHardwareInterruptTime==
Also see:
* [[/proc/stat#irq|/proc/stat cpu irq time reading]]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuHardwareInterruptTime.java GitHub CpuHardwareInterruptTime]


* <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])
* <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])


* <span id='irq'></span>'''irq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing hardware interrupts.
* <span id=''></span>'''irq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing hardware interrupts.


==CpuSoftwareInterruptTime==
==CpuSoftwareInterruptTime==


* <span id='softirq'></span>'''softirq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing softirqs.
Also see:
* [[/proc/stat#softirq|/proc/stat cpu softirq time reading]]
* [https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuSoftwareInterruptTime.java GitHub CpuSoftwareInterruptTime]
 
 
* <span id=''></span>'''softirq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing softirqs.


* <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])
* <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==
==CpuStolenTime==
Also see:
* [[/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]


* <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='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.

Revision as of 22:46, 10 September 2017

Internal

Overview

CPU Metrics

CpuUserTime

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

Also see:

CpuNiceTime

Also see:



  • nice - time in USER_HZ units spent in user mode with low priority (nice).

CpuKernelTime

Also see:


  • system - time in USER_HZ units spent in system mode: kernel executing system calls on behalf of processes.

CpuIdleTime

Also see:


  • idle - time in USER_HZ units spent in idle mode. This value should be USER_HZ times the second entry in /proc/uptime.

CpuIoWaitTime

Also see:


  • iowait - time in 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:


  • CpuHardwareInterruptTime (GitHub)
  • irq - time in USER_HZ units spent servicing hardware interrupts.

CpuSoftwareInterruptTime

Also see:


  • softirq - time in USER_HZ units spent servicing softirqs.
  • CpuSoftwareInterruptTime (GitHub)

CpuStolenTime

Also see:


  • steal - time in USER_HZ units spent in other operating systems when running in a virtualized environment.

Memory Metrics

PhysicalMemoryUsed

PhysicalMemoryFree

PhysicalMemoryTotal

Swap Metrics

SwapUsed

SwapFree

SwapTotal

Load Average Metrics

LoadAverageLastMinute

LoadAverageLastFiveMinutes

LoadAverageLastTenMinutes