arch_scale_cpu_capacity(9)
π
arch_scale_cpu_capacity(9) π
okay bestie, welcome to the Kernel API Manual page for arch_scale_cpu_capacity β yes, we're getting into CPU capacity scale factors and it's gonna be iconic β¨
β¨ NAME β¨
arch_scale_cpu_capacity β get the capacity scale factor of a given CPU. That's the whole assignment, no cap. π
π¦ SYNOPSIS π¦
unsigned long arch_scale_cpu_capacity (int cpu );
π ARGUMENTS π
cpuβ the CPU in question. Like, which CPU are we talking about? That one. π
πΈ RETURN πΈ
You get the CPU scale factor normalized against SCHED_CAPACITY_SCALE, i.e. the formula down in DESCRIPTION. Normalized, bestie β that's the vibe. β¨
π₯ DESCRIPTION π₯
Here's the actual shape of it, no cap:
max_perf(cpu) ----------------------------- * SCHED_CAPACITY_SCALE
max(max_perf(c) : c in CPUs)
It's giving "compare this CPU's max_perf(cpu) against the max max_perf(c) across all CPUs in CPUs, then scale it by SCHED_CAPACITY_SCALE." The formula ate and left no crumbs π
π SEE ALSO π
- Kernel file
./include/linux/sched/topology.hβ go peek, iykyk π«Ά
xoxo, your girl π β source/version: ./include/linux/sched; dated October 2026; manual page: arch_scale_cpu_capacity(9) β periodt π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms