Question about the EEVDF scheduler's code
by Davydoff from LinuxQuestions.org on (#6KKYB)
Hello. I am currently having some problems trying to understand how average virtual runtime (avg_vruntime) calculates in EEVDF scheduler.
I've found these functions in kernel/sched/fair.c file avg_vruntime_add, avg_vruntime_sub, avg_vruntime_update which are responsible for the calculation of avg_vruntime but I don't get them :confused:. I thought "average" means sum of elements divided by count of elements :D. But it seems like it's something else in this scheduler. Does anyone know something about it?
I've found these functions in kernel/sched/fair.c file avg_vruntime_add, avg_vruntime_sub, avg_vruntime_update which are responsible for the calculation of avg_vruntime but I don't get them :confused:. I thought "average" means sum of elements divided by count of elements :D. But it seems like it's something else in this scheduler. Does anyone know something about it?