LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-19-2016, 07:47 AM   #16
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941

You might well have a "memory leak" problem in some of those processes, and this would be indicated if the memory consumption of some process continued to enlarge while the nature of the work that they are doing is such that this sort of behavior would not be expected.

Since it can be difficult to track down these problems in production code, some systems are simply designed so that the processes "commit hari kiri" after a little while. They voluntarily terminate, and are immediately replaced. (Others take a similar approach: they exec themselves.)

Remember, also, that Linux does try to put "100% of available memory" to some good use. A common, lowest-priority use is "file buffers." Linux is completely lazy about cleaning-up such things, because there is no harm and possible benefit in letting them stay around as long as possible.

The situation won't change until, and unless, there is actual memory "pressure." Then, according to a well-established system of priorities, Linux begins taking-back memory ... up-to and including the dreaded "OOM Killer" (which starts shooting passengers and throwing them over the side to save the balloon).
 
Old 05-19-2016, 09:47 AM   #17
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by sacherus View Post
Code:
(...)
130.7 MiB +  34.8 MiB = 165.5 MiB	evince (2)
221.8 MiB +   3.2 MiB = 225.0 MiB	compiz
  2.1 GiB +  80.2 MiB =   2.1 GiB	chromium-browser [updated] (22)
---------------------------------
                          3.8 GiB
=================================

             total       used       free     shared    buffers     cached
Mem:          7.7G       6.5G       1.2G       826M       120M       2.6G
-/+ buffers/cache:       3.8G       3.9G
Swap:         7.6G       5.9M       7.6G
That's entirely consistent and normal. You've got 3.8G allocated to processes (most of it to the chromium-browser) plus another (120M + 2.6G) buffer and cache space that is available for processes if they need it.

Think of the cache space as the kernel saying, "This memory is available, but if some process happens to want the data that's in that cache, I know what it is and where it is and won't have to read it from the disk."
 
  


Reply



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
[SOLVED] Can't Get Cuda to Install on Ubuntu... datahead8888 Ubuntu 2 05-17-2014 06:39 PM
Torrents consuming too much RAM. glore2002 Debian 3 10-22-2009 05:50 PM
/usr/bin/find running background.......consuming 1.5G ram? ErrorBound Debian 1 11-07-2006 09:51 AM
I can't figure out how much ram my Fluxbox is consuming... RHLinuxGUY Linux - Software 2 06-28-2006 01:36 AM
Debian and Kde3.3 consuming all my RAM kenneho Debian 5 08-21-2005 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration