Conky doesn't update status of offlined CPU cores...
I have an AMD Ryzen 5 5625 U CPU with 6 physical cores and 12 SMP cores. I'm running Zorin Core OS 16.2r-1.
I've been testing ways of saving more power on a laptop. Ultimately I'd like to be able to park cores that are idle or below a user-configurable percentage load (the machine idles at 400 MHz CPU frequency, with 6 cores at 0% and 6 cores flipping between 1% and 0%).
I'm using:
for i in $(seq $(getconf _NPROCESSORS_ONLN)); do yes > /dev/null & done
... to impose a load upon all the cores, then I use powertop and powerstat to measure the power drawn.
I kill that via:
sudo killall yes
One thing I noticed is that if I do:
for x in /sys/devices/system/cpu/cpu{1..11}/online; do echo 0 >"$x"; done
... to take all but Core0 offline (Core0 can't be taken offline), while the CPUs are loaded using yes, the cores taken offline don't unload even after yes is killed... the cores remain at 100% (as shown in Conky ${cpubar cpuX 10,115} and ${freq X} and ${cpu cpuX} where 'X' is the CPU number) until I bring those cores back online via:
for x in /sys/devices/system/cpu/cpu{1..11}/online; do echo 1 >"$x"; done
It would appear that Conky loses the ability to update the status of a core when it is taken offline.
Can the devs query /sys/devices/system/cpu/cpuX/online (where X is the CPU core number), and if that query returns '0', then put the CPU frequency to zero, the CPU load to zero, and inside the cpubar, print "Offline"?
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.