Sunday, 22 March 2015

Linux Swappiness Explained


What is swappiness


Swappiness is a property for the Linux kernel that changes the balance between swapping out runtime memory, as opposed to dropping pages from the system page cache.

Swappiness can be set to values between 0 and 100 inclusive. A low value means the kernel will try to avoid swapping as much as possible where a higher value instead will make the kernel aggressively try to use swap space.

The default value is 60, and for most desktop systems, setting it to 100 may help to improve overall performance, whereas setting it lower (even 0) may improve interactivity (decreasing response latency.)
How to change swappiness value

To temporarily set the swappiness in Linux, as root you set the value to 100 with the following command:

echo 100 > /proc/sys/vm/swappiness
Permanent changes are made in /etc/sysctl.conf via the following configuration line(inserted if not present previously):
vm.swappiness = 100

1 comments:

Unknown said...

Your Affiliate Money Printing Machine is ready -

And getting it set up is as easy as 1, 2, 3!

It's super easy how it works...

STEP 1. Input into the system which affiliate products you want to push
STEP 2. Add PUSH button traffic (it ONLY takes 2 minutes)
STEP 3. See how the affiliate products system explode your list and sell your affiliate products for you!

Do you want to start making money???

Click here to launch the system

Post a Comment