Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between sched_batch and sched_other scheduling?

I am working on Ubuntu project. Have not found clear difference between sched_batch and sched_other. Can anyone tell me the difference?

like image 404
Tasneem Avatar asked May 17 '15 07:05

Tasneem


1 Answers

Threads that are scheduled with sched_batch are assumed to be non-interactive, but CPU bound and optimized for throughput. Thus, this policy is more cache-friendly. The default sched_batch timeslice is 1.5 seconds. In addition, in case of SMP, sched_batch will migrate to a core with high idleness (with respect to non-batch threads).

like image 170
Matthias Avatar answered Sep 22 '22 08:09

Matthias