Originally posted by clouddrop
View Post
Announcement
Collapse
No announcement yet.
New AMD P-State Driver Headlines The Power Management Updates For Linux 5.17
Collapse
X
-
Originally posted by MadCatX View PostAccording to some AMD people the only benefit of the AMD P-State driver is a fine-grained control over the CPU frequency. It is supposed to help in situations where you have some kind of power vs. performance target that you need to hit. I guess that it will mostly benefit server farms with arrays of EPYC servers; consumer-grade laptops or workstations won't see any meaningful difference.
CPPC gives you a continuum of frequencies to select from while the ACPI pstate interface gives you 3 hardcoded frequencies. For example, say your system has 3 hardcoded ACPI pstate frequencies (1Ghz, 2Ghz, 3Ghz). If your work only needs 2.1Ghz to hit it's deadline, you can do that with CPPC. However with the ACPI pstate interface, you will always be in the 3Ghz state. You absolute performance will be higher, but you'll also be burning more power.
All of that said, it really all comes down to the algorithm used by the governor and how well it can match work to performance requirements.
- Likes 5
Leave a comment:
-
I patched my kernel manually but there is no cppc feature flag listed for my 5950x either although the module can be loaded. /sys/devices/system/cpu/cpuX/acpi_cppc/ is populated and the 'highest_perf" value corresponds to what I saw with a Windows installation. When using i.e. schedutil I see my cores clocking down to ~750MHz according to cyring's CoreFreq which they do not when using acpi-cpufreq.
- Likes 3
Leave a comment:
-
Originally posted by Random_Jerk View Post
Thank you for the update. The CPPC flag itself doesn't show up for me inspite of turnng on CPPC in the Bios. This is for a 5950x. I use the xanmod kernel and not sure if is p-state patched or not.
Irrespective of the mechanism on how to make it work, I was wondering if this will improve schedutil or ondemand governors and their frequency response. I have Windows and other Linux KVM/QEMU VMs runnng with GPU passed through, and I have to switch to Performance governor on the host. Schedutil or Ondemand are horrible for VM performance, and I was hoping this could a good remedy to fix it.
Leave a comment:
-
Originally posted by skeevy420 View Post
We're waiting to see. What I do know is that enabling it didn't hurt anything; that I noticed no negative side effects from using it. I'm in the process of changing distributions so I'm not in the position to comment any more than that.
Well, I will add that if you have the cppc CPU flag, "cat /proc/cpuinfo | grep cppc" you probably only need to set "amd_pstate.enabled=1" to your kernel command line. If that doesn't work or you don't have the flag, try adding "amd_pstate.shared_memory=1". Not sure if this is the expected behavior, but "cppc" only shows up on an amd-pstate patched kernel on my PC.
From there, set the governor to "ondemand" or "schedutil". The amd-pstate docs mention that it's primarily geared towards those governors.
Just thought I'd share my 2 cents worth of amd-pstate usage.
Irrespective of the mechanism on how to make it work, I was wondering if this will improve schedutil or ondemand governors and their frequency response. I have Windows and other Linux KVM/QEMU VMs runnng with GPU passed through, and I have to switch to Performance governor on the host. Schedutil or Ondemand are horrible for VM performance, and I was hoping this could a good remedy to fix it.
- Likes 1
Leave a comment:
-
Originally posted by Random_Jerk View PostWhile Micheal keeps claiming that this new driver is somehow really good or improves power efficiency, the results he posted earlier don't show much of a difference. Am I missing some nuance that makes this as good as Micheal claims it to be? Or is there some new version of this driver in the ether that drastically improves power management or performance per watt?
Well, I will add that if you have the cppc CPU flag, "cat /proc/cpuinfo | grep cppc" you probably only need to set "amd_pstate.enabled=1" to your kernel command line. If that doesn't work or you don't have the flag, try adding "amd_pstate.shared_memory=1". Not sure if this is the expected behavior, but "cppc" only shows up on an amd-pstate patched kernel on my PC.
From there, set the governor to "ondemand" or "schedutil". The amd-pstate docs mention that it's primarily geared towards those governors.
Just thought I'd share my 2 cents worth of amd-pstate usage.
- Likes 5
Leave a comment:
-
Originally posted by Random_Jerk View PostWhile Micheal keeps claiming that this new driver is somehow really good or improves power efficiency, the results he posted earlier don't show much of a difference. Am I missing some nuance that makes this as good as Micheal claims it to be? Or is there some new version of this driver in the ether that drastically improves power management or performance per watt?
- Likes 1
Leave a comment:
-
While Micheal keeps claiming that this new driver is somehow really good or improves power efficiency, the results he posted earlier don't show much of a difference. Am I missing some nuance that makes this as good as Micheal claims it to be? Or is there some new version of this driver in the ether that drastically improves power management or performance per watt or frequency scaling?Last edited by Random_Jerk; 11 January 2022, 01:06 PM.
- Likes 1
Leave a comment:
-
New AMD P-State Driver Headlines The Power Management Updates For Linux 5.17
Phoronix: New AMD P-State Driver Headlines The Power Management Updates For Linux 5.17
The power management subsystem updates were sent out yesterday and already mainlined for the in-development Linux 5.17 kernel. Most notable with the power management changes for this new version of the Linux kernel is the introduction of the AMD P-State driver developed in cooperation with Valve for the Steam Deck but stands to help CPU/SoC power efficiency across Zen 2 and newer hardware...
Tags: None
- Likes 2
Leave a comment: