Page 1 of 6
What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 1:19 pm
by mmikeinsantarosa
An interesting read about how to adjust your distros'
swappiness. Anybody ever tinker with this? My m12 is set to 60. As far as swap size goes, the author suggests:
This is a dedicated space in your hard drive that is usually set to at least twice the capacity of your RAM
Happy Friday!
- mike
Re: What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 1:28 pm
by chrispop99
As I run with plenty of RAM, I always set it to 10. I understand that's a good idea for SSD users also.
Chris
Re: What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 1:34 pm
by Eadwine Rose
2 gigs, it's more than plenty.
Re: What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 1:40 pm
by mmikeinsantarosa
from the article
The swappiness parameter value is stored in a simple configuration text file located in /proc/sys/vm and is named “swappiness”.
Anybody ever tinker with their "swappiness" setting?
Re: What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 1:42 pm
by Eadwine Rose
Oh wait.. you are not talking about plain jane swap partition?
Re: What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 1:44 pm
by Adrian
Eadwine Rose wrote:Oh wait.. you are not talking about plain jane swap partition?
It explains in the article, swappiness is a parameter that tells the computer when to swap stuff, by default is 60 so it starts to swap out (write inactive part of the memory to the swap space) when the free memory drops to 60%. If you set swappiness 10 then the computer will start to swap only when the free memory drops to 10%.
Re: What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 1:47 pm
by Jerry3904
Eadwine Rose wrote:Oh wait.. you are not talking about plain jane swap partition?
I misunderstood that too, and thought misr was trying to make a funny with the language...
Re: What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 2:00 pm
by Eadwine Rose
Indeed!

Re: What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 2:03 pm
by lucky9
I run the default in all of my operating systems. I've never seen SWAP used in my normal day to day use pattern. Matter of fact I've never seen SWAP used when I've checked memory usage. (I currently have 8 GB of RAM, but never noticed a use when I had 4 GB.)
I do not use anything but up and running or off.
Re: What's your swappiness set to, eh?
Posted: Fri Jun 19, 2015 2:16 pm
by kmathern
lucky9 wrote:I run the default in all of my operating systems. I've never seen SWAP used in my normal day to day use pattern. Matter of fact I've never seen SWAP used when I've checked memory usage. (I currently have 8 GB of RAM, but never noticed a use when I had 4 GB.)
I do not use anything but up and running or off.
My machine has 4GB of RAM, but some of it is being used as video memory.
It's not uncommon on my machine to see some swap being used, in fact the free command says it's using a small amount right now.
Code: Select all
$ free -h
total used free shared buffers cached
Mem: 3.2G 2.6G 593M 0B 189M 920M
-/+ buffers/cache: 1.5G 1.7G
Swap: 8.2G 84M 8.2G
I sized my swap partition at 8.2GB, just a little more than my machines 8GB RAM capacity
(if I were to add another ram module).