amanusk / s-tui

Terminal-based CPU stress and monitoring utility
https://amanusk.github.io/s-tui/
GNU General Public License v2.0
4.14k stars 141 forks source link

The idle frequency show by cpupower and s-tui not same. #197

Open edisonchan opened 2 years ago

edisonchan commented 2 years ago

Step 1: Describe your environment

Step 2: Describe the problem:

Observed Results:

cpupower 5.19:

image

s-tui:

image

Step 3: Reproduce the problem:

Steps to reproduce:

  1. set CPU ratio to 40.x, sync All core, disable C-state in BIOS
  2. boot in to ubuntu, and set cpu power mode to performance: echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
  3. run cpupower: watch -n 1 sudo cpupower monitor
  4. run stui: s-tui
ronny-rentner commented 1 year ago

I have a similar issue with s-tui vs i7z showing different frequencies.

AlexeiScherbakov commented 1 year ago

On Rock PI 4 s-tui display correct frequencies, but on Raspberry PI 4 600 MHz shows as 1500 MHz:

Frequency      [MHz]|                                   Util [%]
 Avg           1500.0|100       Avg     |    Core 0    |    Core 1    |    Core 2    |    Core 3
 Core 0        1500.0|                  |              |              |              |
 Core 1        1500.0|                  |              |              |              |
 Core 2        1500.0|                  |              |              |              |
 Core 3        1500.0|                  |              |              |              |
                     |                  |              |              |              |
 Util             [%]|                  |              |              |              |
 Avg              3.2|                  |              |              |              |
 Core 0           0.0|                  |              |              |              |
pi@pi:/sys/devices/system/cpu $ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
600000
pi@pi:/sys/devices/system/cpu $ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
600000
pi@pi:/sys/devices/system/cpu $ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
1500000
pi@pi:/sys/devices/system/cpu $