According to htop
and free
, the machine I'm looking at is currently at 6631 / 11907 MB of RAM. That's more or less half of the RAM available. However when I sort top
or htop
by MEM%, the most memory being used is by Xorg with 0.8% MEM. gnome-settings
is using 0.3%, and a couple of others are using 0.1%. These percentages don't add up to ~50%.
How can I find out what is using ~50% of the memory, and why am I not seeing this memory usage in top/htop?
The output of free -mt
:
total used free shared buffers cached
Mem: 11907 10660 1246 0 650 3379
-/+ buffers/cache: 6629 5277
Swap: 3999 26 3973
Total: 15907 10686 5220
EDIT: As requested...
vmstat 1 5
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 26640 312180 695976 4229988 0 0 4 34 0 1 1 1 96 2 0
0 0 26640 312032 695976 4230016 0 0 0 0 157 191 0 0 100 0 0
0 0 26640 312156 695976 4230016 0 0 0 0 158 270 0 0 100 0 0
0 0 26640 312156 695976 4230016 0 0 0 0 128 189 0 0 100 0 0
0 0 26640 312156 695976 4230016 0 0 0 0 212 308 0 0 100 0 0
cat /proc/meminfo
MemTotal: 12192876 kB
MemFree: 311644 kB
Buffers: 695984 kB
Cached: 4230016 kB
SwapCached: 7684 kB
Active: 1378792 kB
Inactive: 3656424 kB
Active(anon): 2192 kB
Inactive(anon): 108500 kB
Active(file): 1376600 kB
Inactive(file): 3547924 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 4095992 kB
SwapFree: 4069352 kB
Dirty: 28 kB
Writeback: 0 kB
AnonPages: 102412 kB
Mapped: 52116 kB
Shmem: 1456 kB
Slab: 5584084 kB
SReclaimable: 4402760 kB
SUnreclaim: 1181324 kB
KernelStack: 3176 kB
PageTables: 17852 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 10192428 kB
Committed_AS: 678004 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 185496 kB
VmallocChunk: 34359540220 kB
HardwareCorrupted: 0 kB
AnonHugePages: 28672 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 5177316 kB
DirectMap2M: 7403520 kB
DirectMap1G: 0 kB
top
thenSHIFT+m
for more options seetop
then pressh
– Valentin Bajrami Jul 18 '14 at 14:41free
. – goldilocks Jul 18 '14 at 14:42/proc/meminfo
?top
sorted by memory usage might also be useful (not all, just the first 15 entries or so) – phemmer Jul 18 '14 at 15:45vmstat 1 5
– klerk Jul 18 '14 at 20:15