linux多内核调度,linux-kernel – 如何在Linux内核(Samsung Exynos5422)中实现异构多处理(HMP)调度?...

码:

检查#ifdef CONFIG_SCHED_HMP下的源代码主要在kernel/sched/core.c之内

A(不是那样)简要概述:

big.LITTLE cpu可以配置为2种操作模式:

> IKS – 内核切换器(也称为cpu迁移)

> GTS – 全局任务调度(也称为big.LITTLE MP)

GTS是异构的操作形式,即HMP.

在最抽象的级别,HMP目前仅通过扩展DVFS和SMP负载平衡来支持.这两者都充分了解大核(通过LITTLE核心)的性能优势,并相应地安排高优先级,cpu密集型前台任务.

Dynamic voltage and frequency scaling (DVFS) is used to adapt to instantaneous changes in required performance. The migration modes of big.LITTLE extends this concept by enabling a transition to “big” cpu cores above the highest DVFS operating point of the LITTLE cores. The migration takes about 30 microseconds. By contrast,the DVFS driver evaluates the performance of the OS and the individual cores typically every 50 milliseconds,although some implementations sample slightly more frequently. It takes about 100 microseconds to change voltage and frequency. Because the time taken to migrate a cpu or a cluster is shorter than the DVFS change time and an order of magnitude shorter than the OS evaluation period for DVFS changes,big.LITTLE transitions will enable the processors to run at lower operating points,more frequently,and further,be completely invisible to the user.

In the Global Task Scheduling model,the DVFS mechanisms are still in operation,but the operating system kernel scheduler is aware of the big and LITTLE cores in the system and seeks to load balance high performance threads to high performance cores,and low performance or memory bound threads to the high efficiency cores. This is similar to SMP load balancers today,that automatically balance threads across the cores available in the system,and idle unused cores. In big.LITTLE Global Task Scheduling,the same mechanism is in operation,but the OS keeps track of the load history of each thread and uses that history plus real-time performance sampling to balance threads appropriately among big and LITTLE cores.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值