hamadmarri / ECHO-CPU-Scheduler

ECHO CPU Scheduler - Enhanced CPU Handling Orchestrator It is a CPU processes scheduler patch for Linux kernel.
29 stars 2 forks source link
cpu echo echo-cpu-scheduler kernel linux scheduler

ECHO CPU Scheduler

Enhanced CPU Handling Orchestrator

It is a CPU processes scheduler patch for Linux kernel.

This scheduler includes the following features: -

Comparison with other schedulers

https://github.com/hamadmarri/benchmarks

Policy

The policy is a mix of SRTF and RR (Round Robin) where virtual runtime calculation is ported from CFS (it calculates the burst adjusted based on the priority of the task). Each round the tasks will run starting from the least estimated vruntime and each task will run shared_quota/#tasks ex. 35us / 3 = ~11.7us

If a wake up task has smaller estimated vruntime then it will preempt the current task and run. Every time the task consumes its quota it will be placed in a second queue unless it is the only task that is running. After finishing the round, all tasks are placed in the second queue. The scheduler switches the queue head from q1 to q2, and q2 become q1 and vise versa.

Defaults and Sysctls

Telegram Group

https://t.me/tt_sched

Hamad