Archive for General

Frequency scaling

Processors are often underused: the most common tasks like web surfing, chatting, etc don’t demand much CPU power. Even multimedia applications like photo editing don’t push processors to the limit. Using Gentoo allows you however to use 100% of your processor when updating world for example…

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 “PowerNow!” capable CPU, like an AMD64 for example.

First check for the following options in your kernel config:

Power management options  --->
 CPU Frequency scaling  --->
  [*] CPU Frequency scaling
   <*> 'conservative' cpufreq governor
   <*> AMD Opteron/Athlon64 PowerNow!
   [*] ACPI Processor P-States driver

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):

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

To put it back at its maximal frequency, no matter the demand, do:

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

To make this permanent (i.e. upon each reboot), simply add this line to the /etc/conf.d/local.start file.

That’s it! Of course, it’s just a part of the whole story, but that’s just enough for me to remember how I shall do it if things screw up…

Apple MacBook

I’m going to Canada this summer (next to Toronto), and it would be a GREAT occasion to buy a MacBook at an interesting price (regarding the price here in Europe: 1.649 CAD Vs. 1.519 EUR, namely a difference of 440,18 EUR!).

However, there are still 3 problems:

  1. The keyboard: I can only choose between a Canadian keyboard and an American keyboard. And the keyboard doesn’t seem to be easily replaceable on a Mac… They seem reluctant to exchange (or even buy) you a keyboard different from the one you got originally with your Mac…. Surely to prevent people like me to buy their Mac in other countries! Bastards… Happily, alternatives exist, like covering the keyboard with a thin latex keyboard with a custom layout, or painting new letters on it (the hardcore way… ).
  2. The power adaptor: that’s only a minor issue. Converters are available everywhere.
  3. The OS: for sure, Mac OSX is a terrible OS!!! But I want to be able to boot Linux. Once more, a solution already exists: some folks wrote a wiki about installing Gentoo on a MacBook. And the good news is that almost everything work fine: the iSight webcam, the remote control, the special keys, the suspend mode, … Thanks to them!!!!

So it’s almost 100% sure that from September on, I will be running on a Mac.

Retro-emotion

I just created this word to express what I’m feeling right now. I’m indeed listening to the “Use Your Illusion” albums from Guns n’ Roses… And I haven’t feel like that since I last listened to these back in the early 90’s, when we were still using magnetic tapes :cry.

Use Your Illusion I Use Your Illusion II

Won’t you feel the same if you were listening to songs like “Don’t cry”, “November Rain” or “You Could Be Mine” ?

Tip: they are both available at Media Markt for a really cheap price ( ~ 7€)!!!