quote:
Originally posted by void main:
I believe you have less swap than what you should have. I think you want at least 128MB but very possible 512MB of swap as the minimum. And swap space is there to help speed things up, not slow them down. Without swap space, RAM can not be used for efficient caching.
I also have 512MB of RAM and 512MB of swap. At this second I am showing ~65MB of RAM free, and ~56MB of swap used. I certainly don't have 450MB of program code running. A lot of my RAM is being used for caching which makes things faster. Some memory has been paged out to swap because it isn't being used so there is more RAM available for cache. At least that's the way I understand how the swap works. Add more swap and let your system do it's magic.
Err... ooops. No idea how that 0 got lost in that post
(should be 500MB, corrected it)
Swap is not there to speed up things. Swap is there to let you run stuff that you would normally be unable to do due to lack of RAM. RAM can be used for efficient catching without swap - the ONLY case in which you need swap if you need x MB of mem and have x-n RAM (n=positive number). In that case, some mem is paged to disk to free up RAM for programs that need it more. This is SLOW, since disk is about 10000x as slow as RAM, so it can't possibly speed things up.
With enough mem, swap is simply not used and has no effect on the system whatsoever.
Anyway, I have yet to see swap usage go beyond 20 MB. As I said, swap is only used during real intensive usage, and I think it isn't really neccesary even then.