[SOLVED] Memory Fills Up In Mint 18 with Google Chrome
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I'm not sure if the problem is caused only by Chrome, but it seems to cause the worst of it. When I leave my computer on for a while, usually with a browser window and a few tabs open, my system memory slowly fills up. However, the memory does not go down much when I close out of all applications. When I have a fresh slate after rebooting, there's usually about 700-800 MB used. After closing all apps, there can be up to 5 or 6 GB still used. When I look in the System Monitor Processes tab, the total of all the running apps is much lower than the amount of memory shown to be used in the Resources tab.
What's causing this? I'm getting tired of having to reboot all the time to clean it out.
Linux Mint 18, MATE desktop
Dell Inspiron 5559; 8GB RAM
I'm a little confused by your question. If your computer has 8gb of RAM, and you are only using 5 or 6gb, then you have 2 or 3gb free, and there is no problem. There's certainly no need to "reboot to clean it out." That would be like saying, "I went on vacation, and noticed my suitcase was 75% full, so I drove home to drop off some of my clothes to make more room."
But the memory is not available, but also not being used by anything. I don't technically NEED to reboot unless I'm going to be running a game, but the point is that a bunch of memory is still being used after I close out of everything.
*reads the site you linked* Ok, that makes sense ... but the graph I'm looking at shows the cache as a different color than the actual used memory. (attachment 1) The lighter green shows the used memory, the darker green above it shows the cached memory, and the black at the top shows unused memory. The light green of used memory is what grows up and doesn't go back down. This makes sense for the cache, but it's not the cache that's staying full. (Maybe just the graphs are picking up the wrong data?) The System Monitor >> Resources graph (attachment 2) shows the same level as the used memory, disregarding the cache the other graph shows.
1) Reboot the machine so everything is "fresh."
2) Start your stopwatch.
3) Launch Chrome.
4) Load a bunch of web pages.
5) Stop the stopwatch and make note of the elapsed time.
6) Quit Chrome.
7) Start Chrome again.
8) Load the same web pages.
9) Stop the stopwatch and compare this time to the first time.
I bet you will find that Chrome loaded faster the second time, because of the cache.
Quote:
Originally Posted by Flexico
I don't technically NEED to reboot unless I'm going to be running a game,
Which game are you trying to play, and what specifically happens when you try to launch it? Does the computer crash? Freeze up? Give an error message (and if so, what is the error message)?
I've just never run games when the RAM looked full. I have a little system resources graph on my taskbar, so I'm always eyeballing my memory usage. I guess I just have to change how I interpret the RAM graph.
If it needs extra RAM to run the game, Linux will clear some of the cache and/or move data from RAM to Swap. If I am interpreting your screenshot correctly, you have 17.6gb available for games (5.2gb RAM + 12.4gb Swap).
If, on a regular/routine basis, your RAM is approaching 100% and you are using a significant amount of Swap, then you might get a nice performance boost by increasing your RAM from 8gb to 16gb. The reason for this is that RAM is faster than Swap (especially if you are still using a spinning hard drive as opposed to SSD).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.