<?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 AFAIK some of MSRs are only in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025593#M4135</link>
    <description>&lt;P&gt;AFAIK some of MSRs are only accessible from BIOS.&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2015 18:39:14 GMT</pubDate>
    <dc:creator>Bernard</dc:creator>
    <dc:date>2015-05-27T18:39:14Z</dc:date>
    <item>
      <title>Intel PCM - Can not access CPUs Model Specific Registers MSR</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025589#M4131</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I am pretty new on PCM. Basically, I added some CPU counters in my test code and when I try to run my test I got the following output:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Number of physical cores: 8&lt;BR /&gt;
	Number of logical cores: 16&lt;BR /&gt;
	Threads (logical cores) per physical core: 2&lt;BR /&gt;
	Num sockets: 2&lt;BR /&gt;
	Core PMU (perfmon) version: 3&lt;BR /&gt;
	Number of core PMU generic (programmable) counters: 4&lt;BR /&gt;
	Width of generic (programmable) counters: 48 bits&lt;BR /&gt;
	Number of core PMU fixed counters: 3&lt;BR /&gt;
	Width of fixed counters: 48 bits&lt;BR /&gt;
	Can not access CPUs Model Specific Registers (MSRs).&lt;BR /&gt;
	Try to execute 'modprobe msr' as root user and then&lt;BR /&gt;
	you also must have read and write permissions for /dev/cpu/*/msr devices (/dev/msr* for Android). The 'chown' command can help.&lt;BR /&gt;
	Segmentation fault (core dumped)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So what I did was:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Login as root&lt;/LI&gt;
	&lt;LI&gt;Execute the command 'modprobe msr'&lt;/LI&gt;
	&lt;LI&gt;Run chmod -R ugo+rw /dev/cpu/&lt;/LI&gt;
	&lt;LI&gt;I also checked if the msr module was correctly loaded using modprobe -l | grep msr, and the output was&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;"&gt;lib/modules/3.0.101-0.7.17-&lt;/SPAN&gt;&lt;WBR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;" /&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;"&gt;default/kernel/drivers/scsi/&lt;/SPAN&gt;&lt;WBR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;" /&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;"&gt;arcmsr/arcmsr.ko&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;But I am still getting the same error.&lt;/P&gt;

&lt;P&gt;Any thoughts about that?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Many thanks,&lt;/P&gt;

&lt;P&gt;Mahieddine&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 15:52:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025589#M4131</guid>
      <dc:creator>Mahieddine_D_</dc:creator>
      <dc:date>2014-05-28T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Hello Mahieddine,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025590#M4132</link>
      <description>&lt;P&gt;Hello Mahieddine,&lt;/P&gt;

&lt;P&gt;When you use the base code (without your changes), does the code work properly?&lt;/P&gt;

&lt;P&gt;If so, then you probably introduced errors with your changes.&lt;/P&gt;

&lt;P&gt;Pat&lt;/P&gt;

&lt;DIV class="forum-post-date"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 May 2014 17:47:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025590#M4132</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2014-05-28T17:47:46Z</dc:date>
    </item>
    <item>
      <title>Hi Patrick,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025591#M4133</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;

&lt;P&gt;Actually just find out that pcm shoul run as root. So I just had to do a script to load my user environment while login as root.&lt;/P&gt;

&lt;P&gt;Thanks though for the help&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 18:32:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025591#M4133</guid>
      <dc:creator>Mahieddine_D_</dc:creator>
      <dc:date>2014-05-28T18:32:20Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025592#M4134</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;P style="font-size: 13.0080003738403px; line-height: 13.0080003738403px;"&gt;Hi,&lt;/P&gt;

	&lt;P style="font-size: 13.0080003738403px; line-height: 13.0080003738403px;"&gt;I am using a Docker container (https://www.docker.com/) on our server and I am facing an identical problem. I am root in my container but still I am receiving this message. Is the problem from using the container or there is a way to fix it.&lt;/P&gt;

	&lt;P style="font-size: 13.0080003738403px; line-height: 13.0080003738403px;"&gt;Message:&lt;/P&gt;

	&lt;P style="font-size: 13.0080003738403px; line-height: 13.0080003738403px;"&gt;Can not access CPUs Model Specific Registers (MSRs).&lt;BR /&gt;
		Try to execute 'modprobe msr' as root user and then&lt;BR /&gt;
		you also must have read and write permissions for /dev/cpu/*/msr devices (/dev/msr* for Android). The 'chown' command can help.&lt;BR /&gt;
		Access to Intel(r) Performance Counter Monitor has denied (no MSR or PCI CFG space access).&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 May 2015 07:48:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025592#M4134</guid>
      <dc:creator>Mohammadreza_N_</dc:creator>
      <dc:date>2015-05-26T07:48:15Z</dc:date>
    </item>
    <item>
      <title>AFAIK some of MSRs are only</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025593#M4135</link>
      <description>&lt;P&gt;AFAIK some of MSRs are only accessible from BIOS.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2015 18:39:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025593#M4135</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2015-05-27T18:39:14Z</dc:date>
    </item>
    <item>
      <title>Hello Mohammadreza,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025594#M4136</link>
      <description>&lt;P&gt;Hello&lt;A href="https://software.intel.com/en-us/user/1153886"&gt; Mohammadreza&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;Is Docker something like a virtual machine? If so, I don't think PCM works in virtual environments because virtual machines usually restrict access to most MSRs.&lt;/P&gt;

&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2015 19:02:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025594#M4136</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2015-05-27T19:02:10Z</dc:date>
    </item>
    <item>
      <title>Hello Pat,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025595#M4137</link>
      <description>&lt;P style="font-size: 13.0080003738403px; line-height: 13.0080003738403px;"&gt;Hello Pat,&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 13.0080003738403px;"&gt;No, it is not like a virtual machine. In docker each user can has a container which is run by a thread on the main OS. I am no expert in knowing Docker, but I think there are some limitations for each container to keep it safe to invade other users' containers, though, I am not fully sure and that is why I am here!&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 13.0080003738403px;"&gt;I have asked this question on Docker forum as well; yet without any reply!&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Patrick Fay (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hello&lt;A href="https://software.intel.com/en-us/user/1153886"&gt; Mohammadreza&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;Is Docker something like a virtual machine? If so, I don't think PCM works in virtual environments because virtual machines usually restrict access to most MSRs.&lt;/P&gt;

&lt;P&gt;Pat&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2015 07:11:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025595#M4137</guid>
      <dc:creator>Mohammadreza_N_</dc:creator>
      <dc:date>2015-05-28T07:11:12Z</dc:date>
    </item>
    <item>
      <title>I would try running PCM on</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025596#M4138</link>
      <description>&lt;P&gt;I would try running PCM on the same machine without docker. Lets say PCM works in this case.&lt;/P&gt;

&lt;P&gt;Then run PCM the exact same way inside docker on the same system. If PCM no longer works then I'd say docker is preventing it from accessing the HW.&lt;/P&gt;

&lt;P&gt;Sorry to not be more helpful.&lt;/P&gt;

&lt;P&gt;Pat&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2015 13:19:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025596#M4138</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2015-05-28T13:19:52Z</dc:date>
    </item>
    <item>
      <title>Quote:Mohammadreza N. wrote:</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025597#M4139</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Mohammadreza N. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using a Docker container (&lt;A href="https://www.docker.com/"&gt;https://www.docker.com/&lt;/A&gt;) on our server and I am facing an identical problem. I am root in my container but still I am receiving this message. Is the problem from using the container or there is a way to fix it.&lt;/P&gt;&lt;P&gt;Message:&lt;/P&gt;&lt;P&gt;Can not access CPUs Model Specific Registers (MSRs).&lt;BR /&gt;Try to execute 'modprobe msr' as root user and then&lt;BR /&gt;you also must have read and write permissions for /dev/cpu/*/msr devices (/dev/msr* for Android). The 'chown' command can help.&lt;BR /&gt;Access to Intel(r) Performance Counter Monitor has denied (no MSR or PCI CFG space access).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to run PCM in a docker container if you specify --privileged flag like here:&amp;nbsp;&lt;A href="https://github.com/opcm/pcm/blob/master/DOCKER_README.md"&gt;https://github.com/opcm/pcm/blob/master/DOCKER_README.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 09:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-Can-not-access-CPUs-Model-Specific-Registers-MSR/m-p/1025597#M4139</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2020-05-16T09:34:00Z</dc:date>
    </item>
  </channel>
</rss>

