type
Post
status
Published
slug
2023/07/13/The-performance-of-linux-0.11-after-modifying-the-time-slice-size
summary
tags
Linux
开发
category
Linux
icon
password
new update day
Property
Oct 22, 2023 01:31 PM
created days
Last edited time
Oct 22, 2023 01:31 PM
  • 10
(Unit: tick) Process Turnaround Waiting CPU Burst I/O Burst 0 0 0 0 0 1 7871 1 0 7870 2 20 19 0 0 3 3011 10 0 3000 4 7922 180 0 7742 5 4 3 0 0 6 2300 190 0 2110 7 2298 98 0 2200 8 3852 1887 0 1965 9 5242 3481 0 1760 10 5312 4881 0 431 11 0 0 0 0 12 1 0 0 0 13 0 0 0 0 14 0 0 0 0 15 1 0 0 0 16 0 0 0 0 17 73 73 0 0 18 15 15 0 0 19 4 3 0 0 20 1 0 0 0 Average: 1806.05 516.24 Throughout: 0.26/s
  • 15
(Unit: tick) Process Turnaround Waiting CPU Burst I/O Burst 0 0 0 0 0 1 5799 2 0 5797 2 25 24 0 0 3 3008 4 0 3003 4 6375 170 0 6204 5 3 3 0 0 6 2251 10 0 2240 7 2248 143 0 2105 8 3789 1887 0 1901 9 4404 3448 0 955 10 0 0 0 0 11 1 0 0 0 12 1 0 0 0 13 0 0 0 0 14 1 0 0 0 15 1 0 0 0 16 0 0 0 0 17 4 3 0 0 18 5 5 0 0 19 3 3 0 0 20 1 0 0 0 Average: 1329.48 271.52 Throughout: 0.33/s
  • 20
(Unit: tick) Process Turnaround Waiting CPU Burst I/O Burst 0 0 0 0 0 1 6264 7 0 6257 2 20 19 0 0 3 3024 10 0 3013 4 7269 220 0 7049 5 4 3 0 0 6 2590 10 0 2580 7 2588 187 0 2400 8 4112 1967 0 2145 9 5183 3551 0 1631 10 5162 4940 0 221 11 0 0 0 0 12 1 0 0 0 13 1 0 0 0 14 0 0 0 0 15 1 0 0 0 16 0 0 0 0 17 23 22 0 0 18 25 25 0 0 19 4 3 0 0 20 1 0 0 0 Average: 1727.24 522.10 Throughout: 0.29/s
  • 25
(Unit: tick) Process Turnaround Waiting CPU Burst I/O Burst 0 0 0 0 0 1 6788 7 0 6781 2 20 19 0 0 3 3033 10 0 3022 4 7413 274 0 7139 5 4 3 0 0 6 2736 10 0 2725 7 2733 233 0 2500 8 4172 2008 0 2164 9 4797 3586 0 1210 10 0 0 0 0 11 1 0 0 0 12 1 0 0 0 13 0 0 0 0 14 1 0 0 0 15 1 0 0 0 16 0 0 0 0 17 78 78 0 0 18 130 130 0 0 19 4 3 0 0 20 1 0 0 0 Average: 1519.67 302.90 Throughout: 0.28/s
时间片变小,进程因时间片到时产生的进程调度次数变多,该进程等待时间越长。
然而随着时间片增大,进程因中断或者睡眠进入的进程调度次数也增多,等待时间随之变长。
故而需要设置合理的时间片,既不能过大,也不能过小。
 
 
欢迎加入喵星计算机技术研究院,原创技术文章第一时间推送。
notion image
 
Linux 0.11 中的内存地址空间概念HIT-OSLab LAB1 操作系统的引导