Content deleted Content added
m Typo fixing (general fixes), replaced: pp. 515-528 → pp. 515–528, ’ → ', - → {{Snd}} (3), deprecated tag tt → code, remove inappropriate ELs for dstat and iotop |
Artoria2e5 (talk | contribs) |
||
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
<source lang="c">
Line 64:
</poem>
</ref>
The avenrun array contains 1-minute, 5-minute and 15-minute average. The {{code|CALC_LOAD}} macro and its associated values are defined in sched.h
<source lang="c">
|