[SOLVED] C-STATES not working

lps90

Member
May 21, 2020
168
6
23
Hi

I just installed the latest proxmox version in a i9 9900k server,
and i am seeing the cpu is always at 5.0Ghz in all cores.
I dont want the frequency stuck at 5.0Ghz, i want c-states working.
How can i solve this problem?

C-States enabled in bios and no overclock!
(Asus rog strix z390 board)

Thanks for your time..
 

cromatn5

Active Member
Mar 26, 2018
69
8
28
36
France
You must install cpufrequtils and set GOVERNOR="powersave"
It's what i have done to limit cpu temp and power

cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Veuillez rapportez les erreurs et les bogues à cpufreq@vger.kernel.org, s'il vous plait.
analyse du CPU 0 :
pilote : intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 4294.55 ms.
limitation matérielle : 800 MHz - 3.90 GHz
régulateurs disponibles : performance, powersave
tactique actuelle : la fréquence doit être comprise entre 800 MHz et 3.90 GHz.
Le régulateur "powersave" est libre de choisir la vitesse
dans cette plage de fréquences.
la fréquence actuelle de ce CPU est 2.47 GHz.
analyse du CPU 1 :
pilote : intel_pstate
CPUs which run at the same hardware frequency: 1
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 4294.55 ms.
limitation matérielle : 800 MHz - 3.90 GHz
régulateurs disponibles : performance, powersave
tactique actuelle : la fréquence doit être comprise entre 800 MHz et 3.90 GHz.
Le régulateur "powersave" est libre de choisir la vitesse
dans cette plage de fréquences.
la fréquence actuelle de ce CPU est 2.52 GHz.
analyse du CPU 2 :
pilote : intel_pstate
CPUs which run at the same hardware frequency: 2
CPUs which need to have their frequency coordinated by software: 2
maximum transition latency: 4294.55 ms.
limitation matérielle : 800 MHz - 3.90 GHz
régulateurs disponibles : performance, powersave
tactique actuelle : la fréquence doit être comprise entre 800 MHz et 3.90 GHz.
Le régulateur "powersave" est libre de choisir la vitesse
dans cette plage de fréquences.
la fréquence actuelle de ce CPU est 2.47 GHz.
analyse du CPU 3 :
pilote : intel_pstate
CPUs which run at the same hardware frequency: 3
CPUs which need to have their frequency coordinated by software: 3
maximum transition latency: 4294.55 ms.
limitation matérielle : 800 MHz - 3.90 GHz
régulateurs disponibles : performance, powersave
tactique actuelle : la fréquence doit être comprise entre 800 MHz et 3.90 GHz.
Le régulateur "powersave" est libre de choisir la vitesse
dans cette plage de fréquences.
la fréquence actuelle de ce CPU est 2.56 GHz.
analyse du CPU 4 :
pilote : intel_pstate
CPUs which run at the same hardware frequency: 4
CPUs which need to have their frequency coordinated by software: 4
maximum transition latency: 4294.55 ms.
limitation matérielle : 800 MHz - 3.90 GHz
régulateurs disponibles : performance, powersave
tactique actuelle : la fréquence doit être comprise entre 800 MHz et 3.90 GHz.
Le régulateur "powersave" est libre de choisir la vitesse
dans cette plage de fréquences.
la fréquence actuelle de ce CPU est 2.63 GHz.
analyse du CPU 5 :
pilote : intel_pstate
CPUs which run at the same hardware frequency: 5
CPUs which need to have their frequency coordinated by software: 5
maximum transition latency: 4294.55 ms.
limitation matérielle : 800 MHz - 3.90 GHz
régulateurs disponibles : performance, powersave
tactique actuelle : la fréquence doit être comprise entre 800 MHz et 3.90 GHz.
Le régulateur "powersave" est libre de choisir la vitesse
dans cette plage de fréquences.
la fréquence actuelle de ce CPU est 2.48 GHz.
analyse du CPU 6 :
pilote : intel_pstate
CPUs which run at the same hardware frequency: 6
CPUs which need to have their frequency coordinated by software: 6
maximum transition latency: 4294.55 ms.
limitation matérielle : 800 MHz - 3.90 GHz
régulateurs disponibles : performance, powersave
tactique actuelle : la fréquence doit être comprise entre 800 MHz et 3.90 GHz.
Le régulateur "powersave" est libre de choisir la vitesse
dans cette plage de fréquences.
la fréquence actuelle de ce CPU est 2.50 GHz.
analyse du CPU 7 :
pilote : intel_pstate
CPUs which run at the same hardware frequency: 7
CPUs which need to have their frequency coordinated by software: 7
maximum transition latency: 4294.55 ms.
limitation matérielle : 800 MHz - 3.90 GHz
régulateurs disponibles : performance, powersave
tactique actuelle : la fréquence doit être comprise entre 800 MHz et 3.90 GHz.
Le régulateur "powersave" est libre de choisir la vitesse
dans cette plage de fréquences.
la fréquence actuelle de ce CPU est 2.56 GHz.
 
  • Like
Reactions: lps90

lps90

Member
May 21, 2020
168
6
23
**JUST TO COMPLETE THIS THREAD**

Edit CPU Freq Usage:

Code:
apt-get install cpufrequtils

apt-get install sysfsutils

nano /etc/sysfs.conf

Copy / paste (In case of a 16 threads cpu with up to 5.0Ghz):

Code:
devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu1/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu2/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu3/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu4/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu5/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu6/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu7/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu8/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu9/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu10/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu11/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu12/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu13/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu14/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu15/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu4/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu5/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu6/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu7/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu8/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu9/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu10/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu11/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu12/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu13/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu14/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu15/cpufreq/scaling_max_freq = 5000000
devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu4/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu5/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu6/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu7/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu8/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu9/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu10/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu11/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu12/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu13/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu14/cpufreq/scaling_min_freq = 800000
devices/system/cpu/cpu15/cpufreq/scaling_min_freq = 800000

Save it...

Apply the configurations so they start at system boot:
Code:
service sysfsutils start


Hope it helps anybody in the future ;)
 
  • Like
Reactions: Oper and matrix

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!