In-Depth Analysis of Linux SMP Technology: From Principles to Practice

In-Depth Analysis of Linux SMP Technology: From Principles to Practice

In-Depth Analysis of Linux SMP Technology: From Principles to Practice 1 Basic Concepts of SMP Symmetric Multiprocessing (SMP) is a computer architecture technology that integrates multiple processors into a single system. Its core feature is that all processors work together in a peer-to-peer manner within a single operating system, sharing a unified memory space and … Read more

Practical Course on Linux Kernel Technology (Basic): How to Write Code for Faster CPU Execution?

Practical Course on Linux Kernel Technology (Basic): How to Write Code for Faster CPU Execution?

Table of Contents 1. Multi-level Cache of CPU 2. Improving Data Cache Hit Rate 3. Improving Instruction Cache Hit Rate 4. Improving Cache Hit Rate on Multi-core CPUs 5. Conclusion πŸŽ‰ Accumulating knowledge, sharing, and growing, so that both you and others can benefit! πŸ˜„ For more project courses, you can add me on WeChat … Read more

Understanding CoreMark: A Benchmark Tool for Embedded CPUs

Understanding CoreMark: A Benchmark Tool for Embedded CPUs

What is CoreMark? CoreMark is essentially a “tool” designed specifically for benchmarking embedded CPUs. Its goal is straightforward: to measure the computational power of the processor core without considering peripherals or operating systems, which are often seen as unnecessary distractions. Imagine you have a newly purchased MCU and want to know how fast it runs … Read more

RISC-V Architecture 64-Core CPU Performance Testing

RISC-V Architecture 64-Core CPU Performance Testing

The SG2042 uses the T-head Xuantie C910 core. It has a clock speed of 2.0GHz, with a total of 64 cores, where every 16 cores form a NUMA node, and there are 4 memory channels. The following tests were conducted using the vendor-provided GCC 10.2 version on an Ubuntu system with SSH remote access. In … Read more

Optimization and Implementation of Real-Time Task Scheduling Algorithms in Embedded Systems

Optimization and Implementation of Real-Time Task Scheduling Algorithms in Embedded Systems

1. Core Challenges of Real-Time Task Scheduling The real-time requirements of embedded systems dictate that tasks must be completed within strict time limits. This means that scheduling algorithms must consider not only the priority of tasks but also the deadline, execution time, and system resource utilization. Traditional scheduling algorithms such as Rate-Monotonic Scheduling (RMS) and … Read more

ARMv8 Cache Coherency Solutions: MOESI Protocol

ARMv8 Cache Coherency Solutions: MOESI Protocol

1. MOESI State Definitions The ARMv8 architecture uses the MOESI protocol to maintain data consistency across multiple cores. The MOESI protocol describes the state of a shared cache line in L1 Data Cache as follows: M, Modified, Unique Dirty, only exists in the current cache (unique) and the data in this cache line is different … Read more

S32K3xx MCU Software Development Guide: Multi-Core Compilation Optimization and HSE-FW Installation

S32K3xx MCU Software Development Guide: Multi-Core Compilation Optimization and HSE-FW Installation

Abstract Introduction (Overview of the Functional Characteristics and Market Applications of the S32K Series Automotive General-purpose MCU)1. Supported S32DS IDE Versions for S32K3xx MCU Software Development and Downloading and Installation2. Comparison of Debuggers Supporting S32K3xx MCU3. Compiling S32K3xx Multi-Core Projects Using S32DS v3.4 (Independent Compilation Settings and Multiple ELF vs. Single ELF) 3.1 Creating and … Read more

Chapter 18 of FreeRTOS: Multi-Core Scheduling (SMP Extension)

Chapter 18 of FreeRTOS: Multi-Core Scheduling (SMP Extension)

Table of Contents 1. Overview of SMP Architecture 1.1 Basic Concepts 1.2 FreeRTOS-SMP Features 2. Inter-Core Task Migration Experiment 2.1 Experiment Objectives 2.2 Experiment Steps 2.3 Experiment Result Analysis 3. Protection of Shared Resources in Multi-Core Systems 3.1 Common Issues 3.2 Comparison of Solutions 3.3 Example Code 4. Key API Analysis 4.1 SMP Extension APIs … Read more

Zephyr RTOS on RK3568 Solution Merged into the Official Zephyr Community

Zephyr RTOS on RK3568 Solution Merged into the Official Zephyr Community

In November 2023, the Hunan University Embedded and Network Computing Key Laboratory of Hunan Province’s Zephyr RTOS on RK3568 solution has been merged into the official Zephyr community, making it the first domestic solution (the second globally) to support multi-core ARMv8 architecture processor board patch, enabling support for the Firefly ROC-RK3568-PC development board, as shown … Read more