<?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[Nehalem cpu power management]]></title><description><![CDATA[<p dir="auto">My server has a Xeon X5650 Nehalem CPU. I get this during boot:<br />
"Disabling C-states C3 and C6 on Nehalem Processors due to errata"</p>
<p dir="auto">Also:<br />
[18:23 home-xcp ~]# xenpm get-cpuidle-states 0<br />
Max possible C-state: C1</p>
<p dir="auto">Can I override this ? I.e. should C-state be higher to consume less power ?  The stability is not interesting, as it would be a test/hobby server.</p>
]]></description><link>https://xcp-ng.org/forum/topic/6763/nehalem-cpu-power-management</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 14:17:36 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/6763.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Jan 2023 17:25:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nehalem cpu power management on Wed, 18 Jan 2023 18:22:40 GMT]]></title><description><![CDATA[<p dir="auto">This is unconditional for a reason.  The CSTATE errata in Nehalem are crippling - IIRC a core going in an out of a deep C state does not maintain cache coherency correctly, resulting in arbitrary memory corruption.</p>
<p dir="auto">You really do care about not hitting this errata, even on a test/hobby server.</p>
]]></description><link>https://xcp-ng.org/forum/post/57391</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57391</guid><dc:creator><![CDATA[andyhhp]]></dc:creator><pubDate>Wed, 18 Jan 2023 18:22:40 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Sat, 14 Jan 2023 19:03:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a><br />
In the original xen 4.13.4 source code I modified 2 files, one is mwait-idle.c :</p>
<pre><code>--- mwait-idle.c.orig   2023-01-14 17:30:29.635655771 +0100
+++ mwait-idle.c        2023-01-14 09:06:04.274001499 +0100
@@ -864,8 +864,6 @@

 static const struct idle_cpu idle_cpu_nehalem = {
        .state_table = nehalem_cstates,
-       .auto_demotion_disable_flags = NHM_C1_AUTO_DEMOTE | NHM_C3_AUTO_DEMOTE,
-       .disable_promotion_to_c1e = 1,
 };

 static const struct idle_cpu idle_cpu_atom = {
</code></pre>
<p dir="auto">the other is intel.c</p>
<pre><code>--- intel.c.orig        2023-01-14 09:42:27.751861245 +0100
+++ intel.c     2023-01-14 09:43:05.036530787 +0100
@@ -326,8 +326,8 @@
          x86_match_cpu(models) )
     {
         printk(XENLOG_WARNING
-              "Disabling C-states C3 and C6 due to CPU errata\n");
-        max_cstate = 1;
+              "Nehalem errata deleted ...\n");
+        max_cstate = 9;
     }
 }
</code></pre>
<p dir="auto">so cstate is not restricted, but many patches are missing that xcp-ng provides. At the moment windows VMs won't even start.</p>
<p dir="auto">I am now trying to build a xen with patches by xcp-ng, although if someone could help me with the above modifications, I would appreciate it.</p>
<p dir="auto">PS: Rebuilt the xen-hypervisor-4.13.4-10.36.xcpng8.3.x86_64 package with the above modification, and removed the detect-nehalem-c-state.patch</p>
]]></description><link>https://xcp-ng.org/forum/post/57183</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57183</guid><dc:creator><![CDATA[bogikornel]]></dc:creator><pubDate>Sat, 14 Jan 2023 19:03:52 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Sat, 14 Jan 2023 12:45:41 GMT]]></title><description><![CDATA[<p dir="auto">Interesting <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ab1daa29750" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> Keep us posted!</p>
]]></description><link>https://xcp-ng.org/forum/post/57174</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57174</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sat, 14 Jan 2023 12:45:41 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Sat, 14 Jan 2023 08:57:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andsmv" aria-label="Profile: andSmv">@<bdi>andSmv</bdi></a>  thanks for the reply<br />
The server is a home test, power consumption is more important than stability, so I'll try to recompile xen.I guess it will be enough to recompile only version 4.13.4 ?</p>
<p dir="auto">PS.: I just looked at the source code and I don't see that there is a switch to turn it off. I will modify mwait-idle.c to see if it works <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=ab1daa29750" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
<p dir="auto">PS2: Done :</p>
<pre><code>[09:50 home-xcp ~]# xenpm get-cpuidle-states 0
Max possible C-state: C9

cpu id               : 0
total C-states       : 5
idle time(ms)        : 134037
C0                   : transition [                5351]
                       residency  [                6507 ms]
C1                   : transition [                  13]
                       residency  [                  15 ms]
C2                   : transition [                  71]
                       residency  [                 120 ms]
C3                   : transition [                 701]
                       residency  [                6956 ms]
C4                   : transition [                4566]
                       residency  [              120437 ms]
pc3                  : [               13371 ms]
pc6                  : [               23594 ms]
cc3                  : [               14446 ms]
cc6                  : [               63719 ms]

</code></pre>
<p dir="auto">The intel.c had to be modified to be correct. Let's see how stable it will be.</p>
]]></description><link>https://xcp-ng.org/forum/post/57172</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57172</guid><dc:creator><![CDATA[bogikornel]]></dc:creator><pubDate>Sat, 14 Jan 2023 08:57:01 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Fri, 13 Jan 2023 15:29:27 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/bogikornel" aria-label="Profile: bogikornel">@<bdi>bogikornel</bdi></a></p>
<p dir="auto">The <code>Intel_errata_workarounds</code> and <code>probe_c3_errata</code> routines are executed unconditionally (there's no boot parameter to disable these checks)</p>
<p dir="auto">The only way through would be to recompile your Xen. I'm not sure that this is a good idea because Intel documentation talks about <em>Unpredictable System Behaviour</em>.</p>
<p dir="auto">If that is really what you need, I can help you with this (or do this for you), so let me know...</p>
]]></description><link>https://xcp-ng.org/forum/post/57151</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57151</guid><dc:creator><![CDATA[andSmv]]></dc:creator><pubDate>Fri, 13 Jan 2023 15:29:27 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Thu, 05 Jan 2023 08:32:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andyhhp" aria-label="Profile: andyhhp">@<bdi>andyhhp</bdi></a> Can you help me ?</p>
]]></description><link>https://xcp-ng.org/forum/post/56832</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56832</guid><dc:creator><![CDATA[bogikornel]]></dc:creator><pubDate>Thu, 05 Jan 2023 08:32:32 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Mon, 02 Jan 2023 18:03:03 GMT]]></title><description><![CDATA[<p dir="auto">Maybe <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andyhhp" aria-label="Profile: andyhhp">@<bdi>andyhhp</bdi></a> knows which parameter to use <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ab1daa29750" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/56673</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56673</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Mon, 02 Jan 2023 18:03:03 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Mon, 02 Jan 2023 17:58:30 GMT]]></title><description><![CDATA[<p dir="auto">I've looked through the xen documentation/forum, tried the parmeters, but nothing helped.</p>
<p dir="auto">I'm thinking of putting an old 6.x xenserver on, because it doesn't have the higher c-state disabled</p>
]]></description><link>https://xcp-ng.org/forum/post/56670</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56670</guid><dc:creator><![CDATA[bogikornel]]></dc:creator><pubDate>Mon, 02 Jan 2023 17:58:30 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Mon, 02 Jan 2023 17:41:06 GMT]]></title><description><![CDATA[<p dir="auto">Try this: <a href="https://xenbits.xen.org/docs/unstable/misc/xen-command-line.html#max_cstate-x86" target="_blank" rel="noopener noreferrer nofollow ugc">https://xenbits.xen.org/docs/unstable/misc/xen-command-line.html#max_cstate-x86</a></p>
<p dir="auto">And there's also <a href="https://xenbits.xen.org/docs/unstable/misc/xen-command-line.html#preferred-cstates-x86" target="_blank" rel="noopener noreferrer nofollow ugc">https://xenbits.xen.org/docs/unstable/misc/xen-command-line.html#preferred-cstates-x86</a></p>
]]></description><link>https://xcp-ng.org/forum/post/56669</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56669</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Mon, 02 Jan 2023 17:41:06 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Mon, 02 Jan 2023 17:37:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> Yes, xl dmesg:</p>
<pre><code>[18:25 home-xcp ~]# xl dmesg |grep C-
(XEN) [000000871c2971a8] Disable C3 and C6 C states on Nehalem processors due to error.
(XEN) [ 2.652059] mwait-idle: max C state 1 reached
(XEN) [ 2.698434] mwait-idle: max C state 1 reached
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/56668</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56668</guid><dc:creator><![CDATA[bogikornel]]></dc:creator><pubDate>Mon, 02 Jan 2023 17:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Mon, 02 Jan 2023 17:35:16 GMT]]></title><description><![CDATA[<p dir="auto">Is this message coming from Xen or Dom0 kernel?</p>
]]></description><link>https://xcp-ng.org/forum/post/56667</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56667</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Mon, 02 Jan 2023 17:35:16 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Mon, 02 Jan 2023 17:33:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> This cannot be overridden by a kernel boot parameter ? Because the reverse is possible.</p>
]]></description><link>https://xcp-ng.org/forum/post/56666</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56666</guid><dc:creator><![CDATA[bogikornel]]></dc:creator><pubDate>Mon, 02 Jan 2023 17:33:08 GMT</pubDate></item><item><title><![CDATA[Reply to Nehalem cpu power management on Mon, 02 Jan 2023 17:29:00 GMT]]></title><description><![CDATA[<p dir="auto">Sadly, Intel doesn't provide any support nor updates for the microcode of this CPU generation. So, if it's disabled, it's because of an issue in the microcode with higher c-states.</p>
<p dir="auto">So either use it "as is", or get a more recent CPU if you want more efficiency/less power usage.</p>
]]></description><link>https://xcp-ng.org/forum/post/56665</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/56665</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Mon, 02 Jan 2023 17:29:00 GMT</pubDate></item></channel></rss>