From 73d27dc3832f35710747f43930b168ff89660f73 Mon Sep 17 00:00:00 2001 From: gatieme Date: Wed, 29 Jun 2016 14:41:23 +0800 Subject: [PATCH] =?UTF-8?q?CFS=E8=B0=83=E5=BA=A6=E5=99=A8=E4=B9=8B?= =?UTF-8?q?=E8=99=9A=E6=8B=9F=E6=97=B6=E9=92=9F...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- study/kernel/01-process/05-schedule/04-cfs/02-vruntime/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/study/kernel/01-process/05-schedule/04-cfs/02-vruntime/README.md b/study/kernel/01-process/05-schedule/04-cfs/02-vruntime/README.md index f4f73f1..9ae4c33 100644 --- a/study/kernel/01-process/05-schedule/04-cfs/02-vruntime/README.md +++ b/study/kernel/01-process/05-schedule/04-cfs/02-vruntime/README.md @@ -125,6 +125,7 @@ $$ delta =delta \times \dfrac{NICE\_0\_LOAD}{curr->se->load.weight}$$ + 每一个进程拥有一个vruntime, 每次需要调度的时候就选运行队列中拥有最小vruntime的那个进程来运行, vruntime在时钟中断里面被维护, 每次时钟中断都要更新当前进程的vruntime, 即vruntime以如下公式逐渐增长 那么`curr->vruntime += calc_delta_fair(delta_exec, curr);` 即相当于如下操作