Content deleted Content added
Tech201805 (talk | contribs) →Other system performance commands: * <tt>iotop</tt><ref>http://man7.org/linux/man-pages/man8/iotop.8.html</ref> |
|||
Line 35:
== Reckoning CPU load ==
On Linux systems, the load-average is not calculated on each clock tick, but driven by a variable value that is based on the Hz frequency setting and tested on each clock tick. (Hz variable is the pulse rate of particular Linux kernel activity. 1 Hz is equal to one clock tick; 10ms by default.) Although the Hz value can be configured in some versions of the kernel, it is normally set to 100. The calculation code uses the Hz value to determine the CPU Load calculation frequency. Specifically, the timer.c::calc_load() function will run the algorithm every 5 * Hz, or roughly five times per second. Following is that function
<source lang="c">
|