<?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 Intel PCM - errors while using PCM.exe in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778714#M327</link>
    <description>Pranith,&lt;BR /&gt;&lt;BR /&gt;you are welcome.&lt;BR /&gt;&lt;BR /&gt;Roman</description>
    <pubDate>Wed, 04 Apr 2012 14:08:12 GMT</pubDate>
    <dc:creator>Roman_D_Intel</dc:creator>
    <dc:date>2012-04-04T14:08:12Z</dc:date>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778704#M317</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am getting the following error when trying to use Intel PCM. This is in a program where I am trying to use the API in cpucounters.h to measure bandwidth.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;PS C:\\Users\\pdenthum\\Documents\\Visual Studio 2010\\Projects\\testBw\\x64\\Release&amp;gt; .\\testBW.exe&lt;/DIV&gt;&lt;DIV&gt;Num cores: 4&lt;/DIV&gt;&lt;DIV&gt;Num sockets: 1&lt;/DIV&gt;&lt;DIV&gt;Threads per core: 2&lt;/DIV&gt;&lt;DIV&gt;Core PMU (perfmon) version: 3&lt;/DIV&gt;&lt;DIV&gt;Number of core PMU generic (programmable) counters: 4&lt;/DIV&gt;&lt;DIV&gt;Width of generic (programmable) counters: 48 bits&lt;/DIV&gt;&lt;DIV&gt;Number of core PMU fixed counters: 3&lt;/DIV&gt;&lt;DIV&gt;Width of fixed counters: 48 bits&lt;/DIV&gt;&lt;DIV&gt;Can not access CPUs Model Specific Registers (MSRs).&lt;/DIV&gt;&lt;DIV&gt;You must have signed msr.sys driver in your current directory and have administrator rights to run this program.&lt;/DIV&gt;&lt;DIV&gt;Access to Intel Performance Counter Monitor has denied (no MSR or PCI CFG space access).&lt;/DIV&gt;&lt;DIV&gt;PS C:\\Users\\pdenthum\\Documents\\Visual Studio 2010\\Projects\\testBw\\x64\\Release&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Also I am encountering the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I could compile and run PCM.exe earlier. When I tried it again today, I am getting the following errors:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;PS C:\\Users\\pdenthum\\Documents\\Visual Studio 2010\\Projects\\IntelPerformanceCounterMonitorV1.7\\pranith&amp;gt; .\\pcm.exe 1 -nc -ns&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Intel Performance Counter Monitor&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Copyright (c) 2009-2011 Intel Corporation&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Starting MSR service failed with error 2&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Trying to load winring0.dll/winring0.sys driver...&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Using winring0.dll/winring0.sys driver.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Num cores: 4&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Num sockets: 1&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Threads per core: 2&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Core PMU (perfmon) version: 3&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Number of core PMU generic (programmable) counters: 4&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Width of generic (programmable) counters: 48 bits&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Number of core PMU fixed counters: 3&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Width of fixed counters: 48 bits&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Nominal core frequency: 2500000000 Hz&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Error in Windows function 'CreateSemaphore': 5&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Access to Intel Performance Counter Monitor has denied (Unknown error).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;I could see that the error code 5 is&lt;STRONG style="color: #2a2a2a; font-family: &amp;amp; font-size: 12px;"&gt;ERROR_ACCESS_DENIED. &lt;/STRONG&gt;&lt;SPAN style="color: #2a2a2a; font-family: &amp;amp; font-size: 12px;"&gt;I think this error is caused by an orphan semaphore. If I change the name of the semaphore, I am able to access the performance counters again.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="color: #2a2a2a; font-family: &amp;amp; font-size: 12px;"&gt;&lt;BR /&gt;Please help me resolve these errors.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="color: #2a2a2a; font-family: &amp;amp; font-size: 12px;"&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Pranith&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:08:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778704#M317</guid>
      <dc:creator>pranith</dc:creator>
      <dc:date>2012-04-03T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778705#M318</link>
      <description>I have the WinRing0.dll and WinRing0.sys in the same folder as testBw.exe.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Any help is appreciated.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;pranith&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:13:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778705#M318</guid>
      <dc:creator>pranith</dc:creator>
      <dc:date>2012-04-03T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778706#M319</link>
      <description>Hi Pranith,&lt;BR /&gt;&lt;BR /&gt;do you run also the PCMService for the Windows graphical perfmon plugin in parallel to the pcm.exe? If so you might have permission access errors as it seem that this semaphore is created from the PCMService under a different (system) account.&lt;BR /&gt;&lt;BR /&gt;To resolve the issue you might try to stop the pcmservice: "net stop pcmservice" and then try to run pcm.exe again.&lt;BR /&gt;&lt;BR /&gt;Let us please know if it helped or not.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Roman&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:47:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778706#M319</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2012-04-03T15:47:57Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778707#M320</link>
      <description>Ok, I think I was not trying to load the proper driver earlier. I had Winring0.dll and Winring0.sys earlier. When I copy the Winring0x64.dll and Winring0x64.sys I get a different error msg as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;PS C:\Users\pdenthum\Documents\Visual Studio 2010\Projects\testBw\Release&amp;gt; .\testBW.exe&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Num cores: 4&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Num sockets: 1&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Threads per core: 2&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Core PMU (perfmon) version: 3&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Number of core PMU generic (programmable) counters: 4&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Width of generic (programmable) counters: 48 bits&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Number of core PMU fixed counters: 3&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Width of fixed counters: 48 bits&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Can not access CPUs Model Specific Registers (MSRs).&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;You must have signed msr.sys driver in your current directory and have administrator rights to run this program.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Starting MSR service failed with error 2&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Trying to load winring0.dll/winring0.sys driver...&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Using winring0.dll/winring0.sys driver.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Access to Intel Performance Counter Monitor has denied (no MSR or PCI CFG space access).&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;PS C:\Users\pdenthum\Documents\Visual Studio 2010\Projects\testBw\Release&amp;gt;&lt;/DIV&gt;PS C:\Users\pdenthum\Documents\Visual Studio 2010\Projects\testBw\Release&amp;gt; .\testBW.exeNum cores: 4Num sockets: 1Threads per core: 2Core PMU (perfmon) version: 3Number of core PMU generic (programmable) counters: 4Width of generic (programmable) counters: 48 bitsNumber of core PMU fixed counters: 3Width of fixed counters: 48 bitsCan not access CPUs Model Specific Registers (MSRs).You must have signed msr.sys driver in your current directory and have administrator rights to run this program.Starting MSR service failed with error 2Trying to load winring0.dll/winring0.sys driver...Using winring0.dll/winring0.sys driver.&lt;BR /&gt;Access to Intel Performance Counter Monitor has denied (no MSR or PCI CFG space access).PS C:\Users\pdenthum\Documents\Visual Studio 2010\Projects\testBw\Release&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:52:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778707#M320</guid>
      <dc:creator>pranith</dc:creator>
      <dc:date>2012-04-03T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778708#M321</link>
      <description>Thanks Roman. That indeed fixed the error with pcm.exe. But the remaining error is still present.&lt;BR /&gt;&lt;BR /&gt;What does this error mean:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Access to Intel Performance Counter Monitor has denied (no MSR or PCI CFG space access)."&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:54:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778708#M321</guid>
      <dc:creator>pranith</dc:creator>
      <dc:date>2012-04-03T15:54:20Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778709#M322</link>
      <description>Pranith,&lt;BR /&gt;&lt;BR /&gt;are yourunning the command line shell with the testBW.exe "as administrator"?Please see the special directions with a menu screenshot for that in the WINDOWS_HOWTO.rtf file in the PCM zip archive.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Roman</description>
      <pubDate>Tue, 03 Apr 2012 15:59:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778709#M322</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2012-04-03T15:59:40Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778710#M323</link>
      <description>yes, I am running it from an administrator power shell. I also tried running only the testBw.exe as an administrator by right-clicking it and selecting "Run as administrator". It still gives me the same error.</description>
      <pubDate>Tue, 03 Apr 2012 16:02:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778710#M323</guid>
      <dc:creator>pranith</dc:creator>
      <dc:date>2012-04-03T16:02:36Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778711#M324</link>
      <description>Pranith,&lt;BR /&gt;&lt;BR /&gt;from the order of the error messages it become apparent to me that you should check the order of the calls:&lt;BR /&gt;First you should load the Ring0/MSRdriver using the Driver class and only then call PCM::getInstance and program(). You can see the correct order in the cpucounterstest.cpp . &lt;BR /&gt;&lt;BR /&gt;Could you please check the order of the calls in your testBw program? Is it correct or are you calling PCM::getInstance&amp;amp;program before the Driver routines?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Roman&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Apr 2012 16:16:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778711#M324</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2012-04-03T16:16:01Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778712#M325</link>
      <description>I believe I am calling them in the right order. Here is my code snippet:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;A href="http://pastebin.com/2NZmHX5b"&gt;http://pastebin.com/2NZmHX5b&lt;/A&gt;
&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Apr 2012 16:23:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778712#M325</guid>
      <dc:creator>pranith</dc:creator>
      <dc:date>2012-04-03T16:23:22Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778713#M326</link>
      <description>Ah, you seem to be right! I was instantiating "SystemCounterState" which was in turn calling PCM::getInstance(). Thanks a lot for all the help!</description>
      <pubDate>Tue, 03 Apr 2012 20:52:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778713#M326</guid>
      <dc:creator>pranith</dc:creator>
      <dc:date>2012-04-03T20:52:46Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778714#M327</link>
      <description>Pranith,&lt;BR /&gt;&lt;BR /&gt;you are welcome.&lt;BR /&gt;&lt;BR /&gt;Roman</description>
      <pubDate>Wed, 04 Apr 2012 14:08:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778714#M327</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2012-04-04T14:08:12Z</dc:date>
    </item>
    <item>
      <title>Intel PCM - errors while using PCM.exe</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778715#M328</link>
      <description>It seems like a problem in theinstantiation of PCM.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 May 2012 21:08:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778715#M328</guid>
      <dc:creator>alextui</dc:creator>
      <dc:date>2012-05-07T21:08:59Z</dc:date>
    </item>
    <item>
      <title>hi pranith</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778716#M329</link>
      <description>&lt;P&gt;hi pranith&lt;/P&gt;
&lt;P&gt;could you give me some detail infomation about how to build msr.sys&amp;amp;PCM.exe&amp;amp;intelpcm.dll ?&lt;/P&gt;
&lt;P&gt;thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 07:59:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778716#M329</guid>
      <dc:creator>pengfei_w_Intel</dc:creator>
      <dc:date>2013-09-10T07:59:22Z</dc:date>
    </item>
    <item>
      <title>Hello Pengfei,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778717#M330</link>
      <description>&lt;P&gt;Hello Pengfei,&lt;/P&gt;
&lt;P&gt;Please don't post the same question to multiple threads. This is what, question #4 or 6?&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 16:01:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-errors-while-using-PCM-exe/m-p/778717#M330</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2013-09-10T16:01:46Z</dc:date>
    </item>
  </channel>
</rss>

