ghodechhap's blog

Automatically configuring --hash style

In recent enough binutils, GNU ld supports a new option --hash-style. When set to 'gnu', it produces a new section which has hash for each symbol name and the runtime link phase uses this hash information for comparing symbols.

Obviously for C++ programs/libraries, where symbol names are often very long due to namespace usage, this is a boon as it cuts off the loading time, claimed to be around 50%.

For backwards compatibility, one can always use 'both' as value for the option.

CPU frequnecy scaling on Athlon XP 64 bit CPU

I have AMD Athlon XP 2800+| 64 bit CPU. After installing cpuinfo
I discovered that it was running over 40 degrees celcius. So I searched around to find out what can be done in order to limit the temp.

Here is a very simple recipe.

1. Download,compile and install powernowd

2. Load appropriate modules and invoke powernowd. I have added following in my /etc/rc.d/rc.local

----------------------------
/sbin/modprobe asb100
/sbin/modprobe powernow-k8
/sbin/modprobe cpufreq_ondemand

Syndicate content