【问题标题】:What is difference between sched_batch and sched_other scheduling?sched_batch 和 sched_other 调度有什么区别?
【发布时间】:2015-07-28 20:28:57
【问题描述】:

我正在开发 Ubuntu 项目。没有发现 sched_batch 和 sched_other 之间的明显区别。谁能告诉我区别?

【问题讨论】:

    标签: linux operating-system scheduling


    【解决方案1】:

    使用sched_batch 调度的线程被假定为非交互式的,但受 CPU 限制并针对吞吐量进行了优化。因此,此策略对缓存更友好。默认的 sched_batch 时间片是 1.5 秒。此外,在 SMP 的情况下,sched_batch 将迁移到具有高空闲率的内核(相对于非批处理线程)。

    【讨论】:

      【解决方案2】:

      主要区别在于sched_batch is a variant of sched_idle。 IE。只有在sched_other 进程不想使用时,此类进程才会使用 CPU。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-07-16
        • 1970-01-01
        • 1970-01-01
        • 2017-05-22
        • 1970-01-01
        • 2013-09-01
        • 2016-06-23
        • 2017-10-12
        相关资源
        最近更新 更多