<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=19682</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=19682&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq».]]></description>
		<lastBuildDate>Fri, 10 Feb 2012 10:10:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=249870#p249870</link>
			<description><![CDATA[<div class="quotebox"><cite>nockdown пишет:</cite><blockquote><p><span style="color: blue">1) почему же тогда у меня в данный момент стоит не дефолт (не performance), а ondemand? Хотя я ничего самостоятельно не менял?<br />2) может какие-то другие опции так изменяют этот дефолт (performance)?</span></p></blockquote></div><p>На <a href="http://unixforum.org/index.php?s=&amp;showtopic=130563&amp;view=findpost&amp;p=1201322">unixforum</a> подсказывают, что причина в скрипте /etc/init.d/ondemand , который спустя 60 секунд после загрузки переключает governor в ondemand. Посмотрим содержимое /etc/init.d/ondemand :</p><div class="codebox"><pre><code>:~$ cat /etc/init.d/ondemand </code></pre></div><div class="quotebox"><blockquote><p>#! /bin/sh<br />### BEGIN INIT INFO<br /># Provides:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ondemand<br /># Required-Start:&nbsp; &nbsp; $remote_fs $all<br /># Required-Stop:<br /># Default-Start:&nbsp; &nbsp; &nbsp;2 3 4 5<br /># Default-Stop:<br /># Short-Description: Set the CPU Frequency Scaling governor to &quot;ondemand&quot;<br />### END INIT INFO</p><br /><p>PATH=/sbin:/usr/sbin:/bin:/usr/bin</p><p>. /lib/init/vars.sh<br />. /lib/lsb/init-functions</p><p>case &quot;$1&quot; in<br />&nbsp; &nbsp; start)<br />&nbsp; &nbsp; &nbsp; &nbsp; start-stop-daemon --start --background --exec /etc/init.d/ondemand -- background<br />&nbsp; &nbsp; &nbsp; &nbsp; ;;<br />&nbsp; &nbsp; background)<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 60 # probably enough time for desktop login</p><p>&nbsp; &nbsp; &nbsp; &nbsp; for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor<br />&nbsp; &nbsp; &nbsp; &nbsp; do<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ -f $CPUFREQ ] || continue<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo -n <span style="color: blue">ondemand</span> &gt; $CPUFREQ<br />&nbsp; &nbsp; &nbsp; &nbsp; done<br />&nbsp; &nbsp; &nbsp; &nbsp; ;;<br />&nbsp; &nbsp; restart|reload|force-reload)<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Error: argument &#039;$1&#039; not supported&quot; &gt;&amp;2<br />&nbsp; &nbsp; &nbsp; &nbsp; exit 3<br />&nbsp; &nbsp; &nbsp; &nbsp; ;;<br />&nbsp; &nbsp; stop)<br />&nbsp; &nbsp; &nbsp; &nbsp; ;;<br />&nbsp; &nbsp; *)<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Usage: $0 start|stop&quot; &gt;&amp;2<br />&nbsp; &nbsp; &nbsp; &nbsp; exit 3<br />&nbsp; &nbsp; &nbsp; &nbsp; ;;<br />esac</p></blockquote></div><p>Выделенный ondemand можно заменить к примеру performance. Или запретить скрипту исполнение, или удалить его. Меня же режим ondemand вполне устраивает.</p>]]></description>
			<author><![CDATA[null@example.com (nockdown)]]></author>
			<pubDate>Fri, 10 Feb 2012 10:10:04 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=249870#p249870</guid>
		</item>
		<item>
			<title><![CDATA[Re: Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=249634#p249634</link>
			<description><![CDATA[<p><strong>Fat-Zer</strong>, установлен kde 4.7.2</p><p><strong>Lupo Alberto</strong>, согласен, надо почитать, разобраться.</p><p>Кстати в биосе у меня настроено:<br />1) энергосберегающие технологии<br /><a href="http://www.probios.ru/options/cpu/energy-saving/c1e-support.html">C1E Support</a> - Enabled<br /><a href="http://www.probios.ru/options/cpu/energy-saving/inter-r-speedstep-tm-tech.html">Inter(R) SpeedStep (tm) Tech.</a> - Enabled<br />2) разгон<br /><a href="http://www.probios.ru/options/overclocking/frequency/cpu-frequency.html">CPU Frequency</a> - 400 (вместо дефолтного 333)<br />посему частота процессора 3,21 GHz, вместо дефолтого 2,66 GHz</p><br /><p>PS И ещё у меня сложилось впечатление, что линукс и разгон не дружат.<br />Попытка найти достойный аналог <a href="http://www.cpuid.com/softwares/cpu-z.html">cpu-z</a> для линукса так и не увенчалась успехом. Были опробованы 10 утилит. И все дают разные результаты и в простое, и в нагрузке. Кроме того многие из них не умеют работать в реальном времени.<br />Вот список:<br />1. cat /proc/cpuinfo | grep &quot;cpu MHz&quot;<br />2. sudo dmidecode -s processor-frequency<br />3. sudo lshw | grep &quot;size&quot; | grep &quot;MHz&quot;<br />&nbsp; &nbsp; sudo lshw | grep -m1 &quot;clock&quot;<br />4. hardinfo (graphical interface)<br />5. sysinfo (graphical interface)<br />6. cpu-g (graphical interface)<br />7. wine+cpu-z (graphical interface)<br />8. acpitool --cpu | grep &quot;Current frequency&quot;<br />9. cpufreq-info<br />10. perlmon (graphical interface)</p>]]></description>
			<author><![CDATA[null@example.com (nockdown)]]></author>
			<pubDate>Thu, 09 Feb 2012 15:11:39 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=249634#p249634</guid>
		</item>
		<item>
			<title><![CDATA[Re: Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=249600#p249600</link>
			<description><![CDATA[<p><strong>nockdown</strong>, какой-нить DE стоит? вполне может какой-нить его компонент менять...</p>]]></description>
			<author><![CDATA[null@example.com (Fat-Zer)]]></author>
			<pubDate>Thu, 09 Feb 2012 11:30:30 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=249600#p249600</guid>
		</item>
		<item>
			<title><![CDATA[Re: Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=249595#p249595</link>
			<description><![CDATA[<div class="quotebox"><cite>nockdown пишет:</cite><blockquote><p>Советуете в изменениях governor на не дефолтный ondemand винить powermgmt-base? huh</p></blockquote></div><p>Зачем уж сразу «винить», надо попытаться настроить&nbsp; wink</p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Thu, 09 Feb 2012 11:00:27 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=249595#p249595</guid>
		</item>
		<item>
			<title><![CDATA[Re: Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=249578#p249578</link>
			<description><![CDATA[<p><strong>Lupo Alberto</strong>, единственное похожее из установленного - powermgmt-base. Советуете в изменениях governor на не дефолтный ondemand винить powermgmt-base? :o </p><div class="quotebox"><blockquote><p>:~$ aptitude search power<br />p&nbsp; &nbsp;gir1.2-upowerglib-1.0 - GObject introspection data for upower<br />p&nbsp; &nbsp;gnome-power-manager - power management tool for the GNOME desktop<br />p&nbsp; &nbsp;indicator-power - Indicator showing power state. <br />p&nbsp; &nbsp;installation-guide-powerpc - Ubuntu installation guide for powerpc<br />p&nbsp; &nbsp;libpowerman0 - Client library for Powerman - Centralized PDU management<br />p&nbsp; &nbsp;libpowerman0-dev - Development files for Powerman - Centralized PDU management<br />p&nbsp; &nbsp;libupower-glib-dev - abstraction for power management - development files<br />p&nbsp; &nbsp;libupower-glib1 - abstraction for power management - shared library<br />v&nbsp; &nbsp;not+powerpc - <br />v&nbsp; &nbsp;not+powerpc - <br />v&nbsp; &nbsp;not+powerpc64 - <br />v&nbsp; &nbsp;not+powerpc64 - <br />p&nbsp; &nbsp;olpc-powerd - OLPC XO power management support daemon<br />p&nbsp; &nbsp;opendrim-lmp-powermanagement - OpenDRIM Power Management provider<br />p&nbsp; &nbsp;opendrim-lmp-powersupply - OpenDRIM Power Supply provider<br />p&nbsp; &nbsp;openerp-modules-poweremail - Enterprise Resource Management (email module)<br />p&nbsp; &nbsp;powerdebug - tool to display regulator, sensor and clock information<br />p&nbsp; &nbsp;powerman - Centralized Power Distribution Unit (PDU) management<br />p&nbsp; &nbsp;powermanagement-interface - platform neutral powermanagement interface<br />p&nbsp; &nbsp;powermanga - vertical shoot &#039;em up with colourful 3D graphics<br />p&nbsp; &nbsp;powermanga-data - graphics and audio data for powermanga<br /><strong>i&nbsp; &nbsp;powermgmt-base - общие утилиты и файлы настроек для управления питанием</strong><br />p&nbsp; &nbsp;powernap - reduce the power consumption of a system when inactive<br />p&nbsp; &nbsp;powernap-common - common library files required by powernap<br />p&nbsp; &nbsp;powernap-server - PowerNap Power Services suite<br />p&nbsp; &nbsp;powertop - Linux tool to find out what is using power on a laptop<br />p&nbsp; &nbsp;powertop-1.13 - Linux tool to find out what is using power on a laptop<br />p&nbsp; &nbsp;powerwake - remotely wake a napping system<br />p&nbsp; &nbsp;powerwake-common - common library files required by powerwake<br />p&nbsp; &nbsp;powerwaked - remotely wake a napping system - Server Daemon<br />p&nbsp; &nbsp;texpower - Macros for creating professional presentations with LaTeX<br />p&nbsp; &nbsp;texpower-examples - TeXpower examples<br />p&nbsp; &nbsp;texpower-manual - manual for the TeXpower macro bundle<br />i&nbsp; &nbsp;upower - слой абстракции для управления электропитанием<br />p&nbsp; &nbsp;upower-doc - уровень абстрации для управления питанием - документация<br />p&nbsp; &nbsp;xfce4-power-manager - power manager for Xfce desktop<br />p&nbsp; &nbsp;xfce4-power-manager-data - power manager for Xfce desktop, arch-indep files<br />p&nbsp; &nbsp;xfce4-power-manager-plugins - power manager plugins for Xfce panel</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (nockdown)]]></author>
			<pubDate>Thu, 09 Feb 2012 09:57:26 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=249578#p249578</guid>
		</item>
		<item>
			<title><![CDATA[Re: Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244969#p244969</link>
			<description><![CDATA[<p><strong>nockdown</strong>, я так понимаю, у вас установлен KDE, который имеет программу управления функциями энергосбережения <a href="http://kde-apps.org/content/show.php/PowerDevil?content=85078">powerdevil</a> или подобную — вероятно, изменения governor&#039;а последствия их работы.</p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Sat, 21 Jan 2012 19:17:29 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244969#p244969</guid>
		</item>
		<item>
			<title><![CDATA[Re: Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244967#p244967</link>
			<description><![CDATA[<p><strong>Lupo Alberto</strong>, спасибо за ответ.<br />Но я, к сожалению, не понял каким образом у меня работает другой governor (не дефолтный performance). Хотя я к этому изменению руку никак не приложил.&nbsp; cpufreqd у меня не установлен, скрипты инициализации тоже не создавал.<br />Что же его изменило на ondemand? :o</p>]]></description>
			<author><![CDATA[null@example.com (nockdown)]]></author>
			<pubDate>Sat, 21 Jan 2012 19:06:28 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244967#p244967</guid>
		</item>
		<item>
			<title><![CDATA[Re: Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244758#p244758</link>
			<description><![CDATA[<p><strong>nockdown</strong>, всё верно, показан один из governor&#039;ов по-умолчанию, остальные могут быть выбраны позже — как скриптами инициализации, так и пользовательскими приложениями.<br />Вот, например, конфигурация моего ядра:<br /></p><div class="codebox"><pre><code>lupo@gentoo-laptop ~ % zgrep GOV /proc/config.gz
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_IDLE_GOV_MENU=y</code></pre></div><p>У меня установлен пакеты cpufreqd и cpufrequtils, которые позволяют в зависимости от различных условий выбрать в том числе тот или иной governor.</p>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Fri, 20 Jan 2012 20:33:31 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244758#p244758</guid>
		</item>
		<item>
			<title><![CDATA[Настройка частоты процессора в ядре, default CPUFreq governor, cpufreq]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244755#p244755</link>
			<description><![CDATA[<p>Вопрос возник во время:<br />1. поиска аналога <a href="http://www.cpuid.com/softwares/cpu-z.html">cpu-z</a> для linux<br />2. изучения опций ядра для сборки собственного.</p><p>Так например, утилита <a href="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufreq-info.html">cpufreq-info</a> сообщила, что:<br /></p><div class="quotebox"><blockquote><p>hardware limits: 2.00 GHz - 2.66 GHz<br />available frequency steps: 2.66 GHz, 2.00 GHz<br />available cpufreq governors: conservative, ondemand, userspace, powersave, performance<br /><span class="bbu">current policy:</span> frequency should be within 2.00 GHz and 2.66 GHz. The governor &quot;<span style="color: blue">ondemand</span>&quot; may decide which speed to use within this range.<br />current CPU frequency is 2.00 GHz.</p></blockquote></div><p>а <a href="http://manpages.ubuntu.com/manpages/hardy/man1/acpitool.1.html">acpitool --cpu</a> подтверждает:<br /></p><div class="quotebox"><blockquote><p>Min/Max frequency&nbsp; &nbsp; &nbsp; : 1998/2664 MHz&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />Current frequency&nbsp; &nbsp; &nbsp; : 1998 MHz&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><span class="bbu">Frequency governor</span>&nbsp; &nbsp; &nbsp;: <span style="color: blue">ondemand</span></p></blockquote></div><p>Но вот текущий конфиг ядра, взятый:<br /></p><div class="codebox"><pre><code>cat /boot/config-`uname -r` | grep CONFIG_CPU_FREQ_DEFAULT_GOV</code></pre></div><p>показывает:<br /></p><div class="quotebox"><blockquote><p><span class="bbu">CONFIG_CPU_FREQ_DEFAULT_GOV</span>_<span style="color: blue">PERFORMANCE</span>=y<br /># CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set<br /># CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set<br /># CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set<br /># CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set</p></blockquote></div><p><strong>Как же так? В ядре <a href="http://www.kernel.org/doc/menuconfig/drivers-cpufreq-Kconfig.html#CPU_FREQ_GOV_PERFORMANCE">performance</a>, а по факту <a href="http://www.kernel.org/doc/menuconfig/drivers-cpufreq-Kconfig.html#CPU_FREQ_DEFAULT_GOV_ONDEMAND">ondemand</a> ???</strong> :unsure: </p><p>PS ядро дефолтное, никаких изменений в него не вносилось.<br />PPS система - kubuntu 11.10</p>]]></description>
			<author><![CDATA[null@example.com (nockdown)]]></author>
			<pubDate>Fri, 20 Jan 2012 20:22:31 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244755#p244755</guid>
		</item>
	</channel>
</rss>
