Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Using "System Monitor" in Ubuntu, I see where I have 4 gigs of ram but when about 85% of it is used, the computer starts using Swap ram (the hard drive I suppose).
I just wonder why it doesn't wait until it has used 100% of the 4 gigs before it starts swapping ram and making my hard drive work harder.
I ordered another 4 gigs ram from "Crucial.com." Will more ram keep it from using the swap ram?
Not usually.
Just not the way swap and kernel and some programs work exactly.
One might set some settings to adjust that value or remove swap. See swappiness maybe for adjust.
Using some swap isn't a real bad thing in many cases. Filling it could be an issue. Not even a rule of thumb anymore for amount. Generally distro's install some default amount.
It rarely (never) pays to completely fill anything up. Making room when all the queues are 100% is expensive - better to keep some leeway. Heuristics track allocation to try to keep some semblance of balance. swappiness is about all you can control unless you want to get into the memory management knobs. Not recommended as the knock-on effects can be disastrous.
This is a preference (default is 60 for most distros), where 0 is to NOT use swap (even if it exists). I tend to adjust that to 20-ish when swap / disk I/O gets in the way. Otherwise it's mostly moot if I'm not doing intensive things.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.