LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-31-2014, 07:22 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 454

Rep: Reputation: Disabled
700mb of memory used, but processes memory usage appears not match it?


Hello, these processes is all what "top" returns long time:



but i dont see how the processes memory usage match the 756Mb memory usage mentioned in the top sumary..? why? how i can discover where the memory is used, this is strange, because i cant believe vps is using that much memory, only these processes.

thx
 
Old 09-01-2014, 02:59 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,037

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Hi,

this is usually just disk cache. See http://www.linuxatemyram.com/ for an explanation.

Evo2.
 
Old 09-01-2014, 06:48 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194
This system is running inside a VM, rather than on bare hardware. That means the link evo2 posted does not answer your question at all.

You can sort by the RES column in top to get a better idea what your processes are really using. In the form you displayed you can't tell whether more processes with large RES are hidden off the bottom of the display.

I expect even sorting top correctly won't show your answer. My best guess is that the hosting system is borrowing back memory for use in other VMs.

Quote:
Originally Posted by evo2 View Post
this is usually just disk cache. See http://www.linuxatemyram.com/ for an explanation.
You should look at the contents of the post, not just its title, before providing that generic answer. In most cases the contents of the post contain the details needed to tell you whether that generic answer applies to this situation. In this case, the zeroes for cache and buffers tell you that generic answer does not apply.

Last edited by johnsfine; 09-01-2014 at 06:51 AM.
 
Old 09-01-2014, 07:56 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
Remember that every operating system is designed to be "lazy." If there's a memory-resource available for use, then, since memory is fast and free, use it for something. Then, don't do anything to change that situation unless, and until, some actual pressure obliges you to do so.

For example, if you run a particular program, the system won't go out of its way to unload process segments from memory (and so on ...), unless there is pressure to use the memory for some other purpose. After all, you are likely to run the same program again soon. If your program needs more memory and there's no pressure to limit how much it can have, then the OS will just grab some more of "the free stuff" and give it to you.

When, and only if, competition for the memory resource actually develops, the OS will then start to clean house ... starting with the cheapest thing to get rid of, which is the various caches, and once again doing it "lazily."

"So what if the process has a lot of memory allocated to it? Who cares right now? Which one of the other processes under my control must be given some of it, such that I must take some action right now? If that answer is 'no one cares,' then, 'neither do I.' Better that the CPU time be consumed instead by 'hauling revenue freight,' rather than my 'overhead.'"
 
Old 09-01-2014, 09:28 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,037

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Hi,
Quote:
Originally Posted by johnsfine View Post
In this case, the zeroes for cache and buffers tell you that generic answer does not apply.
Interesting, and if it had have been text instead of a link to an image I probably would have seen it.

Cheers,

Evo2.
 
Old 09-01-2014, 10:05 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194
Quote:
Originally Posted by evo2 View Post
if it had have been text instead of a link to an image I probably would have seen it.
Sorry, I didn't know it would look that different in a different browser. The image is inline, not a link, when I look at it in Firefox.

For future reference for the OP, pasting text inside a [code] block is better than pasting an image of text.

Last edited by johnsfine; 09-01-2014 at 10:06 AM.
 
Old 09-01-2014, 10:20 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,037

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Hi,
Quote:
Originally Posted by johnsfine View Post
Sorry, I didn't know it would look that different in a different browser. The image is inline, not a link, when I look at it in Firefox.
Curious. For me chromium and iceweasel (Debian Jessie) present it as a link but Midori shows it inline, along with a bunch adds, one of which is animated and appears to link to a malware site...

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Usage on RHEL 5.3 doesnt match between free & ps aux ram4ibm Linux - Server 3 03-18-2014 02:35 PM
looking for free database that has low memory usage and innodb and memory like engin golden_boy615 Linux - Software 8 05-08-2011 08:05 AM
pthreads virtual memory usage -- memory is not freed after thread exit minimol Linux - General 2 05-26-2009 02:19 AM
Listing processes by memory usage? Seventh Linux - Newbie 3 06-17-2004 11:05 AM
Memory usage when spawning child processes brianvdc Programming 4 10-24-2003 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration