<?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 DVFS on Intel SandyBridge in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/DVFS-on-Intel-SandyBridge/m-p/942550#M17387</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I wanted to experiment with DVFS on Intel SandyBridge and through the Intel Manual 3B, I see that the DVFS is achieved on SandyBridge using Enhanced Intel SpeedStep.&lt;/P&gt;

&lt;P&gt;It says that IA32_PERF_CTL could be set to achieve DVFS. However the Manual does not explain how to set the lower 16 bits in IA32_PERF_CTL to achieve this. I went across searching on different forums to ascertain how to set this to no avail. However, what I could learn is that the 16 bits are divided into two 8-bit blocks that specify the Multiplier and VID.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I also found that the multiplier can be found on intel sandy bridge as&lt;/P&gt;

&lt;UL style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; line-height: normal;"&gt;
	&lt;LI style="font-size: 1.01em; line-height: 18px;"&gt;[&lt;EM&gt;CPU frequency&lt;/EM&gt;] = BCLK x [&lt;EM&gt;CPU multiplier&lt;/EM&gt;].&lt;/LI&gt;
&lt;/UL&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;I am using a Xeon E5-2680 with 2.7GHz. The &lt;A href="https://www-ssl.intel.com/content/dam/www/public/us/en/documents/datasheets/xeon-e5-1600-2600-vol-1-datasheet.pdf"&gt;data sheet&lt;/A&gt;&amp;nbsp;says the BCLK0 and BCLK1 are 100MHz(Table:6-11).&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;So the current multiplier seems to be 27.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;The VID range is&amp;nbsp;&lt;SPAN style="color: rgb(81, 83, 87); font-family: Arial, sans-serif; font-size: 12px; line-height: normal;"&gt;0.60V-1.35V.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;1. Now if I have to scale the frequency, do the go about changing 8-MSB(15-8) to any value lesser than 27 only?&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;2. Or do I need to change the 8-LSB(7-0) between 0.6 and 1.35V.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;I am aware that SandyBridge has a limited set of P-states from P0 to PN and I just can't go about setting the 16-bits as per my will.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;So, What I basically wanna know is how do I do DVFS on SandyBridge?&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;PS: Please correct me if my understanding so far is incorrect.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;Thanks in advance.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;Best,&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;Sridutt&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2013 16:43:16 GMT</pubDate>
    <dc:creator>sbhal1</dc:creator>
    <dc:date>2013-12-19T16:43:16Z</dc:date>
    <item>
      <title>DVFS on Intel SandyBridge</title>
      <link>https://community.intel.com/t5/Software-Archive/DVFS-on-Intel-SandyBridge/m-p/942550#M17387</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I wanted to experiment with DVFS on Intel SandyBridge and through the Intel Manual 3B, I see that the DVFS is achieved on SandyBridge using Enhanced Intel SpeedStep.&lt;/P&gt;

&lt;P&gt;It says that IA32_PERF_CTL could be set to achieve DVFS. However the Manual does not explain how to set the lower 16 bits in IA32_PERF_CTL to achieve this. I went across searching on different forums to ascertain how to set this to no avail. However, what I could learn is that the 16 bits are divided into two 8-bit blocks that specify the Multiplier and VID.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I also found that the multiplier can be found on intel sandy bridge as&lt;/P&gt;

&lt;UL style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; line-height: normal;"&gt;
	&lt;LI style="font-size: 1.01em; line-height: 18px;"&gt;[&lt;EM&gt;CPU frequency&lt;/EM&gt;] = BCLK x [&lt;EM&gt;CPU multiplier&lt;/EM&gt;].&lt;/LI&gt;
&lt;/UL&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;I am using a Xeon E5-2680 with 2.7GHz. The &lt;A href="https://www-ssl.intel.com/content/dam/www/public/us/en/documents/datasheets/xeon-e5-1600-2600-vol-1-datasheet.pdf"&gt;data sheet&lt;/A&gt;&amp;nbsp;says the BCLK0 and BCLK1 are 100MHz(Table:6-11).&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;So the current multiplier seems to be 27.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;The VID range is&amp;nbsp;&lt;SPAN style="color: rgb(81, 83, 87); font-family: Arial, sans-serif; font-size: 12px; line-height: normal;"&gt;0.60V-1.35V.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;1. Now if I have to scale the frequency, do the go about changing 8-MSB(15-8) to any value lesser than 27 only?&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;2. Or do I need to change the 8-LSB(7-0) between 0.6 and 1.35V.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;I am aware that SandyBridge has a limited set of P-states from P0 to PN and I just can't go about setting the 16-bits as per my will.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;So, What I basically wanna know is how do I do DVFS on SandyBridge?&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;PS: Please correct me if my understanding so far is incorrect.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;Thanks in advance.&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;Best,&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;Sridutt&lt;/P&gt;

&lt;P style="font-size: 1.01em; line-height: 18px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 16:43:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/DVFS-on-Intel-SandyBridge/m-p/942550#M17387</guid>
      <dc:creator>sbhal1</dc:creator>
      <dc:date>2013-12-19T16:43:16Z</dc:date>
    </item>
    <item>
      <title>Hi sridutt,</title>
      <link>https://community.intel.com/t5/Software-Archive/DVFS-on-Intel-SandyBridge/m-p/942551#M17388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;sridutt,&lt;/P&gt;

&lt;P&gt;Were you able to find the information? I am trying to do something similar in Haswell.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2014 00:22:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/DVFS-on-Intel-SandyBridge/m-p/942551#M17388</guid>
      <dc:creator>Mohammad_Ashraful_An</dc:creator>
      <dc:date>2014-02-07T00:22:45Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/DVFS-on-Intel-SandyBridge/m-p/942552#M17389</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I wasn't able to use&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;IA32_PERF_CTL to do DVFS. However, I used the cpufreq module that exposed the various available frequencies to choose from. By changing the scaling governor to "userspace", you can set any of the available frequencies in the "setspeed" to run at the desired frequency.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;A comprehensive post explaining how this can be done is "&lt;/SPAN&gt;Enhanced Intel SpeedStep® Technology and Demand-Based Switching on Linux"&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;​that can be found &lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/articles/enhanced-intel-speedstepr-technology-and-demand-based-switching-on-linux" style="font-size: 12px; line-height: 18px;"&gt;here&lt;/A&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;.&amp;nbsp;&lt;/SPAN&gt;The explanation for setting up CPUfreq on unix can be found&amp;nbsp;&lt;A href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Power_Management_Guide/cpufreq_setup.html"&gt;here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;And the above approach is supported on Haswell too. Frankly, it has gone better as you can set different frequency on each core, unlike the same frequency that was required on Sandybridge.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;Sridutt&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 17:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/DVFS-on-Intel-SandyBridge/m-p/942552#M17389</guid>
      <dc:creator>sbhal1</dc:creator>
      <dc:date>2015-09-03T17:27:00Z</dc:date>
    </item>
  </channel>
</rss>

