Tag

CPU Selection

1 views collected around this technical thread.

OPPO Kernel Craftsman
OPPO Kernel Craftsman
Nov 11, 2022 · Operations

Linux Real-Time Thread CPU Selection Process

The article details Linux’s real‑time thread CPU‑selection process, explaining how priorities (0‑99 for rt, 100‑139 for CFS) set the sched_class, how functions like select_task_rq_rt, find_lowest_rq, cpupri_find_fitness and __cpupri_find build a candidate CPU mask, and how the final CPU is chosen by previous affinity, domain order, wake‑up CPU or random selection, while warning that excessive rt tasks can increase power use and cause scheduling delays.

CPU SelectionKernelRT-Thread
0 likes · 10 min read
Linux Real-Time Thread CPU Selection Process