Max ram usage stuck at 1.3gig limit, uses swap instead?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,647
Rep:
Quote:
When I run multiple applications, according to gnome system monitor, the max ram usage is 1.3gigs
If you've got 3.8Gb useable doesn't it show 2.5Gb physical memory still free? You shouldn't use any swap till the physical memory is all used up. Then again... you're not using on-board graphics with shared memory are you? I think that would show up as 'used'. There may be some memory reserved by some application for cache/buffering I suppose.
This is quite unusual. I think that either the tool is misrepresenting the data or you are just misunderstanding it. Can you post screenshots of the tool and maybe post output of 'top' command executed in a Terminal?
You need to be sure that everything is truly compatible. That your BIOS is up-to-date, that you are using a 64-bit Linux implementation, and that you have configured that Linux for "big memory" support. Using cat /proc/meminfo will tell you a lot about how Linux "sees" the memory configuration right now.
What you do know for sure at this point is that, if it's starting to consume swap, it doesn't think that it can "reach" any more than the current amount of RAM.
When I run multiple applications, according to gnome system monitor, the max ram usage is 1.3gigs...the rest is paged (becomes really slow).
I'm sure you are misunderstanding the situation. But it is hard to estimate the real situation from your description.
Post some output from tools that measure memory usage (such as free).
Quote:
I remember setting a swap setting to 0 so it doesn't swap at all.
Bad idea. The default setting was chosen by people who understand that parameter better than you do.
Quote:
Originally Posted by Soadyheid
You shouldn't use any swap till the physical memory is all used up.
If you haven't messed with swap settings, the system will (and should) use some swap in order to avoid reducing file caching, even though file caching ram is effectively free.
Also, it may swap out during a moment of higher memory use, then free some ram. It doesn't (and shouldn't) release the swap usage just because some more ram is free.
Quote:
Then again... you're not using on-board graphics with shared memory are you? I think that would show up as 'used'.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,647
Rep:
Quote:
Quote:
Originally Posted by Soadyheid
You shouldn't use any swap till the physical memory is all used up.
If you haven't messed with swap settings, the system will (and should) use some swap in order to avoid reducing file caching, even though file caching ram is effectively free.
Interesting... When I set up my netbook I didn't configure a swap partition at all as anything I would run on it wouldn't fill the available 2Gb of memory. The received wisdom used to be that the swap partition had to be double your installed memory as any core dumps effectively used swap as a dump area. When no-one had any memory of note, i.e. Megabytes rather than Gigabytes, a swap partition was usefull for paging data in and out of physical memory. These days, when you have Gigabytes of physical memory, is it needed as much in a desktop situation? I can see the need with servers with multiple Virtual machines installed.
When I set up my netbook I didn't configure a swap partition at all as anything I would run on it wouldn't fill the available 2Gb of memory.
Executable code and various kinds of read only data are paged from their original files, so even without swap space configured, the system may use more "memory" than you have physical ram.
Default settings are based on the assumption that it is twice as expensive to write/reread anonymous data to/from swap as to discard/reread read-only data from its original file.
So it is biased in favor of discard/reread paging over use of swap. But that is a limited bias. If the anonymous data is much more stale than the read-only data it will use swap. If you shift that bias (by changing the parameter or by configuring no swap space) you increase the paging of read only data by more than the amount you decrease swap space paging and typically make the system slower.
What kind of storage does the netbook have? For ordinary hard drives the assumption that write/reread is twice the cost of discard/reread is generally valid. But for other storage media, write/reread may be much more than twice the cost of discard/reread, so it may be correct to reduce the "swappiness" or even disable swapping entirely.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.