{"id":127,"date":"2007-03-17T23:57:14","date_gmt":"2007-03-17T22:57:14","guid":{"rendered":"http:\/\/jerome.harckmans.be\/?p=127"},"modified":"2007-03-17T23:57:14","modified_gmt":"2007-03-17T22:57:14","slug":"frequency-scaling","status":"publish","type":"post","link":"https:\/\/jerome.harckmans.be\/?p=127","title":{"rendered":"Frequency scaling"},"content":{"rendered":"<p>Processors are often underused: the most common tasks like web surfing, chatting, etc don&#8217;t demand much CPU power. Even multimedia applications like photo editing don&#8217;t push processors to the limit. Using <a href=\"http:\/\/www.gentoo.org\" title=\"Gentoo - the best distro ever!\">Gentoo<\/a> allows you however to use 100% of your processor when updating world for example&#8230;<\/p>\n<p>But apart of that, why would you let your processor running at its maximal frequency clock? Configuring your kernel the right way, and performing a simple command make frequency scaling a reality on your computer. The following applies to a &#8220;PowerNow!&#8221; capable CPU, like an AMD64 for example.<\/p>\n<p>First check for the following options in your kernel config:<\/p>\n<div class=\"coding\">\n<pre>\nPower management options  --->\n CPU Frequency scaling  --->\n  [*] CPU Frequency scaling\n   <*> 'conservative' cpufreq governor\n   <*> AMD Opteron\/Athlon64 PowerNow!\n   [*] ACPI Processor P-States driver\n<\/pre>\n<\/div>\n<p>That should add the support for scaling your processor frequency. If you want your processor to scale its frequency depending on the demand, simply do (as root):<\/p>\n<div class=\"coding\">\necho ondemand &gt; \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_governor\n<\/div>\n<p>To put it back at its maximal frequency, no matter the demand, do:<\/p>\n<div class=\"coding\">\necho performance &gt; \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_governor\n<\/div>\n<p>To make this permanent (i.e. upon each reboot), simply add this line to the <strong>\/etc\/conf.d\/local.start<\/strong> file.<\/p>\n<p>That&#8217;s it! Of course, it&#8217;s just a part of <a href=\"http:\/\/gentoo-wiki.com\/HOWTO_PowerNow!\" title=\"Gentoo wiki - PowerNow!\">the whole story<\/a>, but that&#8217;s just enough for me to remember how I shall do it if things screw up&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Processors are often underused: the most common tasks like web surfing, chatting, etc don&#8217;t demand much CPU power. Even multimedia applications like photo editing don&#8217;t push processors to the limit.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,6],"tags":[],"_links":{"self":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/posts\/127"}],"collection":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127"}],"version-history":[{"count":0,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions"}],"wp:attachment":[{"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jerome.harckmans.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}