<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=6323&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / switch to schedutil governor]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6323</link>
		<description><![CDATA[The most recent posts in switch to schedutil governor.]]></description>
		<lastBuildDate>Sat, 13 Jan 2024 22:00:47 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: switch to schedutil governor]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47260#p47260</link>
			<description><![CDATA[<p>well, after much reading and fumbling around, i now understand what is happening.</p><p>mostly, i mis-read the doc :-(</p><div class="quotebox"><blockquote><div><p>amd-pstate leverages the Linux kernel governors such as schedutil, ondemand, etc. to manage the performance hints which are provided by CPPC hardware functionality that internally follows the hardware specification (for details refer to AMD64 Architecture Programmer&#039;s Manual</p></div></blockquote></div><p>it&#039;s all explained here: <a href="https://docs.kernel.org/admin-guide/pm/amd-pstate.html" rel="nofollow">https://docs.kernel.org/admin-guide/pm/amd-pstate.html</a></p><p>i wanted to try out this new amd-pstate-epp driver to see what advantages it offers over the default<br />ACPI stuff. there are lots of tunables in the ACPI. there are no tunables in amd-pstate-epp - it is all<br />handled by the firmwware. so, in sum, you cannot change the cpufreq governors in amd-pstate-epp.<br />oops!</p><p>primarily, the amd-pstate-epp driver lets the cores idle at 400MHz rather than 2.2GHz in ACPI-mode.<br />this is desirable for always-on machines. you can provide a &#039;hint&#039; to EPP if you want, but the choice is<br />either powersave or performance and, as i discovered, powersave does not really do much beyond<br />the 400MHz idle freq, so performance (the defaut) hint it is.</p><p>in order to &#039;activate&#039; this driver you need to change the BIOS and enable &#039;ACPI CPPC&#039;</p><p>on my MSI BIOS, i made two changes:<br />&#160; &#160;Overclocking -&gt; AMD CBS -&gt; Global C-state Control: Auto -&gt; Enable<br />&#160; &#160;Overclocking -&gt; AMD CBS -&gt; CPPC CTRL: Auto -&gt; Enable</p>]]></description>
			<author><![CDATA[dummy@example.com (grunchy)]]></author>
			<pubDate>Sat, 13 Jan 2024 22:00:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47260#p47260</guid>
		</item>
		<item>
			<title><![CDATA[Re: switch to schedutil governor]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47171#p47171</link>
			<description><![CDATA[<p>My processor frequency is controlled via acpi-cpufreq by the DE TDEPowersave applet.</p><div class="codebox"><pre><code>analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us
  hardware limits: 1.20 GHz - 2.67 GHz
  available frequency steps:  2.67 GHz, 2.67 GHz, 2.53 GHz, 2.40 GHz, 2.27 GHz, 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz
  available cpufreq governors: ondemand performance schedutil
  current policy: frequency should be within 1.20 GHz and 2.67 GHz.
                  The governor &quot;ondemand&quot; may decide which speed to use
                  within this range.
  current CPU frequency: 2.13 GHz (asserted by call to hardware)
  boost state support:
    Supported: yes
    Active: yes
    2933 MHz max turbo 2 active cores
    3200 MHz max turbo 1 active cores
root@AA:/#                 </code></pre></div><p><a href="https://postimages.org/" rel="nofollow"><span class="postimg"><img src="https://i.postimg.cc/ht3zJbx4/18.jpg" alt="18.jpg" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (aluma)]]></author>
			<pubDate>Wed, 10 Jan 2024 22:31:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47171#p47171</guid>
		</item>
		<item>
			<title><![CDATA[Re: switch to schedutil governor]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47162#p47162</link>
			<description><![CDATA[<p>Speaking of which, I wonder when auto-cpufreq will be in stable for debian/devuan.</p><p>auto-cpufreq is very efficient supposedly and yet, it doesn&#039;t appear to be in stable.</p><p>I checked further and it isn&#039;t even in debian period...</p><p>so weird.</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Wed, 10 Jan 2024 20:21:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47162#p47162</guid>
		</item>
		<item>
			<title><![CDATA[Re: switch to schedutil governor]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47131#p47131</link>
			<description><![CDATA[<p>Hi,</p><p>Both 6.6.8 (from unstable) and&#160; 6.5.x (from backports) seem to prefer acpi-cpufreq on my 5900x:</p><div class="codebox"><pre><code>root@calliope:~# cpupower frequency-info
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 2.20 GHz - 4.95 GHz
  available frequency steps:  3.70 GHz, 2.80 GHz, 2.20 GHz
  available cpufreq governors: performance schedutil</code></pre></div><p>Do you enable the amd-pstate-epp driver anywhere, or is that used automagically?</p>]]></description>
			<author><![CDATA[dummy@example.com (emanym)]]></author>
			<pubDate>Wed, 10 Jan 2024 00:08:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47131#p47131</guid>
		</item>
		<item>
			<title><![CDATA[switch to schedutil governor]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47014#p47014</link>
			<description><![CDATA[<p>i would like to use schedutil cpu frequency governor for my computer<br />but cannot. there must be something i am missing, but i do not know<br />what.</p><p>computer has ryzen 5700g and the 6.5 kernel from daedalus-backports<br />so that amd-pstate-epp driver is being used.</p><p>checking the kernel config, i see SCHEDUTIL is built-in:</p><p>&gt; grep CPU_FREQ /boot/config-$(uname -r)&#160; &#160; <br />&#160; &#160;...<br />CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y<br />CONFIG_CPU_FREQ_GOV_PERFORMANCE=y<br />CONFIG_CPU_FREQ_GOV_POWERSAVE=m<br />CONFIG_CPU_FREQ_GOV_USERSPACE=m<br />CONFIG_CPU_FREQ_GOV_ONDEMAND=m<br />CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m<br />CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y</p><p>list of loadable kernel modules checks out:</p><p>&gt; ls -l /lib/modules/6.5.0-0.deb12.4-amd64/kernel/drivers/cpufreq&#160; &#160;<br />&#160; &#160;...<br />-rw-r--r-- 1 root root 22899 Nov 23 15:05 cpufreq_conservative.ko<br />-rw-r--r-- 1 root root 33531 Nov 23 15:05 cpufreq_ondemand.ko<br />-rw-r--r-- 1 root root&#160; 9539 Nov 23 15:05 cpufreq_powersave.ko<br />-rw-r--r-- 1 root root 18123 Nov 23 15:05 cpufreq_userspace.ko</p><p>list of available drivers is not what i expected:</p><p>&gt; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors<br />performance powersave</p><p>cpupower also not what i expected:</p><p>&gt; cpupower frequency-info<br />analyzing CPU 11:<br />&#160; driver: amd-pstate-epp<br />&#160; CPUs which run at the same hardware frequency: 11<br />&#160; CPUs which need to have their frequency coordinated by software: 11<br />&#160; maximum transition latency:&#160; Cannot determine or is not supported.<br />&#160; hardware limits: 400 MHz - 4.67 GHz<br />&#160; available cpufreq governors: performance powersave<br />&#160; current policy: frequency should be within 400 MHz and 4.67 GHz.<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; The governor &quot;powersave&quot; may decide which speed to use<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; within this range.<br />&#160; current CPU frequency: Unable to call hardware<br />&#160; current CPU frequency: 400 MHz (asserted by call to kernel)<br />&#160; boost state support:<br />&#160; &#160; Supported: yes<br />&#160; &#160; Active: no</p><p>what needs to be done to switch to schedutil ?</p>]]></description>
			<author><![CDATA[dummy@example.com (grunchy)]]></author>
			<pubDate>Sun, 07 Jan 2024 19:37:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47014#p47014</guid>
		</item>
	</channel>
</rss>
