forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
26 lines
5.2 KiB
HTML
26 lines
5.2 KiB
HTML
<a name="EN-US_TOPIC_0081116680"></a><a name="EN-US_TOPIC_0081116680"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Set the BMS CPU Frequency Governor?</h1>
|
|
<div id="body1506585515862"><p id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_p3104121134415">Generally, CPU frequency governors include <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b842352706142444">performance</strong>, <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b842352706142448">powersave</strong>, and <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b842352706142452">ondemand</strong>. You can select a one based on service requirements.</p>
|
|
<p id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_p53115150619">Assume that you want to set the CPU frequency governor to <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b11677165052915">performance</strong>.</p>
|
|
<ul id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_ul193689382449"><li id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li89491554144514">Red Hat 6<p id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_p1591465504512"><a name="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li89491554144514"></a><a name="en-us_topic_0094568757_li89491554144514"></a>Make the following modification in the <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b842352706171539">/etc/sysconfig/cpuspeed</strong> file:</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_screen417811369464">GOVERNOR=performance</pre>
|
|
</li><li id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li689310517475">Red Hat 7<p id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_p1420815854712"><a name="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li689310517475"></a><a name="en-us_topic_0094568757_li689310517475"></a>Make the following modification in the <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b1473294388">/etc/sysconfig/cpupower</strong> file:</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_screen4994194214474">CPUPOWER_START_OPTS="frequency-set -g performance"</pre>
|
|
</li><li id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li148004714415">Debian Gnu/Linux 8<p id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_p153972994810"><a name="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li148004714415"></a><a name="en-us_topic_0094568757_li148004714415"></a>Make the following modification in the <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b1269478571">/etc/init.d/cpufrequtils</strong> file:</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_screen1561914318485">GOVERNOR="performance"</pre>
|
|
</li></ul>
|
|
<div class="note" id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_note15843434114919"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_ul556845117519"><li id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li65681251105113">You can run the <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b589758033171956">yum install</strong> <em id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_i797118339171956">Software name</em> command to install the software you need, or download the software (.rpm package) from the official website and install it.</li><li id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li17750105235118">You can configure a script for Red Hat 6 to automatically load the intel_pstate driver and make the preceding configurations take effect upon OS startup.<ol id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_ol1264110735213"><li id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li19641147145217">Run the following command to create the <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b84235270619455">intel_pstate.modules</strong> file:<p id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_p126651621165215"><strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b889863225216">vi /etc/sysconfig/modules/intel_pstate.modules</strong></p>
|
|
</li><li id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li95831017185211">Add the following information into the file:<pre class="screen" id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_screen16801145719522">/sbin/modprobe intel_pstate > /dev/null 2>&1</pre>
|
|
</li><li id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li1513316165525">Press <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b1020145644117">Esc</strong> and enter <strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b1820795618417">:wq!</strong> to save the configuration.</li><li id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li677413259547">Run the following commands to modify the file permission:<p id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_p10816204145415"><a name="EN-US_TOPIC_0081116680__en-us_topic_0094568757_li677413259547"></a><a name="en-us_topic_0094568757_li677413259547"></a><strong id="EN-US_TOPIC_0081116680__en-us_topic_0094568757_b1210274555415">chmod 755 /etc/sysconfig/modules/intel_pstate.modules</strong></p>
|
|
</li></ol>
|
|
</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0081116841.html">FAQ</a></div>
|
|
</div>
|
|
</div>
|
|
|