Events OS Metrics: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
CPU | =CPU Metrics= | ||
==CpuUserTime== | |||
The percentage of total CPU time spent executing code in user mode. | |||
Also see: [[/proc/stat cpu user time reading|/proc/stat#user]] | |||
([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuUserTime.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]) | ||
* <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='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='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='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='irq'></span>'''irq''' - time in [[Linux_7_General_Concepts#USER_HZ|USER_HZ]] units spent servicing hardware interrupts. | |||
* <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='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). | |||
* <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]) | ||
* <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]) |
Revision as of 22:22, 10 September 2017
Internal
Overview
CPU Metrics
CpuUserTime
The percentage of total CPU time spent executing code in user mode.
Also see: /proc/stat#user
(GitHub)
CpuNiceTime
- CpuNiceTime (GitHub)
- nice - time in USER_HZ units spent in user mode with low priority (nice).
- system - time in USER_HZ units spent in system mode: kernel executing system calls on behalf of processes.
- idle - time in USER_HZ units spent in idle mode. This value should be USER_HZ times the second entry in /proc/uptime.
- 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.
- irq - time in USER_HZ units spent servicing hardware interrupts.
- softirq - time in USER_HZ units spent servicing softirqs.
- steal - time in USER_HZ units spent in other operating systems when running in a virtualized environment.
- guest - time in USER_HZ units spent running a virtual CPU for guest operating systems under the control of the Linux kernel. More details: Steal Time.
- guest_nice - time in USER_HZ units spent running a niced guest (virtual CPU for guest operating systems under the control of the Linux kernel).
- CpuKernelTime (GitHub)
- CpuIoWaitTime (GitHub)
- CpuIdleTime (GitHub)
- CpuHardwareInterruptTime (GitHub)
- CpuSoftwareInterruptTime (GitHub)
- CpuStolenTime (GitHub)
Memory
Swap
- SwapTotal
- SwapUsed
- SwapFree
Load Average
- LoadAverageLastMinute
- LoadAverageLastFiveMinutes
- LoadAverageLastTenMinutes