Package: coreutils Version: 9.4-3.1 CPU: AMD Ryzen 7 6800U with Radeon Graphics Kernel version: 6.7.12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1 (2024-04-24) x86_64 GNU/Linux
Too save power, I use the attached script to disable CPU cores, and run it every minute by cron. It depends `nproc` to determine the count of cores currently. When the system is idle, so the CPU cores is 2, and then I start to build kernel with -j16. And 2 more cores are enabled soon, while `nproc` always claims that there are only 2 cores are enabled.
disable-cores.sh
Description: application/shellscript