Tuesday, May 17, 2005

Optimizing Linux Desktop

To keep the system from accessing the swap drive, kernel aspect swappiness is utilized. It's run-time tunable available through anyone needing to adapt kernel behavior to his or her own requirements. The idea is to let background processes use the swap drive and RAM for browsing the Internet, writing email, etc.

The following command reduce the tendency for the kernel to use the swap file.
>> sudo cat /proc/sys/vm/swappiness
The default setting is set at 60 and can be lowered such as
>> sudo sysctl -w vm.swappiness=10
and run the cat command again and it registered 10
vm.swappiness=10 to /etc/sysctl.conf

**Freeing More RAM

By default Linux configuration provide six text-mode virtual consoles. They can be accessed by pressing CTRL+ALT+F1 through CTRL+ALT+F6, CTRL+ALT+F7 switches to the GUI. Edit /etc/inittab to disable some of these virtual consoles.

#Run gettys in standard runlevels

1:2345:respawn:/sbin/mingetty tty1

2:2345:respawn:/sbin/mingetty tty2

#3:2345:respawan:/sbin/mingetty tty3