这已在ODROID-XU3板提供的内核中实现.
(https://github.com/hardkernel/linux.git -b odroidxu3-3.10.y-android)
我粗略地知道它计算某个进程的负载,并根据该负载重新调度到更快或更慢的cpu.
我正在寻找更详细的解释,如果可能的话,还有实现此功能的函数的代码位置.
检查#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.
参考:community.arm.com : Ten Things to Know About big.LITTLE
总结以上是内存溢出为你收集整理的linux-kernel – 如何在Linux内核(Samsung Exynos5422)中实现异构多处理(HMP)调度?全部内容,希望文章能够帮你解决linux-kernel – 如何在Linux内核(Samsung Exynos5422)中实现异构多处理(HMP)调度?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)