Skip to content

Commit d68eb1d

Browse files
committed
add some CFS related questions
1 parent faa7acc commit d68eb1d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

kernel.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,19 @@
247247
87、MSI 和 MSI-X 表示什么?
248248
(tips:一种新的中断通知方式,主要用于网卡中断)
249249

250+
88、sched_min_granularity_ns 表示什么意思?
251+
(tips:表示每个进程可以运行的最小时间片,
252+
CFS算法中每个进程可以运行的时间片相同)
253+
254+
89、sched_latency_ns 表示什么意思?
255+
(tips:表示运行队列中所有进程都运行一遍需要的时间,
256+
当nr_running*sched_min_granularity_ns > sched_latency_ns 时,sched_latency_ns需要调整
257+
为 nr_running * sched_min_granularity_ns)
258+
259+
90、sched_wakeup_granularity_ns 表示什么意思?
260+
(tips:当前运行进程的vruntime 和 抢占进程的vruntime 的差,
261+
大于 sched_wakeup_granularity_ns所表示的vruntime时,可以抢占)
262+
250263
// 内存管理
251264

252265
1、malloc的实现

0 commit comments

Comments
 (0)