<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>The Changelog - Environment &amp; Energy</title>
    <link>http://changelog.complete.org/</link>
    <description>Viewpoints on technology, society, and government</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.1.4 - http://www.s9y.org/</generator>
    <pubDate>Wed, 28 May 2008 15:30:24 GMT</pubDate>

    <image>
        <url>http://changelog.complete.org/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: The Changelog - Environment &amp; Energy - Viewpoints on technology, society, and government</title>
        <link>http://changelog.complete.org/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Bicycling to Work</title>
    <link>http://changelog.complete.org/posts/715-Bicycling-to-Work.html</link>
            <category>Environment &amp; Energy</category>
            <category>Outdoors</category>
    
    <comments>http://changelog.complete.org/posts/715-Bicycling-to-Work.html#comments</comments>
    <wfw:comment>http://changelog.complete.org/wfwcomment.php?cid=715</wfw:comment>

    <wfw:commentRss>http://changelog.complete.org/rss.php?version=2.0&amp;type=comments&amp;cid=715</wfw:commentRss>
    

    <author>nospam@example.com (John Goerzen)</author>
    <content:encoded>
    We hear a lot these days about the price of gas, energy efficiency, and the like.  But, in the United States, outside of a few progressive cities, there aren&#039;t a lot of people that are using the ultimate zero-emissions transportation technology: bicycles.&lt;br /&gt;
&lt;br /&gt;
That&#039;s really too bad, because bicycles are a lot cheaper to operate than cars even before you consider gas prices.  They also are great exercise and are probably faster, safer, and more convenient than you think.&lt;br /&gt;
&lt;br /&gt;
I live about 10 miles (16 km) from work, which includes several miles on sand roads.  I haven&#039;t bicycled in about 6 years.  Last week, I got my bicycle out, touched it up a bit, and started riding.  Sunday I rode in to work and back as a test.  As soon as I get a bit of gear (hopefully by the middle of next week), I plan to start riding bike to work at least 3 days a week.&lt;br /&gt;
&lt;br /&gt;
I&#039;ve picked up some tips along the way.  Let&#039;s talk about a few of them.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Safety&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Many people think bicycling is dangerous.  In fact, bicycling is &lt;a href=&quot;http://davesbikeblog.blogspot.com/2008/04/cyclists-live-longer.html&quot;&gt;about as safe as driving an SUV&lt;/a&gt;.  Not only that, but only 10% of bicycling accidents occur when you are hit from behind (and 90% of those produce only minor injuries).  It turns out that the vast majority of bicycling accidents occur because people are not riding on the road with traffic, or are acting unpredictably.  Following some &lt;a href=&quot;http://www.bikexprt.com/streetsmarts/usa/index.htm&quot;&gt;basic safety advice&lt;/a&gt; can make you safer in a bicycle than an SUV.  Oh, and don&#039;t drink and ride; &lt;a href=&quot;http://www.usnews.com/blogs/on-men/2008/05/15/6-myths-about-commuting-by-bicycle.html&quot;&gt;24% of fatal bicycle accidents involve an intoxicated rider&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Distance&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Think it&#039;s too far?  Think again.  It&#039;s fairly easy for an untrained, unfit person to ride a bicycle up to 10 miles without working hard at it.  That can probably be done in about an hour.  As you get more fit and used to the bike, you may be able to go that distance in half that time.  Also, get pannier bags for your bicycle.  They attach in back and let you carry work clothes, laptops, etc. without having to use a backpack.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Smell&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Many people with office jobs are concerned about this.  Not everywhere has a convenient shower.  Check out &lt;a href=&quot;http://www.biketraffic.org/trickstips/clothes/ridingtowork.htm&quot;&gt;these tips&lt;/a&gt; from the &lt;a href=&quot;http://www.biketraffic.org/commute/BTWmanual-1.pdf&quot;&gt;Tips and Tricks for Biking to Work&lt;/a&gt; manual.&lt;br /&gt;
&lt;br /&gt;
I&#039;m excited about it, and will be sure to post more here on how it goes. 
    </content:encoded>

    <pubDate>Fri, 23 May 2008 18:59:49 -0500</pubDate>
    <guid isPermaLink="false">http://changelog.complete.org/posts/715-guid.html</guid>
    <category>bicycling</category>

</item>
<item>
    <title>Saving Power with CPU Frequency Scaling</title>
    <link>http://changelog.complete.org/posts/572-Saving-Power-with-CPU-Frequency-Scaling.html</link>
            <category>Environment &amp; Energy</category>
            <category>Linux</category>
    
    <comments>http://changelog.complete.org/posts/572-Saving-Power-with-CPU-Frequency-Scaling.html#comments</comments>
    <wfw:comment>http://changelog.complete.org/wfwcomment.php?cid=572</wfw:comment>

    <wfw:commentRss>http://changelog.complete.org/rss.php?version=2.0&amp;type=comments&amp;cid=572</wfw:commentRss>
    

    <author>nospam@example.com (John Goerzen)</author>
    <content:encoded>
    Yesterday I &lt;a href=&quot;http://changelog.complete.org/index.php?url=posts/571-The-Climate-Crisis.html&quot;&gt;wrote&lt;/a&gt; about the climate crisis.  Today, let&#039;s start doing something about it.
&lt;br/&gt;&lt;br/&gt;
Electricity, especially in the United States and China, turns out to be a pretty dirty energy source.  Most of our electricity is generated using coal, which despite promises of &quot;clean coal&quot; to come, burns dirty.  Not only does it contribute to global warming, but it also has been shown to have an adverse impact on health.
&lt;br/&gt;&lt;br/&gt;
So let&#039;s start simple: reduce the amount of electricity our computers consume.  Even for an individual person, this can add up to quite a bit of energy (and money) savings in a year.  When you think about multiplying this over companies, server rooms, etc., it adds up fast.  This works on desktops, servers, laptops, whatever.
&lt;br/&gt;&lt;br/&gt;
The easiest way to save power is with CPU frequency scaling.  This is a technology that lets you adjust how fast a running CPU runs, while it&#039;s running.  When CPUs run at slower speeds, they consume less power.  Most CPUs are set to their maximum speed all the time, even when the system isn&#039;t using them.  Linux has support for keeping the CPU at maximum speed unless it is idle.  By turning on this feature, we can save power at virtually no cost to performance.  The Linux feature to handle CPU frequency scaling is called cpufreq.
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;Set up modules&lt;/b&gt;
&lt;br/&gt;&lt;br/&gt;
Let&#039;s start by  checking to see whether cpufreq support is already enabled in your kernel.  These commands will need to be run as root.
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;&lt;pre&gt;# cd /sys/devices/system/cpu/cpu0
# ls -l&lt;/pre&gt;&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
If you see an entry called cpufreq, you are good and can skip to the governor selection below.
&lt;br/&gt;&lt;br/&gt;
If not, you&#039;ll need to load cpufreq support into your kernel.  Let&#039;s get a list of available drivers:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;# ls /lib/modules/`uname -r`/kernel/arch/*/kernel/cpu/cpufreq&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
Now it&#039;s guess time.  It doesn&#039;t really hurt if you guess wrong; you&#039;ll just get a harmless error message.  One hint, though: try acpi-cpufreq &lt;b&gt;last&lt;/b&gt;; it&#039;s the option of last resort.
&lt;br/&gt;&lt;br/&gt;
On my system, I see:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;&lt;pre&gt;acpi-cpufreq.ko     longrun.ko      powernow-k8.ko         speedstep-smi.ko
cpufreq-nforce2.ko  p4-clockmod.ko  speedstep-centrino.ko
gx-suspmod.ko       powernow-k6.ko  speedstep-ich.ko
longhaul.ko         powernow-k7.ko  speedstep-lib.ko&lt;/pre&gt;&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
For each guess, you&#039;ll run modprobe with the driver name.  I have an Athlon64, which is a K8 machine, so I run:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;#modprobe powernow-k8&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
Note that you leave off the &quot;.ko&quot; bit.  If you don&#039;t get any error message, it worked.
&lt;br/&gt;&lt;br/&gt;
Once you find a working module, edit /etc/modules and add the module name there (again without the &quot;.ko&quot;) so it will be loaded for you on boot.
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;Governor Selection&lt;/b&gt;
&lt;br/&gt;&lt;br/&gt;
Next, we need to load the driver that tells the kernel what governor to use.  The governor is the thing that monitors the system and adjusts the speed accordingly.
&lt;br/&gt;&lt;br/&gt;
I&#039;m going to suggest the &lt;b&gt;ondemand&lt;/b&gt; governor.  This governor keeps the system&#039;s speed at maximum unless it is pretty sure that the system is idle.  So this will be the one that will let you save power with the least performance impact.
&lt;br/&gt;&lt;br/&gt;
Let&#039;s load the module now:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;# modprobe cpufreq_ondemand&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
You should also edit /etc/modules and add a line that says simply &lt;code&gt;cpufreq_ondemand&lt;/code&gt; to the end of the file so that the ondemand governor loads at next boot.
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;Turning It On&lt;/b&gt;
&lt;br/&gt;&lt;br/&gt;
Now, back under /sys/devices/system/cpu/cpu0, you should see a cpufreq directory.  cd into it.
&lt;br/&gt;&lt;br/&gt;
To turn on the ondemand governor, run this:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;# echo echo ondemand &amp;gt; scaling_governor&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
That&#039;s it, your governor is enabled.  You can see what it&#039;s doing like this:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;&lt;pre&gt;# cat cpuinfo_min_freq
800000
# cat cpuinfo_max_freq
2200000
# cat cpuinfo_cur_freq
800000&lt;/pre&gt;&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
That shows that my CPU can go as low as 800MHz, as high as 2.2GHz, and that at the present moment, it&#039;s running at 800MHz presently.
&lt;br/&gt;&lt;br/&gt;
Now, check your scaling governor settings:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;&lt;pre&gt;# cat scaling_min_freq
800000
# cat scaling_max_freq
800000&lt;/pre&gt;&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
This is showing that the system is constraining the governor to only ever operate on an 800MHz to 800MHz range.  That&#039;s not what I want; I want it to scale over the entire range of the CPU.  Since my cpuinfo_max_freq was 2200000, I want to write that out to scaling_max_freq as well:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;echo 2200000 &amp;gt; scaling_max_freq&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;Making This The Default&lt;/b&gt;
&lt;br/&gt;&lt;br/&gt;
The last step is to make this happen on each boot.  Open up your /etc/sysfs.conf file.  If you don&#039;t have one, you will want to run a command such as &lt;b&gt;apt-get install sysfsutils&lt;/b&gt; (or the appropriate one for your distribution).
&lt;br/&gt;&lt;br/&gt;
Add a line like this:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;&lt;pre&gt;devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2200000&lt;/pre&gt;&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;Remember to replace the 2200000 with your own cpu_max_freq value.
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;IMPORTANT NOTE:&lt;/b&gt; If you have a dual-core CPU, or more than one CPU, you&#039;ll need to add a line for each CPU.  For instance:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;&lt;pre&gt;devices/system/cpu/cpu1/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 2200000&lt;/pre&gt;&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
You can see what all CPU devices you have with &lt;code&gt;ls /sys/devices/system/cpu&lt;/code&gt;.
&lt;br/&gt;&lt;br/&gt;
Now, save this file, and you&#039;ll have CPU frequency scaling saving you money, and helping the environment, every time you boot.  And with the ondemand governor, chances are you&#039;ll never notice any performance loss.
&lt;br/&gt;&lt;br/&gt;
This article showed you how to save power using CPU frequency scaling on Linux.  I have no idea if it&#039;s possible to do the same on Windows, Mac, or the various BSDs, but it would be great if someone would leave comments with links to resources for doing that if so.
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;Updated:&lt;/b&gt; added scaling_max_freq info 
    </content:encoded>

    <pubDate>Thu, 07 Dec 2006 05:43:00 -0600</pubDate>
    <guid isPermaLink="false">http://changelog.complete.org/posts/572-guid.html</guid>
    
</item>
<item>
    <title>The Climate Crisis</title>
    <link>http://changelog.complete.org/posts/571-The-Climate-Crisis.html</link>
            <category>Environment &amp; Energy</category>
            <category>Society</category>
    
    <comments>http://changelog.complete.org/posts/571-The-Climate-Crisis.html#comments</comments>
    <wfw:comment>http://changelog.complete.org/wfwcomment.php?cid=571</wfw:comment>

    <wfw:commentRss>http://changelog.complete.org/rss.php?version=2.0&amp;type=comments&amp;cid=571</wfw:commentRss>
    

    <author>nospam@example.com (John Goerzen)</author>
    <content:encoded>
    Wow.&lt;br /&gt;
&lt;br /&gt;
We just watched An Inconvenient Truth.  Not much in there was new to me, but to see it all presented at once is amazing.&lt;br /&gt;
&lt;br /&gt;
There are vast undisputed scientific facts out there -- for instance, that CO2 content in the atmosphere is higher than it&#039;s been ever -- and we can go back 650,000 years.  The linkage between that and temperatures is inescapable.&lt;br /&gt;
&lt;br /&gt;
Gore makes a good point: shouldn&#039;t we be worried about more than terrorism?&lt;br /&gt;
&lt;br /&gt;
Does the thought of parts of Manhattan, San Francisco, and large parts of Florida going underwater suggest a problem exists?&lt;br /&gt;
&lt;br /&gt;
This really is critical and urgent.&lt;br /&gt;
&lt;br /&gt;
We&#039;ve already been thinking about it lately as we renovate our house.  We&#039;re paying a little more now for things like airtight insulation, low-energy lighting, efficient heating.  Not only will it save us money in the long run, it will help improve our lives and Jacob&#039;s life down the road.&lt;br /&gt;
&lt;br /&gt;
The movie&#039;s website is over at &lt;a href=&quot;http://www.climatecrisis.net/&quot;&gt;climatecrisis.net&lt;/a&gt;. 
    </content:encoded>

    <pubDate>Wed, 06 Dec 2006 20:48:40 -0600</pubDate>
    <guid isPermaLink="false">http://changelog.complete.org/posts/571-guid.html</guid>
    <category>climate change</category>

</item>

</channel>
</rss>