<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CPU C-states]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">One of the homelab platforms I'm running XCP-ng on, is a AMD 7950X.<br />
I recently noticed, that in Ubuntu Linux 24.04, PowerTop reports C-states C1-C3 (see screenshot).</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1737115712439-screenshot-2025-01-16-213724.png" alt="Screenshot 2025-01-16 213724.png" class=" img-fluid img-markdown" /><br />
However, in XCP-ng 8.3, the command « xenpm get-cpuidle-states » only reports C0 and C1.</p>
<p dir="auto">I've tried adding « cpuidle » to the Xen image boot parameters in Grub-efi.cfg which doesn't seem to make any difference to the output of the get-cpuidle-states command. Looking at the output of « xe host-dmesg » I am not sure what to look for; the lines <a href="https://wiki.xenproject.org/wiki/Xen_power_management" target="_blank" rel="noopener noreferrer nofollow ugc">referenced in an Xen documentation page</a> do not seem to be present in the output on XCP-ng.</p>
<p dir="auto">As this is a homelab project, I wish to reduce power consumption as much as is technically feasible and leverage the supported C-states (unless latency from switching to/out of C3 would be killing performance).</p>
]]></description><link>https://xcp-ng.org/forum/topic/10276/cpu-c-states</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 00:02:26 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/10276.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Jan 2025 12:07:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CPU C-states on Fri, 17 Jan 2025 17:34:57 GMT]]></title><description><![CDATA[<p dir="auto">It's very likely in Xen itself since a part of the power management is done there. Another topic to bring during the Xen Winter Meetup <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/teddyastie" aria-label="Profile: TeddyAstie">@<bdi>TeddyAstie</bdi></a> <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=bbd7a2dd886" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://xcp-ng.org/forum/post/88368</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88368</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 17:34:57 GMT</pubDate></item><item><title><![CDATA[Reply to CPU C-states on Fri, 17 Jan 2025 16:29:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/redakula" aria-label="Profile: redakula">@<bdi>redakula</bdi></a> said in <a href="/forum/post/88357">CPU C-states</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/frankathome" aria-label="Profile: FrankAtHome">@<bdi>FrankAtHome</bdi></a><br />
I looked in to this as well a while back and the conclusion i came to, is that the newer AMD power management functions are not supported properly in the old kernel used by XCP-NG (And maybe xen?).<br />
A lot of work seems to have been done in the 6.x kernel series on this.</p>
<p dir="auto">I get the same on my 7900 - only C0 and C1 <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f62c.png?v=bbd7a2dd886" class="not-responsive emoji emoji-android emoji--grimacing" style="height:23px;width:auto;vertical-align:middle" title=":grimacing:" alt="😬" /><br />
I tried booting it on  a Ubuntu 24.04 live cd and power consumption was easily 15% lower at idle.</p>
</blockquote>
<p dir="auto">that sounds plausible as explanation.</p>
<p dir="auto">I guess I will have to patiently await XCP-ng 6 branch and any improvements this may bring on AMD systems.</p>
]]></description><link>https://xcp-ng.org/forum/post/88361</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88361</guid><dc:creator><![CDATA[FrankAtHome]]></dc:creator><pubDate>Fri, 17 Jan 2025 16:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to CPU C-states on Fri, 17 Jan 2025 15:41:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/frankathome" aria-label="Profile: FrankAtHome">@<bdi>FrankAtHome</bdi></a><br />
I looked in to this as well a while back and the conclusion i came to, is that the newer AMD power management functions are not supported properly in the old kernel used by XCP-NG (And maybe xen?).<br />
A lot of work seems to have been done in the 6.x kernel series on this.</p>
<p dir="auto">I get the same on my 7900 - only C0 and C1 <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f62c.png?v=bbd7a2dd886" class="not-responsive emoji emoji-android emoji--grimacing" style="height:23px;width:auto;vertical-align:middle" title=":grimacing:" alt="😬" /><br />
I tried booting it on  a Ubuntu 24.04 live cd and power consumption was easily 15% lower at idle.</p>
]]></description><link>https://xcp-ng.org/forum/post/88357</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88357</guid><dc:creator><![CDATA[redakula]]></dc:creator><pubDate>Fri, 17 Jan 2025 15:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to CPU C-states on Fri, 17 Jan 2025 14:08:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/frankathome" aria-label="Profile: FrankAtHome">@<bdi>FrankAtHome</bdi></a> The server is a HP DL360 G8 Intel Xeon CPU E5-2680v2.</p>
<p dir="auto">Same hardware/bios config as the other servers running XCP 8.2, so, nothing special setup. I'm not sure if it even has C5/C6 states available. It's an enterprise server, you don't want it to sleep.</p>
<p dir="auto">Here's the output from a desktop HP Elitedesk 800 G3 Intel Core i7-7700 running XCP 8.3, again, nothing special setup. Now with more C-states!</p>
<pre><code># xenpm get-cpuidle-states 0
All C-states allowed

cpu id               : 0
total C-states       : 7
idle time(ms)        : 276484
C0                   : transition [              277556]
                       residency  [               16869 ms]
C1                   : transition [              197012]
                       residency  [                9993 ms]
C2                   : transition [               23581]
                       residency  [               11105 ms]
C3                   : transition [                2943]
                       residency  [                2094 ms]
C4                   : transition [                8525]
                       residency  [                8576 ms]
C5                   : transition [                5493]
                       residency  [               17883 ms]
C6                   : transition [               40001]
                       residency  [              224993 ms]
cc3                  : [                1946 ms]
cc6                  : [                7945 ms]
cc7                  : [              238808 ms]
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/88339</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88339</guid><dc:creator><![CDATA[Andrew]]></dc:creator><pubDate>Fri, 17 Jan 2025 14:08:44 GMT</pubDate></item><item><title><![CDATA[Reply to CPU C-states on Fri, 17 Jan 2025 13:21:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew" aria-label="Profile: Andrew">@<bdi>Andrew</bdi></a></p>
<p dir="auto">ok that's interesting.</p>
<p dir="auto">Which CPU is this on? AMD ? Intel ?<br />
Did you specify any boot parameters in grub to unlock these C-States ?</p>
]]></description><link>https://xcp-ng.org/forum/post/88333</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88333</guid><dc:creator><![CDATA[FrankAtHome]]></dc:creator><pubDate>Fri, 17 Jan 2025 13:21:05 GMT</pubDate></item><item><title><![CDATA[Reply to CPU C-states on Fri, 17 Jan 2025 13:15:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/frankathome" aria-label="Profile: FrankAtHome">@<bdi>FrankAtHome</bdi></a> Here's output on one of my XCP 8.3 servers that shows C0 to C4:</p>
<pre><code># xenpm get-cpuidle-states 0
All C-states allowed

cpu id               : 0
total C-states       : 5
idle time(ms)        : 1854395327
C0                   : transition [           827366196]
                       residency  [            26328742 ms]
C1                   : transition [           464493378]
                       residency  [            40172860 ms]
C2                   : transition [            97685021]
                       residency  [            43104018 ms]
C3                   : transition [            13728657]
                       residency  [            12613910 ms]
C4                   : transition [           251459140]
                       residency  [          1755416981 ms]
pc2                  : [           462155589 ms]
pc3                  : [            17985256 ms]
pc6                  : [           781427622 ms]
cc3                  : [            10502718 ms]
cc6                  : [          1685502286 ms]
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/88332</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88332</guid><dc:creator><![CDATA[Andrew]]></dc:creator><pubDate>Fri, 17 Jan 2025 13:15:17 GMT</pubDate></item><item><title><![CDATA[Reply to CPU C-states on Fri, 17 Jan 2025 12:44:46 GMT]]></title><description><![CDATA[<p dir="auto">Power management is a fairly complex thing in Xen. Adding <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/teddyastie" aria-label="Profile: TeddyAstie">@<bdi>TeddyAstie</bdi></a> in the loop if you have ideas.</p>
]]></description><link>https://xcp-ng.org/forum/post/88330</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/88330</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 17 Jan 2025 12:44:46 GMT</pubDate></item></channel></rss>