sched_batch 和 sched_other 调度有什么区别?
What is difference between sched_batch and sched_other scheduling?
我正在从事 Ubuntu 项目。没有发现 sched_batch 和 sched_other 之间的明显区别。谁能告诉我区别?
假定使用 sched_batch
安排的线程是非交互式的,但 CPU 绑定并针对吞吐量进行了优化。因此,此策略对缓存更友好。默认的 sched_batch
时间片是 1.5 秒。此外,在 SMP 的情况下,sched_batch
将迁移到具有高空闲率的核心(相对于非批处理线程)。
主要区别在于 sched_batch
is a variant of sched_idle
。 IE。如果 sched_other
进程不想使用,则此类进程只能使用 cpu。
我正在从事 Ubuntu 项目。没有发现 sched_batch 和 sched_other 之间的明显区别。谁能告诉我区别?
假定使用 sched_batch
安排的线程是非交互式的,但 CPU 绑定并针对吞吐量进行了优化。因此,此策略对缓存更友好。默认的 sched_batch
时间片是 1.5 秒。此外,在 SMP 的情况下,sched_batch
将迁移到具有高空闲率的核心(相对于非批处理线程)。
主要区别在于 sched_batch
is a variant of sched_idle
。 IE。如果 sched_other
进程不想使用,则此类进程只能使用 cpu。