...swap tendency...(SOLVED)

Questions about the project and the distribution - obviously no support questions here please

...swap tendency...(SOLVED)

Postby sabresofparadise on Tue Jul 19, 2011 2:11 am

...hi was just curious about 'swap tendency', it appears to be set to 60 by default which is fine for servers apparently but is way to high for the normal 'home' user - Pc,s , notebooks ect...is there a good reason for this, or can the 'normal' user re set his swap tendency default setting himself to a lower level for eg...10...and if he/she does will this significantly speed up the system...any feedback would be of interest...thanks...
Last edited by sabresofparadise on Thu Jul 21, 2011 10:42 am, edited 1 time in total.
sabresofparadise
Level 2
Level 2
 
Posts: 73
Joined: Sun May 01, 2011 5:26 pm

Linux Mint is funded by ads and donations.
 

Re: ...swap tendency...

Postby xenopeek on Tue Jul 19, 2011 4:04 am

Setting swappiness to 10 is fine for desktops, especially if you normally have some free physical memory during your day to day use. You can tune it how you want. If you have enough physical memory (at least 4GB), you could probably even run without swap (I do).
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15433
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: ...swap tendency...

Postby linuxviolin on Tue Jul 19, 2011 3:02 pm

I always setup my desktops with swappiness = 0. Currently my main PC has 4 GB RAM and my test PC has 1 GB RAM and both have always the same setup. The default, 60, is idiot, at least for home users desktops/laptops. I also advise you to add another parameter: vfs_cache_pressure. Personally, currently I setup it to 50 but you can play with it to see what is the best for you.

Vincent Vermeulen wrote:If you have enough physical memory (at least 4GB), you could probably even run without swap (I do).

Yes. But, I guess, you can make this from 2 GB RAM... if your system is set up well.
K.I.S.S. ===> "Keep It Simple, Stupid"
"Simplicity is the ultimate sophistication." (Leonardo da Vinci)
"Everything should be made as simple as possible, but no simpler." (Albert Einstein)
User avatar
linuxviolin
Level 8
Level 8
 
Posts: 2055
Joined: Tue Feb 27, 2007 6:55 pm
Location: France

Re: ...swap tendency...

Postby xenopeek on Tue Jul 19, 2011 3:49 pm

linuxviolin wrote:
Vincent Vermeulen wrote:If you have enough physical memory (at least 4GB), you could probably even run without swap (I do).

Yes. But, I guess, you can make this from 2 GB RAM... if your system is set up well.

Probably, though I ran into problems with Firefox locking up on Ubuntu 11.04 and just 2GB memory without swap. I think 2GB is getting tight.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15433
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: ...swap tendency...

Postby lmintnewb on Thu Jul 21, 2011 4:25 am

http://sites.google.com/site/easylinuxt ... o-high:-Ub

That's what I used when first dicovering there was such a thing as swappiness in linux. Only talking about the stuff on that page related to changing your swappiness. Didn't try the other hacks the guy mentions. So as with everything ... Use at your own risk/discretion etc.

(afterthought edit) Changing swappiness value is just one of a ton of tweaks I used on Mint 10. Not sure if by itself it'll make an OS blaze. Really doubt it, but did it on the assumption that every lil bit can help boost performance for someone. Does make sense that if your OS is swapping and writing to disk when there's plenty of RAM still available it would slow things down some. I mean disk writes and CPU cycles would likely add up. So yeah ... I'd say there are benefits to it. Just don't expect it to be a night and day difference, shrugs. Jmo on it.

You can temporarily change the swappiness with terminal command "echo 10 > /proc/sys/vm/swappiness" if ya like. Run that command then
"cat /proc/sys/vm/swappiness" to confirm it if ya want. There ya go, you're swappiness is set to vm.swappiness=10 until your next reboot. Then ya can change it permanently by following the instructions in that link posted above.
lmintnewb
Level 7
Level 7
 
Posts: 1574
Joined: Fri Apr 01, 2011 5:13 pm

Re: ...swap tendency...(SOLVED)

Postby sabresofparadise on Thu Jul 21, 2011 6:07 pm

...ok thanks one and all...I have it set to 10 now, from now on...
sabresofparadise
Level 2
Level 2
 
Posts: 73
Joined: Sun May 01, 2011 5:26 pm


Return to Non-technical Questions

Who is online

Users browsing this forum: No registered users and 2 guests