A comprehensive guide of various tweaks to reduce memory usage, processor load and to cut down on system services.
Primarily, it is meant for Ubuntu Linux, but can be implemented on other distros as well.
A comprehensive guide of various tweaks to reduce memory usage, processor load and to cut down on system services.
Primarily, it is meant for Ubuntu Linux, but can be implemented on other distros as well.
Reduce Swappiness
If your computer has 1GB+ RAM, you would be hardly needing your swap space in most cases. It is evident that the RAM is much faster than your hard drive (A good 677MHz DDR2 can give 3000+ MiB/s while a standard hard drive can give around 50MiB/s). So it’s better to let the RAM handle most of the processes. The tendency to use swap is called swappiness. Swap space is a cached area on the HDD that the OS utilizes as a memory overflow/dump area. To reduce swappiness, at a terminal, type in:
sudo sysctl -w vm.swappiness=10
If you wish to reduce the swappiness permanently, do:
sudo nano /etc/sysctl.conf
And change the vm.swappiness value to 10.
Using preload
Preload caches the most accessed applications on your disk and memory. Preload should not be installed on systems having memory less than 1GB, otherwise, it would not have any effect, or rather would advesly affect the performance. To install preload, at a terminal:
sudo apt-get install preload
Once installed, preload will automatically start during boot. It normally takes 20-30 launches of a program to start being cached by preload.
Disable unneeded startup services
Some services start-up automatically even if you don’t need them. Goto System->Administration->Services and press Unlock to provide your password for the keyring. You may disable services like Bluetooth, Logging and Printing services if you don’t need them.
If you want to reduce RAM usage drastically, use a lite WM like Openbox and configure it to use Gnome apps. In that way, you can use all Gnome apps but you would use up very less memory.
Openbox configuration guide: http://urukrama.wordpress.com/openbox-guide/
Disable unneeded ttys
Ubuntu comes with 6 ttys enabled. You usually don’t need more than 1 tty at a time. To disable tty2 to tty6:
sudo bash
cd /etc/event.d
mv tty2 tty2~
mv tty3 tty3~
mv tty4 tty4~
.
.
And so on till tty6.
Make OpenOffice faster in Ubuntu
Launch OO-Word Processor. Goto Tools->Options and click on Memory. From top to bottom on the window:
And press OK button.
Note: Enable the quickstarter only if you use OpenOffice extensively. Otherwise, the quick starter would be unneeded.
After performing these changes, do a reboot for the settings to take effect.
A son, brother and friend. An Infoscion. Enjoys programming and making small bits of apps here and there. Wants to conquer the world (well, who doesn't ;D). A geek who has an obsession for ponies. Loves acoustic and wants to play guitar sitting on the Hollywood hill one day!
KDE is a versatile software compilation for all platforms. It is an intuitive and powerful desktop environment that focuses on finding innovative solutions to old and new problems, and creating a vibrant, open atmosphere for experimentation.
» http://www.kde.org