LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Question about the EEVDF scheduler's code (https://www.linuxquestions.org/questions/linux-kernel-70/question-about-the-eevdf-schedulers-code-4175735307/)

Davydoff 03-25-2024 03:40 PM

Question about the EEVDF scheduler's code
 
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?


All times are GMT -5. The time now is 10:17 PM.