Events OS Metrics: Difference between revisions

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


* <span id='nice'></span>'''nice''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent in user mode with low priority (nice).
* <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==
* <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='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.
* <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==
* <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='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]].
* <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==
* <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='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.
==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='irq'></span>'''irq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing hardware interrupts.
* <span id='irq'></span>'''irq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing hardware interrupts.
==CpuSoftwareInterruptTime==
* <span id='softirq'></span>'''softirq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing softirqs.
* <span id='softirq'></span>'''softirq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing softirqs.
* <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='guest'></span>'''guest''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent running a virtual CPU for guest operating systems under the control of the Linux kernel. More details: [[Linux_Virtualization_Concepts#Steal_Time|Steal Time]].
* <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='guest_nice'></span>'''guest_nice''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent running a niced guest (virtual CPU for guest operating systems under the control of the Linux kernel).
 
==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>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>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>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>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>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>CpuStolenTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuStolenTime.java GitHub])
* <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])



Revision as of 22:37, 10 September 2017

Internal

Overview

CPU Metrics

CpuUserTime

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

Also see:

CpuNiceTime


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

CpuKernelTime

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

CpuIdleTime

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

CpuIoWaitTime

  • 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

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

CpuSoftwareInterruptTime

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

CpuStolenTime

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

Memory

Swap

  • SwapTotal
  • SwapUsed
  • SwapFree

Load Average

  • LoadAverageLastMinute
  • LoadAverageLastFiveMinutes
  • LoadAverageLastTenMinutes