Download presentation
Presentation is loading. Please wait.
Published byJulian Norris Modified over 8 years ago
1
1 Akira Tsukamoto System Platform Laboratory NEC Corporation
2
2 ■In the previous Linux scheduler, while the real time task (FIFO and RR) exist, the normal task (OTHER) is not selected at all (task switching does not occur and the OTHER task has to wait ). ■In the newly introduced WRR scheduler, the OTHER task is executed even when the WRR task exists. ■Round robin algorithm possible to adjust execution time per task according to the priority ■ The scheduler has O(n) algorithm up to Kernel 2.4 ■In this method, when the WRR task exists, ■Realizes switching of OTHER and WRR task queues by O(1). ■Switches from the WRR task queue by O(1) when RR and FIFO tasks are inserted. ■The number of added codes is 200 lines or so ■Based on the scheduler of the Linux original algorithm up to Kernel 2.4 The method is explained referring the patch described later. Design of WRR Scheduler
3
3 It has to wait until all FIFO and RR ended.
4
4 OTHER is executed
5
5 Process activation Priority setting The bigger the figure, the longer the execution time of the corresponding task.
6
6 Function to be called when calculating the task of high priority in runqueue (goodness value) For the WRR task, modifies to the non-calculation process because the goodness value is not required. Function to be called when the task in the sleep status is inserted into runqueue Added a counter to decide if the FIFO, RR, or WRR task exists or not by O(1). Function to be called at the time of actual task switching. See the detail in the following slide. Function to enforce task attribute (FIFO, RR, WRR) setting and priority setting Inserts wrr into wrr_runqueue when changing the normal task (OTHER) to WRR task. Function to operate newly set www_runqueue
7
7 excerpts or so
8
8
9
9
10
10
11
11
12
12
13
13
14
14 Checked the workings of task switching in the implemented WRR scheduler. Enforced tracing two WRR tasks by System Director Embedded.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.