Tagged articles
5 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Jun 13, 2025 · Operations

How Linux Kernel Balances CPU Load Across Multicore Systems

This article explains the Linux kernel's CPU load‑balancing mechanism, covering concepts such as CPU load, balancing strategies, scheduling domains, groups, the PELT algorithm, CFS scheduling, trigger points, and practical code examples for both regular and real‑time tasks.

CFSCPU load balancingLinux
0 likes · 40 min read
How Linux Kernel Balances CPU Load Across Multicore Systems
Linux Kernel Journey
Linux Kernel Journey
Feb 16, 2025 · Fundamentals

Understanding Multi‑Core Hardware Topology and Linux sched_domain

The article explains how Linux kernel scheduling uses a hierarchical topology—balancing load and preserving cache affinity—by mapping real‑world multi‑core hardware structures such as sockets, dies, clusters, and NUMA nodes to sched_domain and sched_group, and shows how to inspect and tune this layout with CONFIG_SCHED_DEBUG and QEMU simulation.

KernelLinuxNUMA
0 likes · 9 min read
Understanding Multi‑Core Hardware Topology and Linux sched_domain
Linux Code Review Hub
Linux Code Review Hub
Feb 12, 2025 · Fundamentals

Understanding Multi‑core Hardware Architecture and Linux sched_domain

The article explains how Linux builds sched_domain and sched_group hierarchies based on physical CPU topology—sockets, dies, clusters, and NUMA nodes—illustrating load‑balancing (BALANCE) versus affinity (AFFINE) with concrete examples, kernel code references, and QEMU‑based experiments.

CPU topologyKernel SchedulingNUMA
0 likes · 9 min read
Understanding Multi‑core Hardware Architecture and Linux sched_domain
Refining Core Development Skills
Refining Core Development Skills
Mar 27, 2022 · Fundamentals

Understanding CPU Load Balancing and Scheduler Domains in Linux

This article explains the concept of CPU load balancing, the hierarchical scheduler domain and group structures in a multi‑core SoC, when and how the Linux kernel performs periodic, no‑hz, and idle load‑balancing, and outlines the step‑by‑step algorithm used to migrate tasks for balanced system performance.

load balancingsched_domain
0 likes · 9 min read
Understanding CPU Load Balancing and Scheduler Domains in Linux
OPPO Kernel Craftsman
OPPO Kernel Craftsman
May 29, 2020 · Fundamentals

Task Placement in the Linux CFS Scheduler: Scenarios, Code Framework, and Energy‑Aware Scheduling

The article explains how the Linux CFS scheduler places newly created or awakened tasks—during fork, exec, or wake‑up—by using sched domains and flags to invoke select_task_rq_fair, which then chooses among energy‑aware, least‑loaded, or idle‑sibling CPUs based on capacity, energy impact, and affinity.

CPU load balancingLinux kernelsched_domain
0 likes · 16 min read
Task Placement in the Linux CFS Scheduler: Scenarios, Code Framework, and Energy‑Aware Scheduling