SRA Lab Open Source Code

22Jun/080

Vertimus 1.0.2

Bugfixes and new translations.

To upgrade from previous version, run the following scripts:

  1. sql/upgrade-sql-vtm-1.0.1-to-1.0.2.sql
  2. sql/upgrade-sql-vtm-1.0.1-to-1.0.2.php

* MAJOR FIX to get the last user who has locked the module
* New $url_hosted_link and $url_hosted_name variables to set in
localconfig.inc.php
* FIX Sending of emails to the committers on 'Ready to commit'
* New Brazilian Portuguese translation by Leonardo Ferreira Fontenelle
* New Czech translation by Lucas Lommer (#237486)
* FIX #237472 reported by Lucas Lommer
VARCHAR > 255 needs MySQL 5.0.3 or later

Tagged as: , No Comments
12Jun/080

Saving power with Linux and reducing the boot time

There are a great web site and some tools about this subject (thanks to Intel and their great developers)
http://www.lesswatts.org

Services

The first step is to remove some useless services or rarely used, I chosen the following ones :

apt-get remove bluz-utils hplip* scim* tracker*

update-rc.d -f pcmcia remove, for mysql, apache2, postgresql-8.3 (it's easy to launch when necessary)

You can really check the impact of your changes with bootchart and view the result with eog /var/log/bootchart/*.png (my laptop starts in 27 seconds).

In gnome-session-properties, I also unchecked Applet Tracker, Evolution Alarm Notifier, Bluetooth Manager (don't forget to save in the third tab).

Settings

You can measure the number of wakeups per second with the wonderful PowerTop ($ sudo powertop), on my computer the main guilty was the proprietary nvidia driver (around 60 fps like the refresh rate of my screen), I added the following line in my xorg.conf to resolve that issue (~ 2 wps after) :

Option         "OnDemandVBlankInterrupts" "true"

I also blacklisted some modules in /etc/modprobe.d/blacklist

blacklist pcmcia
blacklist yenta_socket
blacklist rsrc_nonstatic

With no Wifi and no USB mouse connected, with my GNOME Desktop, a gnome-terminal and Emacs, I have only 20 wakeups per second (not bad :) .

I wrote a little script to test some more aggressive settings if they works fine I will add them to sysctl.conf:

# By setting this to '1', under light load scenarios, the process
# load is distributed such that all the cores in a processor package
# are busy before distributing the process load to other processor
# packages.
echo 1 > /sys/devices/system/cpu/sched_mc_power_saving

# From 500 by default
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

# SATA
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy

# Sound
echo 1 > /sys/module/snd_hda_intel/parameters/power_save

I don't use the laptop_mode or hdparm because I don't want to stress my hard drive with too many spin up and down. It's not necessary to insert the 'noatime' option in fstab with Ubuntu Hardy Heron because the new 'relatime' option is already activated.