<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Trying to disable Processor idle states (C states) on Windows P in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783965#M426</link>
    <description>XP went off support before the current hardware became available, so I think your expectations for XP must be limited.</description>
    <pubDate>Tue, 27 Mar 2012 21:05:21 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2012-03-27T21:05:21Z</dc:date>
    <item>
      <title>Trying to disable Processor idle states (C states) on Windows PC</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783964#M425</link>
      <description>&lt;DIV class="body"&gt;&lt;P&gt;I need to prevent the processor from entering an idle state (non C0 C state). Admittedly I do not know much about processor C and P states so bear with me. We use a camera from a third party vendor which occasionally delivers corrupted frames. The vendor has determined that when the CPU enters an idle state it interferes with the transmission of the frame over the firewire. To confirm this I used the following code on a Windows 7 PC and indeed, disabling the idle states resolved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//WIN7&lt;BR /&gt;const DWORD DISABLED = 1;&lt;BR /&gt;const DWORD ENABLED = 0;&lt;BR /&gt;GUID *scheme;&lt;BR /&gt;PowerGetActiveScheme(NULL, &amp;amp;scheme);&lt;BR /&gt;PowerWriteACValueIndex(NULL, scheme, &amp;amp;GUID_PROCESSOR_SETTINGS_SUBGROUP, &amp;amp;GUID_PROCESSOR_IDLE_DISABLE, DISABLED);&lt;BR /&gt;PowerSetActiveScheme(NULL, scheme);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;If I run my application and open Windows permon and add the %C1 Time, %C2 Time and %C3 time I see that they are all zero when I disable these states, when I enable them I see quite a bit of time spent in the C3 state (this is on a Dell Precision T3500 quad core PC).&lt;/P&gt;&lt;P&gt;I also need to do this on XP however these calls are not available on XP. So I attempted to do the following to disable the idle states&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned int ActPwrSch; &lt;BR /&gt;DWORD currPolicy,newPolicy, curr1Policy,curr2Policy, new1Policy, new2Policy;&lt;BR /&gt;MACHINE_PROCESSOR_POWER_POLICY Policy; &lt;BR /&gt;if(GetActivePwrScheme(&amp;amp;ActPwrSch)) &lt;BR /&gt;{ &lt;BR /&gt; if(ReadProcessorPwrScheme(ActPwrSch,&amp;amp;Policy)) &lt;BR /&gt; {&lt;BR /&gt; Policy.ProcessorPolicyAc.Policy[0].AllowPromotion = 0;&lt;BR /&gt; Policy.ProcessorPolicyAc.Policy[1].AllowPromotion = 0;&lt;BR /&gt; Policy.ProcessorPolicyAc.Policy[2].AllowPromotion = 0;&lt;BR /&gt; if(WriteProcessorPwrScheme(ActPwrSch,&amp;amp;Policy)) &lt;BR /&gt; { &lt;BR /&gt; printf("WriteProcessorPwrScheme succeed\\n"); &lt;BR /&gt; if(SetActivePwrScheme(ActPwrSch,0,0)) &lt;BR /&gt; { &lt;BR /&gt; printf("SetActivePwrScheme succeed!!\\n");&lt;BR /&gt; } &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt; } &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;However when I run my application I still see that the processor is spending time in the C1 state (by looking at the same counters in perfmon). And I still get my corrupted image problem. The XP PC is an single core Dell optiplex PC.&lt;/P&gt;&lt;P&gt;Does anybody know how I can prevent entry into any of the C1-C3 states on XP? As I said it seems that I have done it on Windows 7.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Mar 2012 20:56:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783964#M425</guid>
      <dc:creator>mashdev</dc:creator>
      <dc:date>2012-03-26T20:56:33Z</dc:date>
    </item>
    <item>
      <title>Trying to disable Processor idle states (C states) on Windows P</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783965#M426</link>
      <description>XP went off support before the current hardware became available, so I think your expectations for XP must be limited.</description>
      <pubDate>Tue, 27 Mar 2012 21:05:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783965#M426</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-03-27T21:05:21Z</dc:date>
    </item>
    <item>
      <title>Trying to disable Processor idle states (C states) on Windows P</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783966#M427</link>
      <description>Hello Mashdev,&lt;BR /&gt;Have you tried setting the control panel power settings to max performance?&lt;BR /&gt;I would also look in the BIOS for any settings such as disabling Cstates.&lt;BR /&gt;This would be a good place to start.&lt;BR /&gt;Pat</description>
      <pubDate>Sun, 01 Apr 2012 02:24:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783966#M427</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2012-04-01T02:24:36Z</dc:date>
    </item>
    <item>
      <title>Trying to disable Processor idle states (C states) on Windows P</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783967#M428</link>
      <description>Thanks. There were no settings for C states in the BIOS. I did set to max performance but I still see the processor enter the C1 state when observing in Windows perfmon</description>
      <pubDate>Mon, 02 Apr 2012 12:32:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783967#M428</guid>
      <dc:creator>mashdev</dc:creator>
      <dc:date>2012-04-02T12:32:26Z</dc:date>
    </item>
    <item>
      <title>Trying to disable Processor idle states (C states) on Windows P</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783968#M429</link>
      <description>On linux you can tell the idle loop to just 'poll' so that it never goes into sleep states. &lt;BR /&gt;In case anyone cares, you can do this with a boot option 'idle=poll'.&lt;BR /&gt;I don't know of an equivalent function on Windows.&lt;BR /&gt;&lt;BR /&gt;This is sort of a hack but one possibility on windows is to write a program that starts one thread per cpu and does nothing but add to an integer in a permanent loop. Then start this program with the lowest priority.&lt;BR /&gt;This will just soak up any idle cycles and prevent the system from going into power saving states.&lt;BR /&gt;&lt;BR /&gt;Pat&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:59:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783968#M429</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2012-04-02T13:59:31Z</dc:date>
    </item>
    <item>
      <title>Trying to disable Processor idle states (C states) on Windows P</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783969#M430</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1333375117171="58" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=558034" href="https://community.intel.com/en-us/profile/558034/" class="basic"&gt;mashdev&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;I&gt;&lt;DIV class="body"&gt;&lt;P&gt;...We use a &lt;SPAN style="text-decoration: underline;"&gt;camera from a third party vendor which occasionally delivers corrupted frames&lt;/SPAN&gt;. The vendor&lt;BR /&gt;has determined that when the CPU enters an idle state it interferes with the transmission of the frame&lt;BR /&gt;over the firewire...&lt;/P&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Ifthe camerauses &lt;SPAN style="text-decoration: underline;"&gt;its own driver&lt;/SPAN&gt;a problem could be related to some issues in it. I think your vendor should&lt;BR /&gt;find out what is exactly wrong with the driver and to fix it. Shouldn't the driver stop the transmittion of framesas&lt;BR /&gt;soon as theCPU enters some idle state?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2012 14:17:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783969#M430</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-04-02T14:17:21Z</dc:date>
    </item>
    <item>
      <title>Trying to disable Processor idle states (C states) on Windows P</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783970#M431</link>
      <description>Sergey,&lt;BR /&gt;Yes you are right. Ultimately the vendor should be fixing this. We are looking for a workaround to improve our situation until the issue is resolved or we change cameras or vendors.</description>
      <pubDate>Mon, 02 Apr 2012 15:00:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783970#M431</guid>
      <dc:creator>mashdev</dc:creator>
      <dc:date>2012-04-02T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Processor power states coul</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783971#M432</link>
      <description>Processor power states coul be also manipulated with the help of kernel debugger(Windbg).You can see current policy by issueing this command
!popolicy.
IIRC _KPCR structure holds the member structure which is responsible for CPU power management.</description>
      <pubDate>Sat, 22 Dec 2012 08:54:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Trying-to-disable-Processor-idle-states-C-states-on-Windows-PC/m-p/783971#M432</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2012-12-22T08:54:28Z</dc:date>
    </item>
  </channel>
</rss>

