Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4474

Advanced users • Dynamic CPU Core Management on Raspberry Pi 4: Enabling Cores Based on Load

$
0
0
I'm working on a dynamic CPU core management system for my Raspberry Pi 4 Model B. My goal is to initially disable three cores (core1, core2, core3) and keep only core0 active. When a heavy task runs and exceeds a certain CPU usage threshold, the system should automatically enable additional cores one by one as needed. Once the load decreases, the extra cores should be disabled again to save power. I'm looking for the best approach to achieve this—whether through CPU hotplugging (/sys/devices/system/cpu/cpuX/online), frequency scaling (cpufreq), or possibly modifying the Linux scheduler. Has anyone experimented with a similar dynamic CPU scaling method on the Raspberry Pi? Any insights or suggestions would be greatly appreciated!

Statistics: Posted by anis_ghabarou — Fri Jan 31, 2025 9:12 pm — Replies 1 — Views 52



Viewing all articles
Browse latest Browse all 4474

Trending Articles