<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>codemonkey.org.uk &#187; cpufreq</title>
	<atom:link href="http://www.codemonkey.org.uk/tag/cpufreq/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codemonkey.org.uk</link>
	<description>Dave Jones' Linux &#38; opensource stuff.</description>
	<lastBuildDate>Sat, 03 Jul 2010 23:33:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>When acpi-cpufreq fails.</title>
		<link>http://www.codemonkey.org.uk/2009/07/21/acpicpufreq-fails/</link>
		<comments>http://www.codemonkey.org.uk/2009/07/21/acpicpufreq-fails/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 23:17:56 +0000</pubDate>
		<dc:creator>davej</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[acpi]]></category>
		<category><![CDATA[acpi-cpufreq]]></category>
		<category><![CDATA[bios]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[cpufreq]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.codemonkey.org.uk/?p=208</guid>
		<description><![CDATA[The majority of modern CPUs that support CPU scaling now use a common driver (acpi-cpufreq). Judging by the search queries that hit my blog, and the amount of mail I get on the subject, there is a failure mode of this driver that many people are hitting, that there isn&#8217;t a great deal of information [...]<p><a href="http://www.codemonkey.org.uk/2009/07/21/acpicpufreq-fails/">When acpi-cpufreq fails.</a> is a post from: <a href="http://www.codemonkey.org.uk">codemonkey.org.uk</a></p>



No related posts.]]></description>
			<content:encoded><![CDATA[<p>The majority of modern CPUs that support CPU scaling now use a common driver (acpi-cpufreq).  Judging by the search queries that hit my blog, and the amount of mail I get on the subject, there is a failure mode of this driver that many people are hitting, that there isn&#8217;t a great deal of information on.</p>
<p>The failure mode looks like this:</p>
<blockquote><p>
$ modprobe acpi-cpufreq<br />
FATAL: Error inserting (/lib/modules/&#8230;/kernel/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.ko): No such device
</p></blockquote>
<p>Not particularly informative.  We don&#8217;t spit out anything helpful to dmesg either. So what is the cause of this problem?<br />
In many cases, /proc/cpuinfo shows the cpu supports speedstep (the &#8216;est&#8217; flag). The answer in nearly all of these cases is.. The BIOS.  The ACPI tables in the BIOS list which P-states a particular CPU supports.  If your CPU was manufactured after your BIOS was written, you&#8217;re probably going to be out of luck.  Sometimes, there are BIOS updates on the motherboard manufacturers website that will add support for newer processors.  Sometimes we aren&#8217;t so lucky. In these cases, we&#8217;re out of luck, there&#8217;s nothing we can do.</p>
<p>There is another possibility for the error message above: kernel bugs.  We have introduced bugs in the ACPI interpretor in the past which have broken parsing of the P-states on some platforms.  These kinds of bugs tend to get noticed very quickly, and fixed in equally short time, but it&#8217;s worth making a point that it&#8217;s important to be running on the last kernel version before reporting bugs.</p>
<p><a href="http://www.codemonkey.org.uk/2009/07/21/acpicpufreq-fails/">When acpi-cpufreq fails.</a> is a post from: <a href="http://www.codemonkey.org.uk">codemonkey.org.uk</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.codemonkey.org.uk/2009/07/21/acpicpufreq-fails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Forthcoming p4-clockmod changes.</title>
		<link>http://www.codemonkey.org.uk/2009/01/18/forthcoming-p4clockmod/</link>
		<comments>http://www.codemonkey.org.uk/2009/01/18/forthcoming-p4clockmod/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 04:37:51 +0000</pubDate>
		<dc:creator>davej</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cpufreq]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[p4-clockmod]]></category>

		<guid isPermaLink="false">http://www.codemonkey.org.uk/?p=86</guid>
		<description><![CDATA[In 2.6.29, the p4-clockmod cpufreq driver has been changed so that it no longer exports a cpufreq interface to sysfs. This will no doubt have some people complaining that they can no longer change their CPU frequency. The thing is, they never could. From a recent posting to the cpufreq list: I have a laptop [...]<p><a href="http://www.codemonkey.org.uk/2009/01/18/forthcoming-p4clockmod/">Forthcoming p4-clockmod changes.</a> is a post from: <a href="http://www.codemonkey.org.uk">codemonkey.org.uk</a></p>



No related posts.]]></description>
			<content:encoded><![CDATA[<p>In 2.6.29, the p4-clockmod cpufreq driver has been changed so that it no longer exports a cpufreq interface to sysfs.<br />
This will no doubt have some people complaining that they can no longer change their CPU frequency.</p>
<p>The thing is, they never could.</p>
<p>From a recent posting to the cpufreq list:</p>
<blockquote><p>
I have a laptop (ASUS W7J) with an Intel Core2 T7200 2GHz.<br />
&#8230;<br />
When I use the p4-clockmod, I get:</p>
<p>available frequency steps: 250 MHz, 500 MHz, 750 MHz, 1.00 GHz, 1.25 GHz, 1.50 GHz, 1.75 GHz, 2.00 GHz<br />
&#8230;</p></blockquote>
<p>For every one of those &#8216;frequency&#8217; options, the CPU is actually running at 2GHz. It never changes speed. Not at all.<br />
The p4-clockmod driver abuses the cpufreq interface to expose a clock modulation feature that has been in processors for a long time. (Even the earlier pentiums had a variant of it).  The driver modulates the clock applied to the processor so that instead of every clock cycle meaning the processor gets do some work, only a percentage of the clocks make the CPU do real work.  The remainder of the time, the processor just sits there.</p>
<p>So the 1.00GHz &#8216;frequency&#8217; is actually &#8220;run at 2GHz, but only do work 50% of the time&#8221;.</p>
<p>On the surface, this sounds like a good idea.  The other 50%, the CPU is idle, so you&#8217;re saving power, right?<br />
Not so much.  In fact, you could be burning <b>more</b> power.  The reason for this is that when the processor is sitting there doing nothing, it isn&#8217;t lower frequency, and more importantly, it very likely isn&#8217;t entering C states. So you&#8217;re burning the same amount of power, but now you&#8217;re only doing work for 50% of the time. As a result of this, your workload takes twice as long to complete.</p>
<p>If it isn&#8217;t saving any power, what is the point of this at all ?<br />
A clue is revealed by reading the Intel programmers guide for this feature; it&#8217;s closely tied to the processors thermal monitoring feature.  The idea of this feature is that when the CPU overheats, it can &#8216;back off&#8217; a little, to prevent overheating. The temperature of a processor isn&#8217;t constant. When running flat out, it will generate more heat.  So by modulating the clock, the maximum amount of heat possible to generate decreases.</p>
<p>The changes merged into the 2.6.29rc kernel remove the user-visible interface, and replace it with direct calls from the ACPI code that gets triggered on thermal events.  It&#8217;s all entirely automatic now.</p>
<p><a href="http://www.codemonkey.org.uk/2009/01/18/forthcoming-p4clockmod/">Forthcoming p4-clockmod changes.</a> is a post from: <a href="http://www.codemonkey.org.uk">codemonkey.org.uk</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.codemonkey.org.uk/2009/01/18/forthcoming-p4clockmod/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
