Tagged articles
45 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Feb 22, 2026 · Fundamentals

Why Simple FIFO Scheduling Fails and How CFS Guarantees Fair CPU Time

The article walks through the evolution of CPU scheduling from a naïve first‑come‑first‑served queue to priority‑based schemes, explains starvation and time‑slice problems, and shows how tracking each task's actual runtime leads to the Completely Fair Scheduler (CFS) with virtual runtime accounting.

CFSCPU schedulingOperating Systems
0 likes · 10 min read
Why Simple FIFO Scheduling Fails and How CFS Guarantees Fair CPU Time
Java Tech Enthusiast
Java Tech Enthusiast
Feb 20, 2026 · Fundamentals

Why Simple FIFO Scheduling Fails and How CFS Achieves Fair CPU Allocation

The article walks through the evolution of CPU scheduling—from naïve first‑come‑first‑served queues to priority‑based, time‑slice, and finally the Completely Fair Scheduler—illustrating each approach with code, highlighting pitfalls like starvation, and showing how tracking virtual runtime yields fair and responsive task execution.

CFSCPU schedulingFairness
0 likes · 10 min read
Why Simple FIFO Scheduling Fails and How CFS Achieves Fair CPU Allocation
macrozheng
macrozheng
Feb 12, 2026 · Fundamentals

How Time Slices, Hyper‑Threading, and Context Switching Enable Multithreading

The article explains why modern CPUs, even single‑core ones, can run multiple threads by using short time slices, hyper‑threading hardware, and context‑switch mechanisms, and it discusses the costs, Linux monitoring tools, scheduling strategies, and practical ways to reduce switching overhead.

CPU schedulingHyper-threadingOperating Systems
0 likes · 10 min read
How Time Slices, Hyper‑Threading, and Context Switching Enable Multithreading
Deepin Linux
Deepin Linux
Jan 3, 2026 · Operations

Boost Linux Performance: Master CPU Affinity and Scheduling

This article explains the fundamentals of Linux CPU affinity, compares soft and hard binding, shows how to use taskset, sched_setaffinity, numactl and cgroup cpuset, and provides real‑world case studies for servers, game frameworks, Nginx and Hadoop clusters.

CPU affinityCPU schedulingLinux performance
0 likes · 36 min read
Boost Linux Performance: Master CPU Affinity and Scheduling
Alibaba Cloud Infrastructure
Alibaba Cloud Infrastructure
Dec 9, 2025 · Cloud Native

How to Detect and Resolve Kernel Memory & CPU Latency in Kubernetes Clusters

In cloud‑native Kubernetes environments, resource over‑commit and mixed deployments can cause kernel‑level memory reclaim and CPU scheduling delays that manifest as application jitter, and this article explains how to visualize, diagnose, and remediate those delays using the SysOM exporter and related metrics.

CPU schedulingKubernetesMemory reclaim
0 likes · 13 min read
How to Detect and Resolve Kernel Memory & CPU Latency in Kubernetes Clusters
IT Services Circle
IT Services Circle
Nov 26, 2025 · Fundamentals

Why Your CPU Hits 100% and How to Rescue It

The article explains how CPU scheduling works, why tasks can overload the processor, outlines common pitfalls such as dead loops, lock contention, memory leaks, priority inversion and context‑switch overload, and provides a step‑by‑step troubleshooting and remediation guide for Linux systems.

CPU schedulingLinux troubleshootingThread analysis
0 likes · 17 min read
Why Your CPU Hits 100% and How to Rescue It
NiuNiu MaTe
NiuNiu MaTe
Nov 26, 2025 · Fundamentals

How to Diagnose and Fix 100% CPU Overload with Smart Scheduling

This guide explains how CPU scheduling works, why 100% CPU usage occurs, and provides a step‑by‑step troubleshooting workflow—including monitoring with top/vmstat, identifying offending threads, analyzing stack traces, and applying both quick‑fix and long‑term remediation techniques—to keep systems stable.

CPU schedulingLinuxPerformance debugging
0 likes · 19 min read
How to Diagnose and Fix 100% CPU Overload with Smart Scheduling
Alibaba Cloud Observability
Alibaba Cloud Observability
Nov 10, 2025 · Cloud Native

How to Diagnose and Fix Memory & CPU Latency Issues in Cloud‑Native Kubernetes Clusters

This article explains why resource over‑commit in cloud‑native Kubernetes clusters leads to memory and CPU latency, shows how to visualize kernel delays with the ack‑sysom‑monitor exporter, outlines common latency scenarios, and provides step‑by‑step troubleshooting and remediation guidance.

CPU schedulingCloud NativeKubernetes
0 likes · 11 min read
How to Diagnose and Fix Memory & CPU Latency Issues in Cloud‑Native Kubernetes Clusters
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 4, 2025 · Cloud Native

How to Pinpoint and Resolve Kernel‑Level Latency in Cloud‑Native Kubernetes Clusters

This article explains how resource oversubscription in cloud‑native Kubernetes environments leads to kernel‑level memory reclaim and CPU scheduling delays, outlines common delay scenarios, demonstrates metric‑driven diagnosis with the ack‑sysom‑monitor exporter, and provides practical solutions to mitigate application jitter.

CPU schedulingCloud Native MonitoringKubernetes
0 likes · 14 min read
How to Pinpoint and Resolve Kernel‑Level Latency in Cloud‑Native Kubernetes Clusters
Alibaba Cloud Infrastructure
Alibaba Cloud Infrastructure
Sep 22, 2025 · Cloud Native

How to Detect and Fix Kernel‑Level Latency Jitters in Kubernetes

In cloud‑native clusters, resource over‑commit and mixed deployments cause kernel‑level delays such as memory‑reclaim and CPU scheduling latency, which propagate to applications as jitter; this article explains how to visualize, diagnose, and mitigate these issues using the ACK‑SysOM exporter and related monitoring dashboards.

CPU schedulingLatencyMemory reclaim
0 likes · 9 min read
How to Detect and Fix Kernel‑Level Latency Jitters in Kubernetes
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jun 16, 2025 · Fundamentals

Why Energy‑Aware Scheduling Falls Short: Inside CPU Frequency, Power Modeling, and Scheduler Limits

This article examines the challenges of Energy Aware Scheduling on big‑LITTLE CPUs, detailing how frequency prediction, power calculation, cache hierarchy, out‑of‑order execution, and branch prediction affect task placement decisions, and why the resulting models often remain inaccurate and unreliable.

CPU schedulingenergy aware schedulingfrequency prediction
0 likes · 14 min read
Why Energy‑Aware Scheduling Falls Short: Inside CPU Frequency, Power Modeling, and Scheduler Limits
macrozheng
macrozheng
May 16, 2025 · Fundamentals

Why More Threads Can Slow Down Your Java App—and How to Optimize Context Switching

This article explains how CPU time slices, hyper‑threading, and context‑switching affect multithreaded performance, outlines the costs of thread switches, and offers practical strategies such as lock‑free programming, CAS, reducing thread count, and using coroutines to improve efficiency.

CPU schedulingHyper-threadingJava concurrency
0 likes · 11 min read
Why More Threads Can Slow Down Your Java App—and How to Optimize Context Switching
Deepin Linux
Deepin Linux
May 5, 2025 · Fundamentals

An Overview of CPU Scheduling Algorithms and Their Practical Applications

CPU scheduling, a core component of operating systems, determines how processes share CPU resources, and this article explains preemptive vs non‑preemptive scheduling, key evaluation metrics, classic algorithms such as FCFS, SJF, RR, priority, multilevel queues, and guidance on selecting suitable algorithms for various system scenarios.

CPU schedulingOperating SystemsScheduling Algorithms
0 likes · 33 min read
An Overview of CPU Scheduling Algorithms and Their Practical Applications
Top Architecture Tech Stack
Top Architecture Tech Stack
Mar 27, 2025 · Fundamentals

Understanding Time Slices, Hyper‑Threading, and Thread Context Switching

The article explains how modern multi‑core CPUs use time slices, hyper‑threading, and various types of context switches to manage multithreaded workloads, discusses the performance costs of switching, and offers practical optimization strategies such as lock‑free programming, appropriate thread counts, and coroutine usage.

CPU schedulingHyper-threadingcontext switching
0 likes · 9 min read
Understanding Time Slices, Hyper‑Threading, and Thread Context Switching
Linux Code Review Hub
Linux Code Review Hub
Feb 12, 2025 · Fundamentals

Stop Being a Linux Kernel Code Parrot: Embrace Reality‑First Understanding

The author, with over two decades of development experience, argues that many learners treat Linux kernel code as a rote exercise instead of mapping real‑world scheduling problems to code, and outlines essential questions about task_struct management, scheduling policies, CPU placement, fairness, and universal scheduler design.

CPU schedulingLinux kernelOperating Systems
0 likes · 5 min read
Stop Being a Linux Kernel Code Parrot: Embrace Reality‑First Understanding
Linux Kernel Journey
Linux Kernel Journey
Dec 25, 2024 · Fundamentals

Stop Being a Linux Kernel Code Parrot: Think Like a Scheduler Designer

The author, with over two decades of development experience, argues that learning the Linux kernel requires understanding real-world scheduling problems rather than merely copying kernel code, and outlines key questions about task_struct management, priority, preemption, CPU placement, fairness, and universal scheduler design.

CPU schedulingLinux kernelScheduler
0 likes · 4 min read
Stop Being a Linux Kernel Code Parrot: Think Like a Scheduler Designer
Architecture Digest
Architecture Digest
Nov 27, 2024 · Fundamentals

Understanding Thread Context Switching, Time Slices, and Scheduling in Modern CPUs

The article explains how multi‑core CPUs use time slices and hyper‑threading to run multiple threads, describes the mechanics and costs of thread context switching, compares preemptive and cooperative scheduling, and offers practical tips for reducing switching overhead and optimizing thread counts.

CPU schedulingHyper-threadingcontext switching
0 likes · 10 min read
Understanding Thread Context Switching, Time Slices, and Scheduling in Modern CPUs
OPPO Kernel Craftsman
OPPO Kernel Craftsman
May 31, 2024 · Operations

An Overview of the Extensible Scheduler Class (sched_ext) in the Linux Kernel

The Linux kernel’s extensible scheduler class sched_ext introduces a new ext_sched_class with eBPF‑driven callbacks and dispatch queues, allowing developers to plug custom scheduling policies via struct sched_ext_ops without recompiling the kernel, while integrating into the existing hierarchy and exposing trade‑offs such as central‑CPU load and community adoption challenges.

CPU schedulingeBPFextensible scheduler
0 likes · 16 min read
An Overview of the Extensible Scheduler Class (sched_ext) in the Linux Kernel
dbaplus Community
dbaplus Community
May 19, 2024 · Cloud Computing

What Is a vCPU? Comparing Virtual and Physical CPUs and Calculating Allocation

This article explains what a vCPU is, how it differs from a physical CPU, the relationship between them, methods for calculating available vCPU counts based on sockets, cores, and threads, and outlines typical allocation, scheduling, and application scenarios in cloud and virtualization environments.

CPU schedulingVirtualizationresource allocation
0 likes · 12 min read
What Is a vCPU? Comparing Virtual and Physical CPUs and Calculating Allocation
Liangxu Linux
Liangxu Linux
Nov 29, 2023 · Fundamentals

Inside Linux Cgroup CPU Subsystem: How Containers Get CPU Time Controlled

This article provides a detailed, code‑driven explanation of how Linux cgroup’s CPU subsystem manages container CPU usage, covering cgroup creation, limit configuration, kernel object relationships, scheduler integration, bandwidth enforcement, and the role of period and slack timers.

CPU schedulingLinux kernelcfs_bandwidth
0 likes · 27 min read
Inside Linux Cgroup CPU Subsystem: How Containers Get CPU Time Controlled
Programmer DD
Programmer DD
Aug 1, 2023 · Fundamentals

Why Thread.Sleep(0) Can Change Your App’s Responsiveness – The Real Reason

Thread.Sleep pauses a thread for a specified time, but its behavior depends on OS scheduling; Sleep(0) yields the CPU to let other threads run, while Sleep(1000) doesn’t guarantee immediate wake‑up, illustrating how time‑slice and priority‑based scheduling affect thread execution.

CPU schedulingc++preemptive multitasking
0 likes · 10 min read
Why Thread.Sleep(0) Can Change Your App’s Responsiveness – The Real Reason
StarRocks
StarRocks
Feb 10, 2023 · Databases

How StarRocks Achieves Fine-Grained Resource Isolation for Multi‑Tenant Workloads

StarRocks introduces user‑space scheduling with resource groups and classifiers to provide hard memory isolation, soft CPU/IO isolation, short‑query groups, concurrency limits, and large‑query circuit breaking, balancing isolation and utilization while supporting multi‑tenant workloads and future serverless scenarios.

CPU schedulingStarRocksmemory hard limit
0 likes · 17 min read
How StarRocks Achieves Fine-Grained Resource Isolation for Multi‑Tenant Workloads
Java Architect Essentials
Java Architect Essentials
Nov 4, 2022 · Fundamentals

Understanding CPU Time Slices, Hyper‑Threading, and Thread Context Switching

This article explains CPU time slicing, hyper‑threading, and thread context switching, describing how operating systems schedule multiple tasks, the costs of switches, ways to view them on Linux, and practical techniques to reduce overhead and choose optimal thread counts for different workloads.

CPU schedulingHyper-threadingthread context switching
0 likes · 10 min read
Understanding CPU Time Slices, Hyper‑Threading, and Thread Context Switching
Open Source Linux
Open Source Linux
Aug 9, 2022 · Fundamentals

How Docker Uses Linux cgroups to Allocate CPU Resources

This article explains how Docker containers rely on Linux cgroups and namespaces for resource isolation, details CPU share and quota scheduling, and shows practical commands to inspect cgroup assignments, helping developers optimize container performance on Kubernetes.

CPU schedulingDockerKubernetes
0 likes · 16 min read
How Docker Uses Linux cgroups to Allocate CPU Resources
Liangxu Linux
Liangxu Linux
Jun 1, 2022 · Fundamentals

How HW‑RTOS Eliminates OS Overhead for Hard Real‑Time Performance

This article explains the real‑time requirements of industrial control, the limitations of traditional OS kernels, and how Linux RT‑Preempt, Xenomai dual‑kernel, and especially hardware‑assisted RTOS (HW‑RTOS) can dramatically reduce latency, interrupt disable periods, and API execution jitter to achieve hard‑real‑time behavior.

CPU schedulingHardwareRTOS
0 likes · 30 min read
How HW‑RTOS Eliminates OS Overhead for Hard Real‑Time Performance
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 29, 2022 · Fundamentals

Understanding RTG (Related Thread Group) in the Linux Kernel: Core Selection, Frequency Aggregation, and Busy Hysteresis

The article explains Linux’s Related Thread Group (RTG) mechanism—its struct definition, default Android grouping, core‑selection logic that boosts whole groups to big‑core clusters, load‑aggregation for DCVS frequency decisions, and the newer busy‑hysteresis feature that delays low‑power entry to improve performance and power efficiency.

CPU schedulingDCVSLinux kernel
0 likes · 15 min read
Understanding RTG (Related Thread Group) in the Linux Kernel: Core Selection, Frequency Aggregation, and Busy Hysteresis
Java Backend Technology
Java Backend Technology
Mar 5, 2022 · Fundamentals

Uncovering Thread.Sleep: How Sleep Affects CPU Scheduling and App Performance

Thread.Sleep pauses a thread for a specified duration, signaling the OS to exclude it from CPU competition, and Thread.Sleep(0) forces an immediate rescheduling, which can improve UI responsiveness by yielding control to other threads; the article explains these behaviors using time‑slice and preemptive scheduling analogies.

CPU schedulingOS fundamentalsconcurrency
0 likes · 10 min read
Uncovering Thread.Sleep: How Sleep Affects CPU Scheduling and App Performance
iQIYI Technical Product Team
iQIYI Technical Product Team
Feb 18, 2022 · Cloud Native

CPU Share Syncer: Enabling High‑Priority Task CPU Preemption in iQIYI Video Production Kubernetes Clusters

iQIYI’s cpu‑share‑syncer daemon runs on every node, reads a pod’s iqiyi.com/cpu‑share annotation, updates the pod’s cpu.shares after disabling the Kubernetes CPU CFS quota, and lets high‑priority video‑production pods pre‑empt CPU from lower‑priority pods, significantly speeding task execution.

CPU schedulingDaemonSetHigh priority tasks
0 likes · 13 min read
CPU Share Syncer: Enabling High‑Priority Task CPU Preemption in iQIYI Video Production Kubernetes Clusters
Tencent Architect
Tencent Architect
Sep 10, 2021 · Cloud Native

BT Scheduler for Absolute Preemption: Boosting CPU Utilization and QoS in Cloud‑Native Environments

This article analyzes the limitations of the Linux Completely Fair Scheduler (CFS) for high‑priority workloads, introduces Tencent's custom offline BT scheduler that provides absolute preemption, and presents experimental results showing significant improvements in latency, CPU utilization, and carbon‑reduction for cloud‑native services.

BT schedulerCFSCPU scheduling
0 likes · 10 min read
BT Scheduler for Absolute Preemption: Boosting CPU Utilization and QoS in Cloud‑Native Environments
Liangxu Linux
Liangxu Linux
Mar 27, 2021 · Operations

Understanding Linux CPU Scheduling and Interrupt Handling

This article explains Linux's sophisticated scheduling system, CPU context switching, and the architecture of hardware and software interrupts, detailing how the kernel manages CPU resources, interrupt contexts, and bottom‑half mechanisms to optimize performance and stability.

CPU affinityCPU schedulingLinux
0 likes · 20 min read
Understanding Linux CPU Scheduling and Interrupt Handling
macrozheng
macrozheng
Jun 10, 2020 · Fundamentals

What Does Thread.Sleep(0) Actually Do? Unveiling Thread Scheduling Basics

This article explains the purpose of Thread.Sleep, clarifies common misconceptions about its timing behavior, compares Unix time‑slice and Windows preemptive scheduling using a cake‑eating analogy, and shows why Thread.Sleep(0) can trigger an immediate CPU‑competition reschedule to improve responsiveness.

CPU schedulingOperating Systempreemptive multitasking
0 likes · 10 min read
What Does Thread.Sleep(0) Actually Do? Unveiling Thread Scheduling Basics
Java Backend Technology
Java Backend Technology
Jun 4, 2020 · Fundamentals

What Really Happens When You Call Thread.Sleep(0)? OS Scheduling Explained

Thread.Sleep pauses a thread for a specified time, influencing CPU competition; understanding its behavior—including the surprising effects of Sleep(0) and how operating systems schedule threads via time‑slicing or preemptive strategies—reveals why Sleep can affect responsiveness and why it’s used in tight loops.

CPU schedulingOperating Systemthread-sleep
0 likes · 10 min read
What Really Happens When You Call Thread.Sleep(0)? OS Scheduling Explained
DevOps
DevOps
Apr 3, 2016 · Fundamentals

The Life of a Thread: A Narrative on Thread Pools, Locks, and Deadlocks

A metaphorical story follows a newly created thread as it learns about extracting request parameters, performing login, handling CPU scheduling, using caches, encountering deadlocks, and ultimately witnessing a system reboot, illustrating core concepts of multithreading, concurrency control, and thread‑pool lifecycle.

CPU schedulingLocksconcurrency
0 likes · 12 min read
The Life of a Thread: A Narrative on Thread Pools, Locks, and Deadlocks
MaGe Linux Operations
MaGe Linux Operations
Oct 13, 2015 · Fundamentals

Linux CPU Scheduling Explained: Context Switches, Run Queues & Monitoring

This article outlines how the Linux CPU scheduler manages threads and interrupts, explains context switches, run queue length, CPU utilization metrics, typical performance thresholds, and introduces monitoring tools like vmstat and mpstat, followed by real‑world troubleshooting examples.

CPU schedulingLinux performanceMonitoring Tools
0 likes · 6 min read
Linux CPU Scheduling Explained: Context Switches, Run Queues & Monitoring
MaGe Linux Operations
MaGe Linux Operations
Nov 14, 2014 · Operations

Master Linux CPU Scheduling: Using nice, cpulimit, and cgroups

This guide explains how Linux manages CPU scheduling fairness and demonstrates three practical methods—nice, cpulimit, and control groups—to prioritize, limit, or allocate CPU resources for processes, complete with compilation steps, command examples, and performance observations using top.

CPU schedulingLinuxResource Management
0 likes · 10 min read
Master Linux CPU Scheduling: Using nice, cpulimit, and cgroups