本文介绍了sched_batch和sched_other调度之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在研究Ubuntu项目.尚未找到sched_batch和sched_other之间的明显区别.谁能告诉我区别?
I am working on Ubuntu project. Have not found clear difference between sched_batch and sched_other. Can anyone tell me the difference?
推荐答案
使用sched_batch
调度的线程被认为是非交互式的,但是受CPU限制并针对吞吐量进行了优化.因此,此策略对缓存更友好.默认的sched_batch
时间片为1.5秒.此外,在使用SMP的情况下,sched_batch
将迁移到具有高空闲(相对于非批处理线程)的内核.
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).
这篇关于sched_batch和sched_other调度之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!