LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-24-2011, 10:14 AM   #1
alexjohnson
LQ Newbie
 
Registered: Oct 2011
Posts: 12

Rep: Reputation: Disabled
Question Swap is being used even though RAM doesn't fill up on Slackware64 13.37


I'm using Slackware64 13.37 and my swap space keeps getting used even though there is plenty of RAM that's still free.

I'm not sure if this is proper behavior but I would rather the RAM be filled up before the swap space starts getting utilized.

Is there any way to force this? My vm.swappiness (checked sysctl) is currently set to 60 (the default) so I'm not sure if this has to be changed.

Thanks.
 
Old 10-24-2011, 10:32 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
The system balances RAM between kernel+application use and I/O buffers+cache. It changes the line dynamically to provide the best performance. If you'd like to stop that process or override it, you can change swappiness. At a setting of about 10, the system will try very hard not to swap, at the detriment of I/O. This is useful, for example, if you know that your I/O is of a highly serial nature and very rarely re-references data.

Last edited by macemoneta; 10-24-2011 at 10:34 AM.
 
1 members found this post helpful.
Old 10-24-2011, 03:18 PM   #3
alexjohnson
LQ Newbie
 
Registered: Oct 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
I'm running it as a desktop and usually just browse the web, edit documents, etc. No server stuff involved.

It seems to me from you what replied that a value of 60 would be preferable for this kind of usage because it does actually re-reference data, like accessing the same webpages and opening/editing the same documents.
 
Old 10-24-2011, 03:34 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Yes, the default settings are optimal for typical usage. The pages that get swapped out are things that are occupying memory, but not being referenced, so putting them on swap frees additional RAM for productive use. Swap isn't a bad thing, unless it has a high I/O rate - that would indicate that your workload needs more RAM. As long as you're not seeing that, it's all good.
 
1 members found this post helpful.
Old 10-24-2011, 03:57 PM   #5
alexjohnson
LQ Newbie
 
Registered: Oct 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
OK, Thanks. I guess I'll stick with that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WMV playing doesn't fill fullscreen adrian2009 Linux - Newbie 1 03-20-2010 08:59 PM
Ubuntu 5.10 doesn't fill laptop screen Nateonwheels Linux - Laptop and Netbook 2 05-30-2007 03:01 PM
Need for SWAP with 1 GB RAM? Aleksandersen Linux - Newbie 36 02-26-2007 07:54 PM
Desktop doesn't fill my monitor ??? ChaosJunkee Mandriva 3 06-22-2004 12:08 PM
Not using RAM and Swap much ? ruwach Linux - Hardware 2 06-11-2004 07:26 AM


All times are GMT -5. The time now is 12:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration