Homework (Simulation)
In this homework, we’ll use multi.py to simulate a multi-processor CPU scheduler, and learn about some of its details. Read the related README for more information about the simulator and its options.
Question & Answer

1. To start things off, let’s learn how to use the simulator to study how to build an effective multi-processor scheduler. The first simulation will run just one job, which has a run-time of 30, and a working-set size of 200. Run this job (called job ’a’ here) on one simulated CPU as follows: ./multi.py -n 1 -L a:30:200. How long will it take to complete? Turn on the -c flag to see a final answer, and the -t flag to see a tick-by-tick trace of the job and how it is scheduled.




这篇博客通过模拟器multi.py探讨了多处理器调度,包括单CPU环境下作业运行时间、缓存大小对性能的影响、CPU缓存状态追踪、亲和性调度以及不同CPU数量、缓存规模下的性能表现。通过实验,读者可以理解如何预测多处理器环境下的任务完成时间以及优化策略。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



