Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: PDP-8 on June 17, 2025, 05:21:56 AM

Title: Poor Man's cpu-frequency scaling monitor
Post by: PDP-8 on June 17, 2025, 05:21:56 AM
After an installation, I like to make sure my multiple cores are properly frequency scaling when idle, and not just being hammered at full speed.

Messing around with certain kernel paramaters on the boot line like messing up acpi on/off etc etc can cause cores to drop or cpu's to run at full speed - so I like to check if I do something weird.

HTOP the 64-bit version, has a display option to also show cpu frequency.  The 32-bit version does not.

So, lets watch it say every second or so in Aterm..

Code: [Select]
watch -n1 grep \"^[c]pu MHz\" /proc/cpuinfo
Resize this window to something small while you do something else.  I only do this normally when introducing TC to new hardware just to make sure.  Or when I pass weird kernel parameters..

I like to watch in real time
Title: Re: Poor Man's cpu-frequency scaling monitor
Post by: neonix on June 17, 2025, 10:10:55 AM
Now you can create text version of conky,. that is not bloatware.
Title: Re: Poor Man's cpu-frequency scaling monitor
Post by: patrikg on June 17, 2025, 10:50:36 AM
Or the old figlet.

Code: [Select]
while true; do date +'%H:%M' | figlet -f small;sleep 60;clear;done
Title: Re: Poor Man's cpu-frequency scaling monitor
Post by: neonix on June 18, 2025, 03:54:04 AM
Orr create fancy conky with figlet.
(https://delightlylinux.wordpress.com/wp-content/uploads/2015/11/toilet01.png)
https://www.howtogeek.com/fun-linux-commands/ (https://www.howtogeek.com/fun-linux-commands/)
https://www.binarytides.com/linux-fun-commands/ (https://www.binarytides.com/linux-fun-commands/)
Title: Re: Poor Man's cpu-frequency scaling monitor
Post by: gadget42 on June 18, 2025, 08:05:07 AM
mostly for the visitors of the future...

referencing previous post with image using "welcome to the colored toilet"

https://delightlylinux.wordpress.com/2015/11/13/colored-text-with-toilet/
Title: Re: Poor Man's cpu-frequency scaling monitor
Post by: PDP-8 on June 22, 2025, 05:07:15 PM
Neonix - thanks for those.

Sometimes I'll get into the mindset of "What if I was left stranded alone on an island with nothing but a coconut, a computer, and tinycorelinux with no internet access?"

Here's where the cli fun begins!  I think it's a healthy mindset break sometimes.