Home > howto, ubuntu > Ubuntu 11.10 performance tuning

Ubuntu 11.10 performance tuning

I recently upgraded my netbook’s OS to Ubuntu 11.10 and noticed that it’s taking longer than usual to launch programs that I use quite often. For example, it takes 7-8 seconds to launch Google Chrome, about 4 seconds to open terminal. Here’s what I did to make the os run faster without investing with a SSD disk (My root partition is using ext4 fs, skip step 1 through 3 if you are using file systems other than ext3 or ext4):
1. Add the following bold part to the root partition line in /etc/fstab
errors=remount-ro,noatime,data=writeback

2.

tune2fs -o journal_data_writeback /dev/sda5

/dev/sda5 is the root partition.

3. change the following line in /etc/default/grub
GRUB_CMDLINE_LINUX=”rootflags=data=writeback
(bold part is added)

4. Run update-grub
5. Add the following line to /etc/sysctl.conf
vm.swappiness=10

NOTE: all the above changes require root privileges.

6. Reboot

The difference? It now takes about 3-4 seconds to launch Google Chrome from cold start.

Advertisements
Categories: howto, ubuntu
  1. Tushar Kumar
    November 21, 2011 at 2:38 pm

    Nice tip

  2. December 27, 2011 at 4:59 am

    Great tips there!

  3. cu_
    January 24, 2012 at 5:09 am

    It became little bit faster, but I noticed my netbook’s fan is constantly going after the tweak. For me couple of seconds of load time is not worth constant running the cpu hot enough for the fan to be going. I had to experiment several things to reset. If anyone is in the same boat, to reset use the following

    tune2fs -o journal_data_ordered /dev/sda5

    Great post. I don’t mean to say it does not work. But if someone wants to reset like me, I wanted to paste the command. Please do obvious roll backs of above instructions in addition to this command. Thanks.

    • ricoch3n
      January 25, 2012 at 1:32 am

      Thanks for the tip on resetting. It’s always a good idea to have a way to roll back if something’s not working as expected.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: