What is the difference between sched_batch sched and sched_other scheduling?

I am working on a Ubuntu project. We did not find a clear difference between sched_batch and sched_other. Can someone tell me the difference?

+6
source share
2 answers

Threads scheduled with sched_batch are considered non-interactive, but the CPU is tied and optimized for bandwidth. Thus, this policy is more convenient for caching. The default value of sched_batch is 1.5 seconds. In addition, in the case of SMP, sched_batch will migrate to the kernel with high inactivity (relative to non-packet streams).

+5
source

The main difference is that sched_batch is a variant of sched_idle . That is, such processes can only be used by the processor, if sched_other processes do not want to.

0
source

Source: https://habr.com/ru/post/987364/


All Articles