Ubuntu performance tweak

Posted: July 19, 2013 in Backtrack, Linux, Ubuntu

This is what you can do to increase your Ubuntu access speed and performance

1. Set swappiness to the allowed lowest value, usually the default value is 60

rumy@cbug-nest:~$ cat /proc/sys/vm/swappiness
60

2. Edit /proc/sys/vm/swappiness and change 60 to 10 (assuming RAM > 1 GB)

sudo pico /proc/sys/vm/swappiness
{change 60 to 10, save with [Ctrl] [O] [Enter], exit with [Ctrl] [X]}
cat /proc/sys/vm/swappiness
10

3. Edit /etc/sysctl.conf, and add vm.swappiness=10, vm.vfs_cache_pressure=50 to the end of file

sudo pico /etc/sysctl.conf
{move cursor to the end of file and then add this}
vm.swappiness=10
vm.vfs_cache_pressure=50

{Save with [Ctrl] [O] [Enter], exit with [Ctrl] [X]}

4. Reboot

Advertisements

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