Friends or family? Register and get access to the restricted area (holiday photos etc.)
Login
No account yet? Register
 
Home arrow Ubuntu arrow My Guides arrow Ubuntu Feisty performance tweaks
Ubuntu Feisty performance tweaks Print E-mail
Written by Rob   
Monday, 26 March 2007

New Ubuntu Feisty Fawn 7.04 is almost here. Its better, nicer, quicker but it can never be quick enough. So if you want to perform few simple tweaks to speed up your Ubuntu Feisty read on.

Here is a collection of settings to tune up the speed and performance of Ubuntu Feisty 7.04 and some of its applications.

Use them at your own risk and post a comment about your experience.

If you want to use it on Kubuntu change gedit to kate and gksudo to kdesu.

1. Disable IPv6

Most people don't need IPv6 yet so this is what I do to disable it. More here...
gksudo gedit /etc/modprobe.d/aliases
And change the line:
alias net-pf-10 ipv6
to:
alias net-pf-10 off #ipv6
This will disable IPv6 on all network interfaces. You need to reboot.

2. Run boot processes in parallel

This will make upstart to run the boot processes in parallel and speed up the boot process.
gksudo gedit /etc/init.d/rc
Find and change the line:
CONCURRENCY=none
to:
CONCURRENCY=shell

3. Aliasing hostname to localhost

Right or wrong, you decide. But I picked this up in the Ubuntu forums the other day and it does improve the startup of some apps.
gksudo gedit /etc/hosts
and add you hostname to the first line after localhost like this:
127.0.0.1 localhost yourhost
127.0.1.1 yourhost

4. Disable pango

I know that this is already taken care of in Firefox but it still makes a good performance boost to Thunderbird and some other apps.
gksudo gedit /etc/environment
and add:
MOZ_DISABLE_PANGO="1"

5. Preload

It does what you think. It preloads most common used libs and files = faster startup times on your applications.
sudo aptitude update
sudo aptitude install preload

What about prelink?
Prelink is no longer necessary in feisty. Feisty uses a new linking mechanism called DT_GNU_HASH which speeds up the linking process without the need for continuously running prelink.

6. Swappiness

The default value for vm.swappiness is 60 in Ubuntu Feisty which is a good default value but if you want to tweak the performance a little bit more you can change this value to a lower value to reduce the load of the swap. If you run the follwing command:
sysctl -q vm.swappiness
You will see that the value is set to 60. And by running:
sudo sysctl vm.swappiness=10
You will change the value from 60 to 10 which will make your system write to swap a lot less and I would recommend this to everyone that has 512MB of memory or more. If you find that you have very little use of swap set the value to 0. This will not disable the swap but it will make your system write to the swap as little as possible and keep as much as possible in memory. This makes a huge improvement when switching between applications since they are now likely to be in physical ram instead of on the swap partition.

To set your value permanent you need to change the sysctl.conf file:
gksudo gedit /etc/sysctl.conf
Add the line
vm.swappiness=10

To the end of the file. This way it will be set upon boot.

I've found that the value of 20 works very well on my laptop and I have 512Mb of memory. More info here >>

7. Profile grub

There is a option to grub called profile which will profile your startup. What it does is that it kind of indexing all the files read during boot/startup and later on it will find and read those files quicker.

Hit the escape button when booting to get to the grub menu.
Select your default boot kernel and hit the e button.
Go down to the second line and hit the e button again.
Add profile to the end of the line and press enter.
Hit the b button to boot with your new option.

The first time it will take a little bit longer to boot because it has to build the index (or whatever they want to call it) but every boot after this will be a lot smoother.
You need to do this every time you update your kernel or have made other huge changes to your system that might affect the files needed during boot.

8. Applications

Just few things that might help.

Firefox
Use Swiftfox instead. It's optimized for your CPU.
Install the fasterfox add-on
If it's not already set, disable IPv6. In the url enter about:config and find the ipv6 entry and disable it.
Install adblock plus add-on
to disable ad's.


OpenOffice
If you don't need that extras that java JRE provides then simply disable it openoffice. That's what I do.


This guide is based on work of Mikael Hultén.





Reddit!Del.icio.us!Google!Live!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Yahoo!Ma.gnolia!FeedMeLinks!Free social bookmarking plugins and extensions for Joomla! websites! title=
Last Updated ( Monday, 23 April 2007 )
 
< Prev   Next >

What do I listen to?

Listen to Virgin Radio - the music we all love
Listen to Virgin Radio Xtreme - new music, no limits
Listen to Virgin Radio Classic Rock - the classic rock authority
Listen to Virgin Radio Groove - non-stop classic soul and Motown

News Feed

Green Hosting

Site Status

Members: 18
News: 55
Web Links: 23
Visitors: 287889