Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\loadavg.h Create Date:2022-07-28 05:40:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:a1 = a0 * e + a * (1 - e)

Proto:static inline unsigned long calc_load(unsigned long load, unsigned long exp, unsigned long active)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longload
unsigned longexp
unsigned longactive
33  newload = load * exp + active * (1.0 as fixed-point - exp)
34  If active >= load Then newload += 1.0 as fixed-point - 1
37  Return newload / 1.0 as fixed-point
Caller
NameDescribe
calc_load_na1 = a0 * e + a * (1 - e)* a2 = a1 * e + a * (1 - e)* = (a0 * e + a * (1 - e)) * e + a * (1 - e)* = a0 * e^2 + a * (1 - e) * (1 + e)* a3 = a2 * e + a * (1 - e)* = (a0 * e^2 + a * (1 - e) * (1 + e)) * e + a * (1 - e)* = a0 * e^3 + a * (1 - e) * (1 + e +
calc_global_loadalc_load - update the avenrun load estimates 10 ticks after the* CPUs have updated calc_load_tasks.* Called from the global timer code.
calc_avgs
iolat_update_total_lat_avg