1. ideal_runtime 理想运行时间
2. exec_runtime 实际运行时间
3. vruntime 虚拟运行时间
4. prio_to_weight数组
nice前后数字是1.25倍关系,每增加一级,可提升10% cpu使用时间
static const int prio_to_weight[40] = {
/* -20 */ 88761, 71755, 56483, 46273, 36291,
/* -15 */ 29154, 23254, 18705, 14949, 11916,
/* -10 */ 9548, 7620, 6100, 4904, 3906,
/* -5 */ 3121, 2501, 1991, 1586, 1277,
/* 0 */ 1024, 820, 655, 526, 423,
/* 5 */ 335, 272, 215, 172, 137,
/* 10 */ 110, 87, 70, 56, 45,
/* 15 */ 36, 29, 23, 18, 15,
};
虚拟运行时间 vruntime = delta * (NICE_0_LOAD/nice_n_weight)
5.