[SOLVED] Swap is being used even though RAM doesn't fill up on Slackware64 13.37
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.