<?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 What happens when you do, in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126075#M6299</link>
    <description>&lt;P&gt;What happens when you do,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;sudo cpupower frequency-set -g performance ?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;This should put the CPU to max non-turbo freq. which is 2.2GHz.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;userspace governor is similar to ondemand which is Demand based P-state switching.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Sep 2018 17:38:00 GMT</pubDate>
    <dc:creator>Kishore__Nanda</dc:creator>
    <dc:date>2018-09-11T17:38:00Z</dc:date>
    <item>
      <title>How can I lock my Xeon CPU frequency in Ubuntu?</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126073#M6297</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Recently I'm trying to set my CPU frequency to a fixed value for my research. It seems a simply issue but there is a problem.&lt;/P&gt;

&lt;P&gt;My machine is a Server (Dell PowerEdge R730xd).&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The CPU is Intel Xeon E5 2630 v4 2.2GHz.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The OS and kernel is Ubuntu 16.04 and 4.15.0-33-generic.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The current settings are as follows:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;1) intel_pstate driver is disabled (Add "intel_pstate=disable" to /etc/default/grub)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver will show&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;acpi-cpufreq&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;2) userspace governor is used (&lt;/SPAN&gt;sudo cpupower frequency-set -g userspace)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor will show&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;userspace&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;3) the target frequency is set (s&lt;/SPAN&gt;udo cpupower frequency-set -f 2.2G)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq will show&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;2200000&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;4) the current BIOS power management settings are as follows:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;CPU Power Management -&amp;gt; OS DBPM (i.e., OS Control)&lt;/LI&gt;
	&lt;LI&gt;Memory Frequency -&amp;gt; Maximum Performance&lt;/LI&gt;
	&lt;LI&gt;Turbo Boost -&amp;gt; Disabled&lt;/LI&gt;
	&lt;LI&gt;C1E -&amp;gt; Disabled (When set to Enabled, the processor is allowed to switch to minimum performance state when idle)&lt;/LI&gt;
	&lt;LI&gt;C States -&amp;gt; Disabled (C States allow the processor to enter lower power states when idle)&lt;/LI&gt;
	&lt;LI&gt;Collaborative CPU Performace Control -&amp;gt; Enabled&lt;/LI&gt;
	&lt;LI&gt;Uncore Frequency -&amp;gt; Maximum&lt;/LI&gt;
	&lt;LI&gt;Energy Efficient Policy -&amp;gt; Performance (And there are other options, e.g.,&amp;nbsp;&lt;EM&gt;Balanced Performance / Balanced Energy / Energy Efficient&lt;/EM&gt;）&lt;/LI&gt;
	&lt;LI&gt;Monitor/Mwait -&amp;gt; Enabled&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;However&lt;/STRONG&gt;, by using&amp;nbsp;&lt;EM&gt;watch -n 1 "cat /proc/cpuinfo | grep MHz"&lt;/EM&gt;&amp;nbsp;to monitor the current CPU frequency, I find that the frequency is always changing. (Using i7z is the same).&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Only when the load becomes higher (e.g., use&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-size: 1em; line-height: 1.5;"&gt;&lt;STRONG&gt;stress -c 40&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;) the CPU frequency will remain stable in 2.2GHz.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;So, how can I lock my CPU frequency?&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Any help is really appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 10:52:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126073#M6297</guid>
      <dc:creator>pang__pu</dc:creator>
      <dc:date>2018-09-10T10:52:26Z</dc:date>
    </item>
    <item>
      <title>Help!</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126074#M6298</link>
      <description>&lt;P&gt;Help!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 10:40:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126074#M6298</guid>
      <dc:creator>pang__pu</dc:creator>
      <dc:date>2018-09-11T10:40:14Z</dc:date>
    </item>
    <item>
      <title>What happens when you do,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126075#M6299</link>
      <description>&lt;P&gt;What happens when you do,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;sudo cpupower frequency-set -g performance ?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;This should put the CPU to max non-turbo freq. which is 2.2GHz.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;userspace governor is similar to ondemand which is Demand based P-state switching.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 17:38:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126075#M6299</guid>
      <dc:creator>Kishore__Nanda</dc:creator>
      <dc:date>2018-09-11T17:38:00Z</dc:date>
    </item>
    <item>
      <title>Your configuration options</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126076#M6300</link>
      <description>&lt;P&gt;Your configuration options look good.&amp;nbsp; The only other obvious option is to add "poll=idle" to the boot line (to eliminate the use of C1 state), but that may be a big problem if you have HyperThreading enabled.&lt;/P&gt;

&lt;P&gt;Due to the inability to control the duration of the timing interval, I would not trust /proc/cpuinfo for (or "cpupower frequency-info") to get the frequency.&amp;nbsp;&amp;nbsp; I often find that the frequency reported by these varies between 1.2 GHz and the requested frequency.&amp;nbsp; I get much more stable numbers with my own "active spinner" program that reads the fixed-function counters and the TSC, increments a counter a billion times,&amp;nbsp; reads the counters again, reports the elapsed core cycles, reference cycles, instructions, and the computed average utilization, average frequency, and average IPC.&amp;nbsp; (The program repeats forever until killed.)&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You might also want to check the value in MSR 0x64c (MSR_TURBO_ACTIVATION_RATIO).&amp;nbsp; Requests for this frequency or higher are considered by the hardware to be requests for the maximum Turbo frequency.&amp;nbsp; I have seen this configured incorrectly on some systems to be lower than the nominal frequency -- so requests for the nominal frequency are interpreted as "max Turbo" requests.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 19:33:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126076#M6300</guid>
      <dc:creator>McCalpinJohn</dc:creator>
      <dc:date>2018-09-11T19:33:46Z</dc:date>
    </item>
    <item>
      <title>Hi, Kishore</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126077#M6301</link>
      <description>&lt;P&gt;Hi, Kishore&lt;/P&gt;

&lt;P&gt;Thank you for your reply.&lt;/P&gt;

&lt;P&gt;If I run&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;sudo cpupower frequency-set -g performance&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;, the frequencies of cores will change from 1.2GHz to 2.2GHz at all times, but they will not stay at 2.2 GHz.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 03:06:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126077#M6301</guid>
      <dc:creator>pang__pu</dc:creator>
      <dc:date>2018-09-12T03:06:57Z</dc:date>
    </item>
    <item>
      <title>Hi, Dr. Bandwidth</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126078#M6302</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN style="color: rgb(96, 96, 96); font-size: 13.008px; line-height: 19.512px;"&gt;Dr. Bandwidth&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Add idel = poll to grub has solved my problem.&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;That is great!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 03:30:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126078#M6302</guid>
      <dc:creator>pang__pu</dc:creator>
      <dc:date>2018-09-12T03:30:37Z</dc:date>
    </item>
    <item>
      <title>Thanks Dr. Bandwidth,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126079#M6303</link>
      <description>&lt;P&gt;Thanks Dr. Bandwidth,&lt;/P&gt;

&lt;P&gt;Yes, I have seen "idle=poll" pegging the CPU to constant freq. (if Turbo is ON, max all core Turbo. If not, max non-turbo ratio).&lt;/P&gt;

&lt;P&gt;You can do this w/o having to reboot the host by:&lt;/P&gt;

&lt;P&gt;cpupower idle-set -D 0 -----&amp;gt; -D 0 means exit latency is 0 microSec. Always in C0 state.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 03:44:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126079#M6303</guid>
      <dc:creator>Kishore__Nanda</dc:creator>
      <dc:date>2018-09-14T03:44:01Z</dc:date>
    </item>
    <item>
      <title>Hello everyone,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126080#M6304</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a question regarding the fixed value for the CPU frequency and&amp;nbsp; cooling fan speed.&lt;/P&gt;&lt;P&gt;I have Intel NUC ( Intel Core, i7-6770 HQ&amp;nbsp;CPU@ 2.60 GHz)&lt;/P&gt;&lt;P&gt;1. Is it possible to run CPU at some fixed&amp;nbsp;frequency? If yes, is it suppose to be configured from BIOS?&lt;/P&gt;&lt;P&gt;2. Is&amp;nbsp;there are any way to configure the cooling fan speed for a fixed value? If yes, how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 09:37:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-can-I-lock-my-Xeon-CPU-frequency-in-Ubuntu/m-p/1126080#M6304</guid>
      <dc:creator>Muyassarov__Feruz</dc:creator>
      <dc:date>2019-04-12T09:37:34Z</dc:date>
    </item>
  </channel>
</rss>

