As far as I understand, __sched_period is the time incurred in making the task runnable again(the period making sure each process have a chance to run). When the processes are less than sched_nr_latency, the CFS scheduler splits time into periods in which each process is anticipated to run once.
u64 __sched_period(unsigned long nr_running)
{
if (unlikely(nr_running > sched_nr_latency))
return nr_running * sysctl_sched_min_granularity;
else
return sysctl_sched_latency;
}
What about context switching time, scheduler cost calculation, and other factors? What does the sched_period consist of? What is the meaning of sched_period?