Author Topic: 700mb of memory used, but processes memory usage appears not match it?  (Read 1296 times)

0 Members and 1 Guest are viewing this topic.

Offline postcd

  • Jr. Member
  • **
  • Posts: 37
  • Karma: 0
  • Gender: Male
  • just curious
    • View Profile
    • Awards
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
no general writing in my threads please, only helpfull ontopic please

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: 700mb of memory used, but processes memory usage appears not match it?
« Reply #1 on: August 31, 2014, 12:54:24 pm »
Top doesn't list ALL running processes .. as it's name suggests it lists the top processes for the chosen field (%CPU by default).

top is sensitive to the size of your terminal window .. so if you make your terminal window larger, it will show more processes, but stiil only the top resource hogging processes it can fit into the terminal window.

if you want to see ALL running processes
Code: [Select]
ps aux
would be a better bet

For memory usage, bear in mind the system will be using a lot of RAM for buffering/caching application data to speed things up
Code: [Select]
free -m
will give you an output like this example
Code: [Select]
             total       used       free     shared    buffers     cached
Mem:          1367       1147        219         71        118        608
-/+ buffers/cache:        420        947
Swap:         1521          0       1521
where
1147 = RAM usage including buffered/cached data
and
420 = RAM usage ignoring buffers/caches
« Last Edit: August 31, 2014, 12:56:44 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline postcd

  • Jr. Member
  • **
  • Posts: 37
  • Karma: 0
  • Gender: Male
  • just curious
    • View Profile
    • Awards
Re: 700mb of memory used, but processes memory usage appears not match it?
« Reply #2 on: August 31, 2014, 08:31:00 pm »
Thank you for advices, in my case free -m returns same value with/without cache/buffers. There are more commands to show processes memory. But from their output i still do not match its cumulated memory usage value with free -m used memory value
no general writing in my threads please, only helpfull ontopic please

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal