Tagged articles
4 articles
Page 1 of 1
OPPO Kernel Craftsman
OPPO Kernel Craftsman
May 23, 2025 · Fundamentals

Why Android Threads Stall: Inside Linux CFS, RT, Fair Scheduling and cgroup Limits

This article explains why many Android threads appear idle despite free CPU cycles, by dissecting Linux's five scheduler classes, the distinction between RT and fair scheduling, the role of virtual runtime and weight, and how cgroup cpu.shares can reshape resource distribution, supported by concrete systrace experiments.

Android performanceCFSLinux scheduler
0 likes · 17 min read
Why Android Threads Stall: Inside Linux CFS, RT, Fair Scheduling and cgroup Limits
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jan 6, 2023 · Fundamentals

CFS Group Scheduling: Purpose, Configuration, and Kernel Implementation Details

The article explains why Linux’s Completely Fair Scheduler introduced group scheduling, how Android configures task groups via cpu.shares and Process.java, and details the kernel structures (task_group, sched_entity, cfs_rq) and algorithms for weight calculation, load measurement, propagation, and hierarchical load balancing.

CFS schedulingLinux kernelcgroup
0 likes · 28 min read
CFS Group Scheduling: Purpose, Configuration, and Kernel Implementation Details