Figure 1. Multi-core task scheduling algorithm for big.LITTLE SoCs
The early big.LITTLE soft models had cluster migration or CPU migration scheduling algorithms, that is, the software switched between cores, but could not run all cores at the same time. The latest software model, Global Task Scheduling, can enable all cores at the same time and directly control the thread allocation between cores. The big and small core switching uses the dynamic voltage and frequency scaling (DVFS) method to switch tasks between high-voltage large cores and low-voltage small cores, thereby improving energy efficiency under various load conditions. The task switching time between cores is 30 microseconds, and the DVFS driver evaluates the OS and cores every 50 microseconds. The GTS algorithm will balance the load according to the thread load. The above multi-core task scheduling algorithms are all performed at the kernel level, so there is no need to modify the user application.
CPU Migration Algorithm IKS – In Kernel Switcher (CPU Migration)
IKS is a chip developed by Linaro for symmetric Cortex-A7 and Cortex-A15 core groups. Each pair of Cortex-A7 and Cortex-A15 core groups is regarded as a virtual symmetric core in the Linux kernel. Threads run in two mutually exclusive symmetric cores, that is, either in the high-performance Cortex-A15 or in the low-power Cortex-A7 core, that is, the highest performance depends only on the Cortex-A15 core. The IKS algorithm has been implemented in the Linux kernel, which is easy to test and productize.
Figure 2. IKS (4+4) and Cortex-A7 and Cortex-A15 core group architecture
Global Task Scheduling (big.LITTLE MP)
The GTS algorithm developed by ARM is also called big.LITTLE MP in Linaro. Under this algorithm, all big and small cores are visible in the Linxu kernel for task scheduling. The recent Linaro builds include this scheduling algorithm.
Figure 3. GTS (4+4) and Cortex-A7 and Cortex-A15 core group architecture
Compared with the IKS algorithm, the GTS algorithm has the following advantages:
- More sophisticated inter-core load control, because the scheduler can directly switch tasks between cores, reducing the extra overhead of the core and thus reducing power consumption;
- The implementation in the scheduler makes faster decisions than the implementation based on the cpufreq framework, and has a performance improvement of about 10% compared to IKS.
- GTS supports asymmetric architectures, such as 2 Cortex-A15 cores plus 4 Cortex-A7 cores;
- All peak processing power can be applied simultaneously, such as the processing power of 4 Cortex-A15 cores plus 4 Cortex-A7 cores in Figure 3.
The big.LITTLE MP kernel patch creates a list of Cortex-A15 and Cortex-A7 cores that handle the current task, and then assigns and tracks each task based on historical load statistics and performs task switching between cores. High processing power requirements are transferred to the Cortex-A15, while low processing power requirements are migrated to the low-power Cortex-A7 core.
Table 1. Comparison of big.LITTLE IKS vs big.LITTLE MP (GTS) kernel scheduling algorithms
big.LITTLE IKS CPU Migration |
big.LITTLE MP, GTS |
|
Core Configuration |
Cortex-A15+Cortex-A7 core |
Any number of Cortex-A15 cores + Cortex-A7 cores can run simultaneously. |
Impact on the kernel |
Minimal modification, changes only apply to the governor |
There are many changes to the kernel, including scheduler, process annotation, etc. |
Maximum processing capacity |
All Cortex-A15 |
All Cortex-A15 cores + Cortex-A7 cores |
Task Switching |
Based on cpufreq framework |
Use scheduler directly, 10% performance improvement; |
Availability |
Available in Linaro's monthly builds |
Available in Linaro's monthly builds |
Kernel.org |
It will exist in 3.11 or 3.12 |
Will upload in the next few quarters |
The above scheduling algorithm takes the multi-core SoCs of Cortex-A15 core + Cortex-A7 core as an example, but more big.LITTLE SoCs may adopt ARM's newer Cortex-A57 + Cortex-A53 architecture.
Summarize
The above big.LITTLE architecture task scheduling algorithms already exist in the Linaro build, and some algorithms have been evaluated in actual systems. For example, Samsung's latest Galaxy S4 uses an 8-core system, that is, a system with 4 Cortex-A15 cores and 4 Cortex-A7 cores, which has adopted a cluster-based migration algorithm. Even the least economical cluster migration algorithm has proven its superior energy efficiency in Qualcomm's multi-core Snapdragon system. Samsung has already used the energy consumption of Cortex-A7 to achieve Cortex-A15-level performance in Exynos 5.
Previous article:Compilation and optimization of NEON instructions on ARM platform
Next article:Soft floating point and hard floating point issues when compiling ARM code with ARMCC and GCC
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- BOOST Circuit Simulation
- Bluetooth (cc2540) protocol stack learning 1
- XMC4800 Review (Part 4) - Data Sharing
- 【DIY Creative LED】WS2812 Effect Display File
- One watt of GaN is less than one yuan, and it is free shipping by SF Express? Lenovo has launched a price war on GaN.
- B-U585I-IOT02A uses WIFI function
- How many read and write clock cycles does SRAM have?
- Mini OLED Game Console
- How does a trace moisture meter perform for factory equipment testing?
- AT32F425-Evaluation Report-Create Your Own Empty Project 02