Am Sat, 8 Apr 2017 23:55:29 +0200
schrieb Alan McKinnon <alan.mckin...@gmail.com>:

> > Adding up all terms except 'tot' I get 5.6G where are the remaining
> > 2G? And why is  shmem 0.85G - I have even seen a value of 4G for
> > shmem although all tempfs filesystems
> > were nearly empty.  
> 
> Lots of things use shared memory. All you know here is that something
> is using lots of it

Shared memory is not tmpfs. If many processes load the same .so file,
that memory is accounted for as shared memory: it's only mapped once
into memory. Well, with PIC/PIE that is not necessarily true as the
dynamic linker is patching the files (better speaking: the mapped
memory pages) during load, so some parts become unshared, unless you are
using prelink which should eliminate that factor to a great degree.
Shared memory also includes what is allocated as shmem file descriptors
(which in turn goes into tmpfs files, hence you thinking tmpfs is
shmem).

I think something is creating memory mapped files on your filesystem -
it could explain why you're missing 2G of memory.

If you don't use prelinking, 0.85G shmem looks perfectly normal to me.
I have around half of it with a full-blown but fully prelinked system.

-- 
Regards,
Kai

Replies to list-only preferred.


Reply via email to