Am Mon, 10 Apr 2017 18:17:36 +0200
schrieb Helmut Jarausch <jarau...@skynet.be>:

> And here is what I get (I have summed up all 'visible' memory that
> top would have shown)
> And please, compare this to what I see as memory usage.

Did you put the 'virtual' column into your calculation?

If yes, don't do it, it doesn't show what you think it shows. It only
shows allocated memory (and thus is already a sum), it doesn't show
actually used memory. Applications tend to allocate more memory than
they actually use. Linux "uses" memory only when you write to those
allocated memory pages.

You really shouldn't sum up the columns per line. They are important
each on their own.

And you cannot simply create a run down sum to see your memory usage.
Virtual is allocated memory, resident size is what is unshared resident
memory (so the best indicator of memory usage you get), and shared is
memory that is (in parts) shared with other processes. There's no way
to devide shared memory into the multiple processes. That's memory
dedicated to resident shared libraries.

You won't help anyone here in helping you by trying to make the numbers
simpler for us.

-- 
Regards,
Kai

Replies to list-only preferred.


Reply via email to