Mint 5 Swap Usage..what the..???

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

Mint 5 Swap Usage..what the..???

Postby Mr. Swillis on Sat Nov 22, 2008 3:51 am

Ok, someone explain this to me:

Code: Select all
kendall@penguin2 ~ $ free -m
             total       used       free     shared    buffers     cached
Mem:           630        347        283          0          4        124
-/+ buffers/cache:        217        412
Swap:         1058        190        868
kendall@penguin2 ~ $


Even without my hardware specs, why the heck would we be using 190mb of swap when there is 283mb of real memory available? I got something similar to this on a pure Ubuntu 8.04 install as well. Though, Arch (obviously) doesn't even touch swap on this same system.

Swill
And you ate the whole... wheel of cheese? How'd you do that? Heck, I'm not even mad; that's amazing.
Mr. Swillis
Level 1
Level 1
 
Posts: 4
Joined: Sat May 10, 2008 12:14 pm

Linux Mint is funded by ads and donations.
 

Re: Mint 5 Swap Usage..what the..???

Postby Husse on Sat Nov 22, 2008 5:33 pm

There is nothing strange about this - what's swapped out is (hopefully) something that's hardly used
This is controlled by "swappiness" which can have a value between 0 and 100 - 0 only swap if space in RAM runs out, 100 swap a lot :)
Ubuntu has 60 as default and so does Mint while Arch probably has a lower value
To find your swappiness
Code: Select all
cat /proc/sys/vm/swappiness

To change it permanently
Code: Select all
gksu gedit /etc/sysctl.conf

Search for vm.swappiness and change its value as desired, you could change to 10
After the next reboot the new swappiness is used and you should not see any use of the swap partition
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Mint 5 Swap Usage..what the..???

Postby Mr. Swillis on Sat Nov 22, 2008 10:18 pm

Ha! I knew it had to be something silly like that, that I just didn't know about. The icing on the cake is that it's called "swappiness", lol. Thanks for the info!

Swill
And you ate the whole... wheel of cheese? How'd you do that? Heck, I'm not even mad; that's amazing.
Mr. Swillis
Level 1
Level 1
 
Posts: 4
Joined: Sat May 10, 2008 12:14 pm


Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 24 guests