Swap Usage even with Abundant RAM
Here is a sample output from free -m:
total used free shared buffers cached
Mem: 360 311 48 0 10 181
-/+ buffers/cache: 119 241
Swap: 255 72 183
That 72 used swap never seems to get reclaimed. And I have not been able to find any evidence that I was ever in any danger of running out of memory.
I'm running Ubuntu 8.10 64bit. Is this normal?
.
5 Replies
I think the swappiness parameter tells the kernel how aggressively to swap - you can check what yours is set to by````
$ cat /proc/sys/vm/swappiness
````
The value 60 is the default, and I think higher means more agressive swapping.
@Lykaon:
That 72 used swap never seems to get reclaimed. And I have not been able to find any evidence that I was ever in any danger of running out of memory.
my linode (360) shows exactly the same behaviour, nothing seems to be wrong with it.
i looked at my munin logs and i always have a few megs of swap allocated (even though i have >150MB of free memory) but the swap in/out graph barely shows any activity so i don't think there is a performance problem.