Word of caution: These tune ups have been tested on Ubuntu 8.04 Hardy Haron. I haven’t upgraded it as it has been pretty solid and stable release. So if you’re on a newer(or older) version, I suggest you do some research before applying these tricks. And of course, always keep back ups. Have Fun!
Reducing the boot menu delay
If you dual-boot Ubuntu and Windows on your computer the boot menu appears for 10 seconds, during which you can select either Windows or Ubuntu. If you only have Ubuntu installed, a prompt appears for three seconds telling you that you can hit a key to see the boot menu. You obviously don’t need to wait for the 3 seconds since you have no other OS to boot from. You can eliminate this delay by editing the boot menu configuration file.
$ gksu gedit /boot/grub/menu.lst
Then search for the line that reads timeout 10 and change the 10 to 0, to disable the boot menu completely.
Run boot-time scripts in parallel
Whenever Ubuntu boots, it runs several scripts that start necessary background services. By default these are set to run one-by-one but if you have a processor with more than one core, such as Intel’s Core Duo series or AMD’s Athlon X2, you can configure Ubuntu to run the scripts in parallel. This way all the cores are utilized and quite a bit of time can be saved at each boot.To make the change, type the following to open the necessary configuration file in Gedit:
$ gksu gedit /etc/init.d/rc
Look for the line that reads CONCURRENCY=none and change it so it reads CONCURRENCY=shell. Then save the file and reboot your computer.
Build a readahead profile customized to your machine
Ubuntu ships with a program named ‘readahead’ which allows it cache frequently accessed files to avoid searching around for them at the startup. A default readahead profile is included in Ubuntu but you can create your own, tailored to your system. Here’s how to do it:- Boot your machine and at the boot loader menu, highlight the Ubuntu entry and press key “e”. This will let you temporarily edit the boot menu entry.
- Use the cursor keys to move the highlight down to the second line that beings kernel and hit “e” again.
- Use the right arrow key to move to the end of the line and, after the words quiet and splash, add the word profile.
- Hit “Enter” and then “b” to boot your computer.
No comments:
Post a Comment