.

Optimise 9.10 SWAP with Swappiness [KARMIC KOALA BIBLE #13]

English   English (change)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

RAM up Your SWAP for Improved Stability

ram image

Clearly, the order of the day is to RAM your machine up to the hilt, but enhancing the use of the swap file can also be a benefit. Here's how, using Swappiness.

Why? Because ..

Computing can be very RAM-intensive. Say, you are running a graphics editor, a web browser or two, office apps and, who knows, maybe even a video editor.

Then there's AC-DC playing in the background .. ;)

Set Up & Enhance Ubuntu 9.10 .. KARMIC KOALA BIBLE

In simple copy/paste steps .. from zero to hero.

Scroll down for the full series index.

Wake up and smell the Ubuntu! Hope it helps. the_guv

Check Your Swappiness Value

The lower the value, the longer it takes for swap to kick in. Of a scale of 0-100, the default is 60. Check yours:-

cat /proc/sys/vm/swappiness

By way of a contradiction, Ubuntu's official swap guide - and if you are reading this you should also read that - recommends a way lower value, of just 10, to allow for quicker swap access. While there is no one-size-fits-all, have a play with various swappiness values.

To change the default, open:-

gksudo gedit /etc/sysctl.conf

Search for this:-

vm.swappiness=60

Swap the value to this:-

vm.swappiness=10

.. and that takes effect after a reboot.

vm.swappiness=60 Doesn't Exist

You opened the sysctl.conf file and vm.swappiness wasn't there? Very possible.

Just scroll to the bottom of the file and add your swappiness parameter to override the default, so paste:-

vm.swappiness=10

Change Swappiness Value Without Reboot

This is handy to try different values without having to reboot each time.

To change the swappiness value for the current session only, or until you change again the value, type:-

sudo sysctl vm.swappiness=10

.. where you want to try the value of 10, for example.


If you liked that ...
  • Swap Vista Default Using Vistalizator

    Need to change the factory-installed language setting? Can't? YOU CAN NOW! .. using Vistalizator and any language packs you prefer. So you bought a new PC somewhere where the native language isn't English, maybe in [...]
  • INTRODUCTION: The 25-Part Ubuntu KARMIC KOALA BIBLE

    Detailing every aspect over 25 parts, this reference helps you to set up, enhance and use the ultimate installation of Ubuntu's superb new operating system. Stepped out in easy-read copy/paste detail, these how-to [...]
  • Get the Damn Windows Key Working

    So you've got Linux Ubuntu and wonder how to have that Windows key do something useful, or just do anything. Here's how to set it up. Let's make that Windows key do something useful, (other than just openly [...]
  • Four Ways to Install .. Here's Why Aptitude Is Best?

    As we install many packages from a clean install, let's compare the 4 methods for this and software removal, 2 of which are new, included by default. The first two methods, apt-get and aptitude, are used in [...]
  • Setting Up Ubuntu's Koala - the_guv's Verdict

    Following on from my Ultimate PC Setup Guide, installing Jaunty, here's a look at the new kid, Karmic Koala. What's new, worse, better? My verdict .. Karmic Koala's out in a couple of weeks. As promised, I'll be [...]
  • Upgrading the System and Software

    Once you have repositories set up and your system updated to reflect what upgrades, patches, packages, software, libraries and so on are available, it's time to safe-upgrade. Safe-upgrade? Didn't it used to be [...]
... maybe you'll like these?

.