Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is scheduler latency?

This seems to be a basic question, but i couldn't find answer anywhere in googling it.

As Far As I Understand, scheduler latency is the time incurred in making the task runnable again. I mean, if there are 100 processes namely 1, 2, e.t.c, then they are executed let's say in order starting from 1. So the latency is the time that the process 1 is executed again. which means that the latency is the waiting time of the process as well as the waiting time of it when it is in runqueue ready to execute.

Or

i misunderstood whole point and sheduler latency is just nothing but the context switching time between the processes?

like image 580
John Avatar asked Oct 25 '25 15:10

John


1 Answers

Scheduling latency is the time that the system is inproductive because of scheduling tasks. It is system latency incurred because it has to spend time scheduling.

Specifically it consists of 2 elements:

  • The delay between a task waking up and actually running (the 'context switching time')
  • Time spent making scheduler decisions (the actual job of the scheduler, which consumes resources that cannot be used by real tasks anymore)
like image 131
Niels Keurentjes Avatar answered Oct 27 '25 05:10

Niels Keurentjes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!