Скачать презентацию Effects of Clock Resolution on the Scheduling of Скачать презентацию Effects of Clock Resolution on the Scheduling of

aefe7f45f52392b2201a227e6c7b853c.ppt

  • Количество слайдов: 15

Effects of Clock Resolution on the Scheduling of Interactive and Soft Real-Time Processes Yoav Effects of Clock Resolution on the Scheduling of Interactive and Soft Real-Time Processes Yoav Etsion, Dan Tsafrir, Dror G. Feitelson School of Computer Science and Engineering The Hebrew University, 91904 Jerusalem, Israel

Key Ideas n n n The system clock has not increased at the same Key Ideas n n n The system clock has not increased at the same rate as the hardware clock Scheduling algorithms are negatively impacted by this fact Many applications could benefit from a faster system clock A faster system clock could support soft real-time applications on a commodity OS Increasing the system clock speed does not incur unreasonable overhead

How did we get here? n n The system clock has remained stable for How did we get here? n n The system clock has remained stable for almost 20 years 1976 computer 3 MHz CPU 60 Hz Clock q n 1 System tick per 50, 000 instructions 2003 computer 3 GHz CPU 100 Hz Clock q 1 System tick per 30, 000 instructions

Problems with direct scaling n n n Overhead: it takes around 400 clock cycles Problems with direct scaling n n n Overhead: it takes around 400 clock cycles to process an interrupt At the same approximate ratio, this would be an overhead of approximately 400 /50000, or only 0. 8% However, resulting caching degradation could raise this significantly

Slow clock problems n Xine q n Systems with clock speed of 100 Hz Slow clock problems n Xine q n Systems with clock speed of 100 Hz cannot display 60 frames per second Scheduling example q Accounting background for scheduling counts incorrectly with a slow clock

Xine Xine

Priority Scheduling n n Each process has a priority Higher priority processes interrupt lower Priority Scheduling n n Each process has a priority Higher priority processes interrupt lower priority processes Priority decreases while running “Running” only checked on system ticks

Scheduling Billing n Priority does not decrease correctly with inaccurate billing Scheduling Billing n Priority does not decrease correctly with inaccurate billing

Increase proposal n n n What is the solution? Increase the system clock speed Increase proposal n n n What is the solution? Increase the system clock speed Examine 1000 Hz - 20, 000 Hz

Experiment Methodology n n n Computers used range from Pentium-90 (MHz) to P 4 Experiment Methodology n n n Computers used range from Pentium-90 (MHz) to P 4 2. 4 GHz Klogger was used to record context switches, priorities, forks, execs, etc Applications include: Emacs, X server, Xine, Quake 3, custom CPU bound processes

Overhead n Overhead cost is manageable Overhead n Overhead cost is manageable

Latency n Latency can be reduced from up to 420 ms to under 1 Latency n Latency can be reduced from up to 420 ms to under 1 ms with 20, 000 Hz

Review n n System clock frequency is outdated Increase would benefit applications and repair Review n n System clock frequency is outdated Increase would benefit applications and repair scheduler issues Overhead for 1, 000 Hz or 10, 000 Hz not prohibitive Soft Real-time support possible – latency under 1 ms

Analysis n n n Proposed as easy solution: “turn of a knob, ” yet Analysis n n n Proposed as easy solution: “turn of a knob, ” yet it involves modifying kernel code… probably not an end user thing Could have spent some time explaining possible negative impacts (not overhead) of this increase, or justifying the fact that there are none. Most overhead came from TLB and cache degradation. Could this be improved to compensate?

Questions and Discussion Questions and Discussion