<?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 in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776393#M270</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;the reason of such behavior mightalso be a BIOS related issue mentioned in &lt;A href="https://lkml.org/lkml/2011/3/24/552"&gt;https://lkml.org/lkml/2011/3/24/552&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could you please check the Linux boot log using "dmesg | grep PMU" and see if youobserve a similar message:&lt;BR /&gt;&lt;BR /&gt;"[Firmware Bug]: the BIOS has corrupted hw-PMU resources (MSR 38d is 330)"&lt;BR /&gt;&lt;BR /&gt;Disabling the PMU busy check in PCM "PCM::PMUinUse() function to return always &lt;STRONG&gt;false&lt;/STRONG&gt;" should be a quick workaround for your system. Please let us know if an HP BIOS updateis available and can fix the issue. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Roman&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2011 11:48:39 GMT</pubDate>
    <dc:creator>Roman_D_Intel</dc:creator>
    <dc:date>2011-12-22T11:48:39Z</dc:date>
    <item>
      <title>Access to Intel(r) Performance Counter Monitor has denied</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776382#M259</link>
      <description>&lt;P&gt;Trying to run pcm.x (PCM 1.7) Redhat 5.7 BL460 G6 ( Intel Xeon CPU X5670 @ 2.93GHz) it fails (while with KDE 3.5 I'm able to get it running). &lt;/P&gt;&lt;P&gt;Can you please advise about the following message? &lt;/P&gt;&lt;P&gt;(reset doesn't help) &lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Ilan &lt;/P&gt;&lt;P&gt;./pcm.x 1 -nc -ns &lt;/P&gt;&lt;P&gt;Intel Performance Counter Monitor &lt;/P&gt;&lt;P&gt;Copyright (c) 2009-2011 Intel Corporation &lt;/P&gt;&lt;P&gt;Num cores: 24 &lt;/P&gt;&lt;P&gt;Num sockets: 2 &lt;/P&gt;&lt;P&gt;Threads per core: 2 &lt;/P&gt;&lt;P&gt;Core PMU (perfmon) version: 3 &lt;/P&gt;&lt;P&gt;Number of core PMU generic (programmable) counters: 4 &lt;/P&gt;&lt;P&gt;Width of generic (programmable) counters: 48 bits &lt;/P&gt;&lt;P&gt;Number of core PMU fixed counters: 3 &lt;/P&gt;&lt;P&gt;Width of fixed counters: 48 bits &lt;/P&gt;&lt;P&gt;Nominal core frequency: 2933333326 Hz &lt;/P&gt;&lt;P&gt;Access to Intel Performance Counter Monitor has denied (Performance Monitoring Unit is occupied by other application). Try to stop the application that uses PMU. &lt;/P&gt;&lt;P&gt;Alternatively you can try to reset PMU configuration at your own risk. Try to reset? (y/n) &lt;/P&gt;&lt;P&gt;y &lt;/P&gt;&lt;P&gt;PMU configuration has been reset. Try to rerun the program again. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 06:47:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776382#M259</guid>
      <dc:creator>Ilan</dc:creator>
      <dc:date>2011-12-15T06:47:49Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776383#M260</link>
      <description>Might it be that the the daemon for ksysguard is still running on the system? The daemon and pcm.x are just different front-ends to the same routines. If one works, the other should work as well. You might want to try to unload the msr kernel module or check with lsof if any program is accessing /dev/cpu/?/msr.&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Thomas</description>
      <pubDate>Thu, 15 Dec 2011 09:01:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776383#M260</guid>
      <dc:creator>Thomas_W_Intel</dc:creator>
      <dc:date>2011-12-15T09:01:25Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776384#M261</link>
      <description>Thanks,&lt;BR /&gt;Only process accessing the /dev/cpu/?/msr is the pcm.x.&lt;BR /&gt;Further using "modprobe -l |grep msr" I couldn't see any module I can corelate with msr</description>
      <pubDate>Thu, 15 Dec 2011 09:33:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776384#M261</guid>
      <dc:creator>Ilan</dc:creator>
      <dc:date>2011-12-15T09:33:19Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776385#M262</link>
      <description>what is the kernel version on your box? uname -a&lt;BR /&gt;&lt;BR /&gt;Could you try to reset PMU and run ./pcm.x 1 again? Or did you try that already?&lt;BR /&gt;&lt;BR /&gt;Are other tools or drivers using PMU are running? This could be Linux perf, oprofile, VTune, PAPI, etc.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Roman</description>
      <pubDate>Thu, 15 Dec 2011 10:06:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776385#M262</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2011-12-15T10:06:18Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776386#M263</link>
      <description>&lt;P&gt;I have tried reseting it before opening the call - it doesn'tmake a change&lt;BR /&gt;Version is Redhat 5.7&lt;/P&gt;&lt;P&gt;cat /etc/redhat-release&lt;/P&gt;&lt;P&gt;Red Hat Enterprise Linux Server release 5.7 (Tikanga)&lt;/P&gt;&lt;P&gt;uname -a&lt;/P&gt;&lt;P&gt;Linux illinrh602 2.6.18-274.12.1.el5 #1 SMP Tue Nov 8 21:37:35 EST 2011 x86_64 x86_64 x86_64 GNU/Linux&lt;/P&gt;&lt;BR /&gt;Only performance tool running is the HP GlancePlusPAK - I have made sure it is down before running pcm.x&lt;BR /&gt;&lt;BR /&gt;Question - how can I find who is accessing the PMU?&lt;BR /&gt;the server HT is enabled - should it make a change?&lt;BR /&gt;&lt;BR /&gt;strace of the pcm.x shows successful open for all /dev/cpu/?/msr and then the failure message appears:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;10662 open("/dev/cpu/22/msr", O_RDWR) = 25&lt;/P&gt;&lt;P&gt;10662 open("/dev/cpu/23/msr", O_RDWR) = 26&lt;/P&gt;&lt;P&gt;10662 lseek(3, 206, SEEK_SET) = 206&lt;/P&gt;&lt;P&gt;10662 read(3, "\3\26\1\4\0\f\0\0", 8) = 8&lt;/P&gt;&lt;P&gt;10662 write(1, "Nominal core frequency: 29333333"..., 38) = 38&lt;/P&gt;&lt;P&gt;10662 futex(0x2b2b405a2000, FUTEX_WAKE, 1) = 0&lt;/P&gt;&lt;P&gt;10662 open("/dev/shm/sem.Intel Performance Counter Monitor instance create-destroy lock", O_RDWR|O_NOFOLLOW) = 27&lt;/P&gt;&lt;P&gt;10662 fstat(27, {st_mode=S_IFREG|0755, st_size=32, ...}) = 0&lt;/P&gt;&lt;P&gt;10662 close(27) = 0&lt;/P&gt;&lt;P&gt;10662 open("/dev/shm/sem.Number of running Intel Performance Counter Monitor instances", O_RDWR|O_NOFOLLOW) = 27&lt;/P&gt;&lt;P&gt;10662 fstat(27, {st_mode=S_IFREG|0755, st_size=32, ...}) = 0&lt;/P&gt;&lt;P&gt;10662 mmap(NULL, 32, PROT_READ|PROT_WRITE, MAP_SHARED, 27, 0) = 0x2b2b405a3000&lt;/P&gt;&lt;P&gt;10662 close(27) = 0&lt;/P&gt;&lt;P&gt;10662 futex(0x2b2b405a3000, FUTEX_WAKE, 1) = 0&lt;/P&gt;&lt;P&gt;10662 lseek(3, 911, SEEK_SET) = 911&lt;/P&gt;&lt;P&gt;10662 read(3, "\0\0\0\0\7\0\0\0", 8) = 8&lt;/P&gt;&lt;P&gt;10662 lseek(3, 390, SEEK_SET) = 390&lt;/P&gt;&lt;P&gt;10662 read(3, "\0\0\0\0\0\0\0\0", 8) = 8&lt;/P&gt;&lt;P&gt;10662 lseek(3, 391, SEEK_SET) = 391&lt;/P&gt;&lt;P&gt;10662 read(3, "\0\0\0\0\0\0\0\0", 8) = 8&lt;/P&gt;&lt;P&gt;10662 lseek(3, 392, SEEK_SET) = 392&lt;/P&gt;&lt;P&gt;10662 read(3, "\0\0\0\0\0\0\0\0", 8) = 8&lt;/P&gt;&lt;P&gt;10662 lseek(3, 393, SEEK_SET) = 393&lt;/P&gt;&lt;P&gt;10662 read(3, "\0\0\0\0\0\0\0\0", 8) = 8&lt;/P&gt;&lt;P&gt;10662 lseek(3, 909, SEEK_SET) = 909&lt;/P&gt;&lt;P&gt;10662 read(3, "0\0\0\0\0\0\0\0", 8) = 8&lt;/P&gt;&lt;P&gt;10662 futex(0x2b2b405a2000, FUTEX_WAKE, 1) = 0&lt;/P&gt;&lt;P&gt;10662 write(1, "Access to Intel Performance C"..., 165) = 165&lt;/P&gt;&lt;P&gt;10662 write(1, "Alternatively you can try to res"..., 91) = 91&lt;/P&gt;&lt;P&gt;10662 fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0&lt;/P&gt;&lt;P&gt;10662 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b2b405a4000&lt;/P&gt;&lt;P&gt;10662 read(0, "y\n", 1024) = 2&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 12:43:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776386#M263</guid>
      <dc:creator>Ilan</dc:creator>
      <dc:date>2011-12-15T12:43:56Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776387#M264</link>
      <description>HT (enabled/disabled) should not make a difference. Some PMU tools although not running in foreground have background drivers that are loaded all the time which might use PMU. Could you post here a list of loaded drivers ("lsmod" command output))&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Roman</description>
      <pubDate>Thu, 15 Dec 2011 13:02:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776387#M264</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2011-12-15T13:02:42Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776388#M265</link>
      <description>lsmod output:&lt;BR /&gt;&lt;P&gt;Module Size Used by&lt;/P&gt;&lt;P&gt;vxgms 316848 0&lt;/P&gt;&lt;P&gt;vxglm 271568 0&lt;/P&gt;&lt;P&gt;vxfen 300904 1&lt;/P&gt;&lt;P&gt;gab 273056 5 vxfen&lt;/P&gt;&lt;P&gt;llt 194328 5 gab&lt;/P&gt;&lt;P&gt;nfsd 287464 17&lt;/P&gt;&lt;P&gt;exportfs 38849 1 nfsd&lt;/P&gt;&lt;P&gt;auth_rpcgss 81889 1 nfsd&lt;/P&gt;&lt;P&gt;autofs4 63049 3&lt;/P&gt;&lt;P&gt;hidp 83521 2&lt;/P&gt;&lt;P&gt;freevxfs 47817 0&lt;/P&gt;&lt;P&gt;nfs 293145 8&lt;/P&gt;&lt;P&gt;nfs_acl 36673 2 nfsd,nfs&lt;/P&gt;&lt;P&gt;rfcomm 104681 0&lt;/P&gt;&lt;P&gt;l2cap 89537 10 hidp,rfcomm&lt;/P&gt;&lt;P&gt;bluetooth 118725 5 hidp,rfcomm,l2cap&lt;/P&gt;&lt;P&gt;lockd 101425 3 nfsd,nfs&lt;/P&gt;&lt;P&gt;sunrpc 203273 22 nfsd,auth_rpcgss,nfs,nfs_acl,lockd&lt;/P&gt;&lt;P&gt;be2iscsi 94173 0&lt;/P&gt;&lt;P&gt;ib_iser 68161 0&lt;/P&gt;&lt;P&gt;rdma_cm 68689 1 ib_iser&lt;/P&gt;&lt;P&gt;ib_cm 72809 1 rdma_cm&lt;/P&gt;&lt;P&gt;iw_cm 43465 1 rdma_cm&lt;/P&gt;&lt;P&gt;ib_sa 74953 2 rdma_cm,ib_cm&lt;/P&gt;&lt;P&gt;ib_mad 70757 2 ib_cm,ib_sa&lt;/P&gt;&lt;P&gt;ib_core 104901 6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad&lt;/P&gt;&lt;P&gt;ib_addr 41673 1 rdma_cm&lt;/P&gt;&lt;P&gt;iscsi_tcp 50893 0&lt;/P&gt;&lt;P&gt;bnx2i 77665 0&lt;/P&gt;&lt;P&gt;cnic 84457 1 bnx2i&lt;/P&gt;&lt;P&gt;ipv6 436449 91 cnic&lt;/P&gt;&lt;P&gt;xfrm_nalgo 43333 1 ipv6&lt;/P&gt;&lt;P&gt;crypto_api 42945 1 xfrm_nalgo&lt;/P&gt;&lt;P&gt;uio 45777 1 cnic&lt;/P&gt;&lt;P&gt;cxgb3i 64849 0&lt;/P&gt;&lt;P&gt;libcxgbi 91597 1 cxgb3i&lt;/P&gt;&lt;P&gt;cxgb3 215600 1 cxgb3i&lt;/P&gt;&lt;P&gt;libiscsi_tcp 53573 3 iscsi_tcp,cxgb3i,libcxgbi&lt;/P&gt;&lt;P&gt;libiscsi2 77765 7 be2iscsi,ib_iser,iscsi_tcp,bnx2i,cxgb3i,libcxgbi,libiscsi_tcp&lt;/P&gt;&lt;P&gt;scsi_transport_iscsi2 73945 8 be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2&lt;/P&gt;&lt;P&gt;scsi_transport_iscsi 35017 1 scsi_transport_iscsi2&lt;/P&gt;&lt;P&gt;dm_round_robin 36801 1&lt;/P&gt;&lt;P&gt;dm_multipath 58713 2 dm_round_robin&lt;/P&gt;&lt;P&gt;scsi_dh 42561 1 dm_multipath&lt;/P&gt;&lt;P&gt;video 53197 0&lt;/P&gt;&lt;P&gt;backlight 39873 1 video&lt;/P&gt;&lt;P&gt;sbs 49921 0&lt;/P&gt;&lt;P&gt;power_meter 47053 0&lt;/P&gt;&lt;P&gt;hwmon 36553 1 power_meter&lt;/P&gt;&lt;P&gt;i2c_ec 38593 1 sbs&lt;/P&gt;&lt;P&gt;i2c_core 57537 1 i2c_ec&lt;/P&gt;&lt;P&gt;dell_wmi 37601 0&lt;/P&gt;&lt;P&gt;wmi 41985 1 dell_wmi&lt;/P&gt;&lt;P&gt;button 40545 0&lt;/P&gt;&lt;P&gt;battery 43849 0&lt;/P&gt;&lt;P&gt;asus_acpi 50917 0&lt;/P&gt;&lt;P&gt;acpi_memhotplug 40517 0&lt;/P&gt;&lt;P&gt;ac 38729 0&lt;/P&gt;&lt;P&gt;parport_pc 62313 0&lt;/P&gt;&lt;P&gt;lp 47121 0&lt;/P&gt;&lt;P&gt;parport 73165 2 parport_pc,lp&lt;/P&gt;&lt;P&gt;sg 70649 0&lt;/P&gt;&lt;P&gt;shpchp 70893 0&lt;/P&gt;&lt;P&gt;bnx2x 944273 0&lt;/P&gt;&lt;P&gt;tpm_tis 48077 0&lt;/P&gt;&lt;P&gt;tpm 50273 1 tpm_tis&lt;/P&gt;&lt;P&gt;hpilo 44497 0&lt;/P&gt;&lt;P&gt;i7core_edac 46793 0&lt;/P&gt;&lt;P&gt;8021q 58449 2 cxgb3,bnx2x&lt;/P&gt;&lt;P&gt;tpm_bios 40897 1 tpm&lt;/P&gt;&lt;P&gt;serio_raw 40517 0&lt;/P&gt;&lt;P&gt;edac_mc 61217 1 i7core_edac&lt;/P&gt;&lt;P&gt;mdio 38465 1 bnx2x&lt;/P&gt;&lt;P&gt;pcspkr 36289 0&lt;/P&gt;&lt;P&gt;dm_raid45 99785 0&lt;/P&gt;&lt;P&gt;dm_message 36289 1 dm_raid45&lt;/P&gt;&lt;P&gt;dm_region_hash 46144 1 dm_raid45&lt;/P&gt;&lt;P&gt;dm_mem_cache 38977 1 dm_raid45&lt;/P&gt;&lt;P&gt;dm_snapshot 52233 0&lt;/P&gt;&lt;P&gt;dm_zero 35265 0&lt;/P&gt;&lt;P&gt;dm_mirror 54737 0&lt;/P&gt;&lt;P&gt;dm_log 44993 3 dm_raid45,dm_region_hash,dm_mirror&lt;/P&gt;&lt;P&gt;dm_mod 102289 40 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log&lt;/P&gt;&lt;P&gt;qla2xxx 1227393 40&lt;/P&gt;&lt;P&gt;scsi_transport_fc 83145 1 qla2xxx&lt;/P&gt;&lt;P&gt;ata_piix 57541 3&lt;/P&gt;&lt;P&gt;libata 208977 1 ata_piix&lt;/P&gt;&lt;P&gt;sd_mod 56513 25&lt;/P&gt;&lt;P&gt;scsi_mod 199385 13 be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2,scsi_transport_iscsi2,scsi_dh,sg,qla2xxx,scsi_transport_fc,lib&lt;/P&gt;&lt;P&gt;ata,sd_mod&lt;/P&gt;&lt;P&gt;ext3 169297 7&lt;/P&gt;&lt;P&gt;jbd 94897 1 ext3&lt;/P&gt;&lt;P&gt;uhci_hcd 57433 0&lt;/P&gt;&lt;P&gt;ohci_hcd 56181 0&lt;/P&gt;&lt;P&gt;ehci_hcd 66381 0&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:23:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776388#M265</guid>
      <dc:creator>Ilan</dc:creator>
      <dc:date>2011-12-15T13:23:08Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776389#M266</link>
      <description>Thanks for the output.&lt;BR /&gt;&lt;BR /&gt;From the list above I could not see any usual suspects that program PMU. It is not possible to find who is using PMU right now in general.&lt;BR /&gt;&lt;BR /&gt;Last try would be the following steps (in this order):&lt;BR /&gt;1. reboot your machine&lt;BR /&gt;2. stop mentioned by you perf tool&lt;BR /&gt;3. ./pcm.x 1 (answer y to reset PMU)&lt;BR /&gt;4. ./pcm.x 1 (starting again)&lt;BR /&gt;&lt;BR /&gt;If this does not help I would like to see some debug output from pcm.x: If you can, in PCM::PMUinUse() function please enable all debug output (now disabled by C++ comment //): "// std::cout" =&amp;gt; "std::cout". "make clean" then "make". Then&lt;BR /&gt;1. ./pcm.x 1 (answer y to reset PMU)&lt;BR /&gt;2. ./pcm.x 1 (starting again)&lt;BR /&gt;3. Post here the output of (1) and (2)&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Most of the PMU tools do not doPMU-busy check anyway, you can disable it too in the source code: but if this unknown tool will reprogram PMU while PCM is working, the results from PCM will not be reliable.&lt;BR /&gt;&lt;BR /&gt;To disable PMU busy check you can modify the PCM::PMUinUse() function to return &lt;STRONG&gt;false&lt;/STRONG&gt;:&lt;PRE&gt;[cpp]bool PCM::PMUinUse()
{
   return false;

// ...
}[/cpp]&lt;/PRE&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Roman</description>
      <pubDate>Thu, 15 Dec 2011 16:29:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776389#M266</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2011-12-15T16:29:07Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776390#M267</link>
      <description>Thanks,&lt;BR /&gt;below is the output with debug ouptut enaled (reset didn't help..)&lt;BR /&gt;Then I commented the call to PMUinUse (the two lines in the if the call and the return) &lt;BR /&gt;and it worked.&lt;BR /&gt;I then uncommented back - and it is still working for me - see output after the "***" line.&lt;BR /&gt;&lt;BR /&gt;Two more questions if I may&lt;BR /&gt;- If I increase the interval - would it provide me for the averages of that interval?&lt;BR /&gt;- is there any option to accumulate the results for a long interval and calculate averages?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;./pcm.x 1 -ns -nc&lt;/P&gt;&lt;P&gt;Intel Performance Counter Monitor&lt;/P&gt;&lt;P&gt;Copyright (c) 2009-2011 Intel Corporation&lt;/P&gt;&lt;P&gt;Num cores: 24&lt;/P&gt;&lt;P&gt;Num sockets: 2&lt;/P&gt;&lt;P&gt;Threads per core: 2&lt;/P&gt;&lt;P&gt;Core PMU (perfmon) version: 3&lt;/P&gt;&lt;P&gt;Number of core PMU generic (programmable) counters: 4&lt;/P&gt;&lt;P&gt;Width of generic (programmable) counters: 48 bits&lt;/P&gt;&lt;P&gt;Number of core PMU fixed counters: 3&lt;/P&gt;&lt;P&gt;Width of fixed counters: 48 bits&lt;/P&gt;&lt;P&gt;Nominal core frequency: 2933333326 Hz&lt;/P&gt;&lt;P&gt;Core 0 IA32_CR_PERF_GLOBAL_CTRL is 0&lt;/P&gt;&lt;P&gt;Access to Intel Performance Counter Monitor has denied (Performance Monitoring Unit is occupied by other application). Try to stop the application that uses PMU.&lt;/P&gt;&lt;P&gt;Alternatively you can try to reset PMU configuration at your own risk. Try to reset? (y/n)&lt;/P&gt;&lt;P&gt;y&lt;/P&gt;&lt;P&gt;PMU configuration has been reset....&lt;BR /&gt;&lt;BR /&gt;**********************************************************************************&lt;/P&gt;&lt;P&gt;Intel Performance Counter Monitor&lt;/P&gt;&lt;P&gt;Copyright (c) 2009-2011 Intel Corporation&lt;/P&gt;&lt;P&gt;Num cores: 24&lt;/P&gt;&lt;P&gt;Num sockets: 2&lt;/P&gt;&lt;P&gt;Threads per core: 2&lt;/P&gt;&lt;P&gt;Core PMU (perfmon) version: 3&lt;/P&gt;&lt;P&gt;Number of core PMU generic (programmable) counters: 4&lt;/P&gt;&lt;P&gt;Width of generic (programmable) counters: 48 bits&lt;/P&gt;&lt;P&gt;Number of core PMU fixed counters: 3&lt;/P&gt;&lt;P&gt;Width of fixed counters: 48 bits&lt;/P&gt;&lt;P&gt;Nominal core frequency: 2933333326 Hz&lt;/P&gt;&lt;P&gt;Core 0 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 1 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 2 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 3 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 4 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 5 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 6 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 7 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 8 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 9 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 10 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 11 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 12 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 13 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 14 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 15 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 16 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 17 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 18 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 19 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 20 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 21 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 22 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;Core 23 IA32_CR_PERF_GLOBAL_CTRL is 700000000&lt;/P&gt;&lt;P&gt;EXEC : instructions per nominal CPU cycle&lt;/P&gt;&lt;P&gt;IPC : instructions per CPU cycle&lt;/P&gt;&lt;P&gt;FREQ : relation to nominal CPU frequency='unhalted clock ticks'/'invariant timer ticks' (includes Intel Turbo Boost)&lt;/P&gt;&lt;P&gt;AFREQ : relation to nominal CPU frequency while in active state (not in power-saving C state)='unhalted clock ticks'/'invariant timer ticks&lt;/P&gt;&lt;P&gt;while in C0-state' (includes Intel Turbo Boost)&lt;/P&gt;&lt;P&gt;L3MISS: L3 cache misses&lt;/P&gt;&lt;P&gt;L2MISS: L2 cache misses (including other core's L2 cache *hits*)&lt;/P&gt;&lt;P&gt;L3HIT : L3 cache hit ratio (0.00-1.00)&lt;/P&gt;&lt;P&gt;L2HIT : L2 cache hit ratio (0.00-1.00)&lt;/P&gt;&lt;P&gt;L3CLK : ratio of CPU cycles lost due to L3 cache misses (0.00-1.00), in some cases could be &amp;gt;1.0 due to a higher memory latency&lt;/P&gt;&lt;P&gt;L2CLK : ratio of CPU cycles lost due to missing L2 cache but still hitting L3 cache (0.00-1.00)&lt;/P&gt;&lt;P&gt;READ : bytes read from memory controller (in GBytes)&lt;/P&gt;&lt;P&gt;WRITE : bytes written to memory controller (in GBytes)&lt;/P&gt;&lt;P&gt;Core (SKT) | EXEC | IPC | FREQ | AFREQ | L3MISS | L2MISS | L3HIT | L2HIT | L3CLK | L2CLK | READ | WRITE&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;TOTAL * 0.00 0.05 0.02 0.55 27 K 1311 K 0.98 0.00 0.00 0.05 0.01 0.00&lt;/P&gt;&lt;P&gt;Instructions retired: 56 M ; Active cycles: 1062 M ; Time (TSC): 336 Tticks ; C0 (active,non-halted) core residency: 2.76 %&lt;/P&gt;&lt;P&gt;PHYSICAL CORE IPC : 0.11 =&amp;gt; corresponds to 2.66 % utilization for cores in active state&lt;/P&gt;&lt;P&gt;Instructions per nominal CPU cycle: 0.00 =&amp;gt; corresponds to 0.04 % core utilization over time interval&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Total QPI incoming data traffic: 6944 K QPI data traffic/Memory controller traffic: 0.58&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2011 11:59:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776390#M267</guid>
      <dc:creator>Ilan</dc:creator>
      <dc:date>2011-12-19T11:59:55Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776391#M268</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Two more questions if I may&lt;/P&gt;&lt;P&gt;- If I increase the interval - would it provide me for the averages of that interval?&lt;/P&gt;&lt;P&gt;- is there any option to accumulate the results for a long interval and calculate averages?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;If you increase interval to x seconds, the pcm.x utility will output delta of performance counters for x seconds. To compute average value per second just divide all values by x.&lt;BR /&gt;&lt;BR /&gt;Other mode of collection is to let pcm.x to start a command and then it waits for its completion and outputs the delta of performance counters before the command start and after command finishes. For example: &lt;BR /&gt;&lt;PRE&gt;[bash]./pcm.x "sh ./my_benchmark_script.sh parameter1 parameter2"[/bash]&lt;/PRE&gt;&lt;BR /&gt;pcm.x will start my_benchmark_script using shell and output counter deltas when it is done.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Roman</description>
      <pubDate>Mon, 19 Dec 2011 12:31:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776391#M268</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2011-12-19T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776392#M269</link>
      <description>Thank you, this is interesting information :)</description>
      <pubDate>Tue, 20 Dec 2011 13:25:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776392#M269</guid>
      <dc:creator>key_key</dc:creator>
      <dc:date>2011-12-20T13:25:44Z</dc:date>
    </item>
    <item>
      <title>Intel PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776393#M270</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;the reason of such behavior mightalso be a BIOS related issue mentioned in &lt;A href="https://lkml.org/lkml/2011/3/24/552"&gt;https://lkml.org/lkml/2011/3/24/552&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could you please check the Linux boot log using "dmesg | grep PMU" and see if youobserve a similar message:&lt;BR /&gt;&lt;BR /&gt;"[Firmware Bug]: the BIOS has corrupted hw-PMU resources (MSR 38d is 330)"&lt;BR /&gt;&lt;BR /&gt;Disabling the PMU busy check in PCM "PCM::PMUinUse() function to return always &lt;STRONG&gt;false&lt;/STRONG&gt;" should be a quick workaround for your system. Please let us know if an HP BIOS updateis available and can fix the issue. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Roman&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 11:48:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Access-to-Intel-r-Performance-Counter-Monitor-has-denied/m-p/776393#M270</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2011-12-22T11:48:39Z</dc:date>
    </item>
  </channel>
</rss>

