Load (computing): Difference between revisions

Content deleted Content added
m runable->runnable - Fix a typo in one click
Tags: Mobile edit Mobile web edit Advanced mobile edit
Undid revision 510159511 by 200.201.3.32 (talk) HZ, not Hz, is the correct variable (edit over 7 years old!)
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 HzHZ frequency setting and tested on each clock tick. (HzHZ variable is the pulse rate of particular Linux kernel activity. 1 HzHZ is equal to one clock tick; 10ms by default.) Although the HzHZ value can be configured in some versions of the kernel, it is normally set to 100. The calculation code uses the HzHZ value to determine the CPU Load calculation frequency. Specifically, the timer.c::calc_load() function will run the algorithm every 5 * HzHZ, or roughly five times per second. Following is that function i
 
<source lang="c">
Line 55:
}
</source>
The countdown is over a {{code|LOAD_FREQ}} of 5 HzHZ.<ref group="note">
<poem>
1 HZ = 100 ticks