<?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 I believe &amp;quot;chmod o+r,o+w on in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014270#M3834</link>
    <description>&lt;P&gt;I believe "&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;chmod o+r,o+w on the /dev/cpu/*/msr&lt;/SPAN&gt;" is still required.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2014 06:59:50 GMT</pubDate>
    <dc:creator>Roman_D_Intel</dc:creator>
    <dc:date>2014-07-31T06:59:50Z</dc:date>
    <item>
      <title>User cannot run PCM even though MSRs are R+W by Public</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014265#M3829</link>
      <description>&lt;P style="box-sizing: border-box; margin-bottom: 20px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;Hello&amp;nbsp;&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 20px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;I am using version 2.6 on RHEL 6u4. I have changed the permissions of all MSRs to +r+w by public but when I try to run ./pcm.x 1 as a common user, I am getting the following (I can run OK as root).&amp;nbsp;&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 20px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 20px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 20px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;Thanks&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 20px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;Michael&lt;/P&gt;

&lt;PRE style="box-sizing: border-box; margin-top: 1.6em; margin-bottom: 1.6em; font-family: 'Courier New', 'DejaVu Sans Mono', monospace, sans-serif; font-size: 14px; line-height: 1.6em; white-space: pre-wrap; color: rgb(102, 102, 102);"&gt;IntelPerformanceCounterMonitorV2.6 $  ./pcm.x  1

 Intel(r) Performance Counter Monitor V2.6 (2013-11-04 13:43:31 +0100 ID=db05e43)

 Copyright (c) 2009-2013 Intel Corporation

Number of physical cores: 16
Number of logical cores: 16
Threads (logical cores) per physical core: 1
Num sockets: 2
Core PMU (perfmon) version: 3
Number of core PMU generic (programmable) counters: 8
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Can not access CPUs Model Specific Registers (MSRs).
Try to execute 'modprobe msr' as root user and then
you also must have read and write permissions for /dev/cpu/*/msr devices (/dev/msr* for Android). The 'chown' command can help.
Access to Intel(r) Performance Counter Monitor has denied (no MSR or PCI CFG space access).
&lt;/PRE&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 20px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&lt;STRONG&gt;But MSRs are already R, W by &amp;nbsp;public&lt;/STRONG&gt; :&lt;/P&gt;

&lt;PRE style="box-sizing: border-box; margin-top: 1.6em; margin-bottom: 1.6em; font-family: 'Courier New', 'DejaVu Sans Mono', monospace, sans-serif; font-size: 14px; line-height: 1.6em; white-space: pre-wrap; color: rgb(102, 102, 102);"&gt;IntelPerformanceCounterMonitorV2.6 $ ll /dev/cpu/*/msr
crw-rw-rw- 1 root root 202,  0 Jul 28 17:25 /dev/cpu/0/msr
...
crw-rw-rw- 1 root root 202, 15 Jul 28 17:25 /dev/cpu/15/msr&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:20:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014265#M3829</guid>
      <dc:creator>drMikeT</dc:creator>
      <dc:date>2014-07-30T15:20:54Z</dc:date>
    </item>
    <item>
      <title>Note:</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014266#M3830</link>
      <description>&lt;P&gt;Note:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;uname -r =&amp;nbsp;&lt;STRONG&gt;2.6.32-431.20.3.el6.x86_64&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:30:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014266#M3830</guid>
      <dc:creator>drMikeT</dc:creator>
      <dc:date>2014-07-30T20:30:26Z</dc:date>
    </item>
    <item>
      <title>Thank you for your report. We</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014267#M3831</link>
      <description>&lt;P&gt;Thank you for your report. We have encountered issues on newer kernels, where some of the access rights management has been changed. There, you need to set "&lt;/P&gt;

&lt;PRE style="margin-top: 0px; margin-bottom: 10px; padding: 5px; border: 0px; font-size: 14px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow: auto; width: auto; max-height: 600px; word-wrap: normal; color: rgb(0, 0, 0); line-height: 17.804800033569336px; background: rgb(238, 238, 238);"&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; white-space: inherit; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"&gt;sudo setcap cap_sys_rawio=ep pcm.x&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I'm surprised to see issues on older kernels as well. Has Redhat backported this restriction?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 21:30:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014267#M3831</guid>
      <dc:creator>Thomas_W_Intel</dc:creator>
      <dc:date>2014-07-30T21:30:19Z</dc:date>
    </item>
    <item>
      <title>Hi Thomas,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014268#M3832</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;

&lt;P&gt;thanks for the reply.&lt;/P&gt;

&lt;P&gt;There is then NO need to chmod o+r,o+w on the /dev/cpu/*/msr devices ?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;BTW, on an&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-size: 1em; line-height: 1.5;"&gt;2.6.32-279.25.2.el6.x86_64&lt;/STRONG&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;kernel, running as root I am getting (see below). Any suggestions ?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Michael&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;#  /SOME/IntelPerformanceCounterMonitorV2.6/pcm.x 1 

 Intel(r) Performance Counter Monitor V2.6 (2013-11-04 13:43:31 +0100 ID=db05e43)

 Copyright (c) 2009-2013 Intel Corporation

Number of physical cores: 16
Number of logical cores: 16
Threads (logical cores) per physical core: 1
Num sockets: 2
Core PMU (perfmon) version: 3
Number of core PMU generic (programmable) counters: 8
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Nominal core frequency: 2600000000 Hz
Package thermal spec power: 115 Watt; Package minimum power: 51 Watt; Package maximum power: 180 Watt; 
Socket 0: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected.
Socket 1: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected.
Using PCM on your system might have a performance impact as per &lt;A href="http://software.intel.com/en-us/articles/performance-impact-when-sampling-certain-llc-events-on-snb-ep-with-vtune" target="_blank"&gt;http://software.intel.com/en-us/articles/performance-impact-when-sampling-certain-llc-events-on-snb-ep-with-vtune&lt;/A&gt;
You can avoid the performance impact by using the option --noJKTWA, however the cache metrics might be wrong then.
ERROR: QPI LL counter programming seems not to work. Q_P0_PCI_PMON_BOX_CTL=0xffffffff
       Please see BIOS options to enable the export of performance monitoring devices (devices 8 and 9: function 2).
ERROR: QPI LL counter programming seems not to work. Q_P1_PCI_PMON_BOX_CTL=0xffffffff
       Please see BIOS options to enable the export of performance monitoring devices (devices 8 and 9: function 2).
ERROR: QPI LL counter programming seems not to work. Q_P0_PCI_PMON_BOX_CTL=0xffffffff
       Please see BIOS options to enable the export of performance monitoring devices (devices 8 and 9: function 2).
ERROR: QPI LL counter programming seems not to work. Q_P1_PCI_PMON_BOX_CTL=0xffffffff
       Please see BIOS options to enable the export of performance monitoring devices (devices 8 and 9: function 2).
Max QPI link speed: 16.0 GBytes/second (8.0 GT/second)

Detected Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz "Intel(r) microarchitecture codename Sandy Bridge-EP/Jaketown"
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 21:47:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014268#M3832</guid>
      <dc:creator>drMikeT</dc:creator>
      <dc:date>2014-07-30T21:47:02Z</dc:date>
    </item>
    <item>
      <title>Thomas explained the issue</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014269#M3833</link>
      <description>&lt;P&gt;Thomas explained the issue with QPI LL &lt;A href="https://software.intel.com/en-us/articles/bios-preventing-access-to-qpi-performance-counters"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 06:58:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014269#M3833</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2014-07-31T06:58:33Z</dc:date>
    </item>
    <item>
      <title>I believe "chmod o+r,o+w on</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014270#M3834</link>
      <description>&lt;P&gt;I believe "&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;chmod o+r,o+w on the /dev/cpu/*/msr&lt;/SPAN&gt;" is still required.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 06:59:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014270#M3834</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2014-07-31T06:59:50Z</dc:date>
    </item>
    <item>
      <title>Seems that counters were</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014271#M3835</link>
      <description>&lt;P&gt;Seems that counters were locked by the BIOS.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 08:39:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014271#M3835</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-07-31T08:39:14Z</dc:date>
    </item>
    <item>
      <title>Quote:Roman Dementiev (Intel)</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014272#M3836</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Roman Dementiev (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I believe "chmod o+r,o+w on the /dev/cpu/*/msr" is still required.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thanks Roman, I've verified that indeed the MSRs should be readable and writeable by public.&lt;/P&gt;

&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 15:40:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014272#M3836</guid>
      <dc:creator>drMikeT</dc:creator>
      <dc:date>2014-07-31T15:40:04Z</dc:date>
    </item>
    <item>
      <title>Quote:Roman Dementiev (Intel)</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014273#M3837</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Roman Dementiev (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thomas explained the issue with QPI LL &lt;A href="https://software.intel.com/en-us/articles/bios-preventing-access-to-qpi-performance-counters"&gt;here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thanks, I've made a request to get access to the BIOS guides pdf.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 15:41:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/User-cannot-run-PCM-even-though-MSRs-are-R-W-by-Public/m-p/1014273#M3837</guid>
      <dc:creator>drMikeT</dc:creator>
      <dc:date>2014-07-31T15:41:11Z</dc:date>
    </item>
  </channel>
</rss>

