onde minha memória está sendo usada? livre -h usado 24G mas meu programa consome apenas 6G

0

Minha versão do sistema operacional é

[root@m-21-30 ~]# rpm -qf /etc/issue
centos-release-7-3.1611.el7.centos.x86_64
[root@m-21-30 ~]# uname -a
Linux m-21-30 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Os shows gratuitos eu usei 24G

[root@m-21-30 ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:            62G         24G        678M         26M         37G         37G
Swap:           31G         32K         31G

Mas eu uso ps para encontrar toda a memória utilizada pelo processo:

[root@m-21-30 ~]# ps aux|grep -v RSS|awk '{ sum+=$4 }END{print sum*0.01*64}' 
6.208

O resultado mostra que eu usei apenas 6G de memória, Abaixo, mostra o processo de 10 melhores usos de memória

[root@m-21-30 ~]# ps aux|head -1;ps aux|grep -v RSS|sort -nr -k4|head
USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
cluser   124265  0.0  1.6 35026212 1103932 ?    S    02:30   0:00 /usr/bin/python ./moge_scheduler
cluser   124264  0.0  1.6 35026212 1103952 ?    S    02:30   0:00 /usr/bin/python ./moge_scheduler
cluser   124263  0.0  1.6 35026212 1103952 ?    S    02:30   0:00 /usr/bin/python ./moge_scheduler
cluser   124262  0.0  1.6 35026212 1103952 ?    S    02:30   0:00 /usr/bin/python ./moge_scheduler
cluser   124261  0.0  1.6 35026212 1103952 ?    S    02:30   0:00 /usr/bin/python ./moge_scheduler
cluser   128604  0.0  0.2 60060948 151952 ?     S    05:47   0:00 /usr/bin/python ./moge_scheduler
cluser   128603  0.0  0.2 60060948 151952 ?     S    05:47   0:00 /usr/bin/python ./moge_scheduler
cluser   128602  0.0  0.2 60060948 151952 ?     S    05:47   0:00 /usr/bin/python ./moge_scheduler
cluser   128601  0.0  0.2 60060948 151952 ?     S    05:47   0:00 /usr/bin/python ./moge_scheduler
cluser   128600  0.0  0.2 60060948 151952 ?     S    05:47   0:00 /usr/bin/python ./moge_scheduler

Como eu poderia descobrir para onde vai minha memória?

Aqui está o /proc/meminfo info:

[root@m-21-30 ~]# cat /proc/meminfo 
MemTotal:       65689956 kB
MemFree:          690360 kB
MemAvailable:   39357688 kB
Buffers:             456 kB
Cached:         38678452 kB
SwapCached:           32 kB
Active:          5788816 kB
Inactive:       34868972 kB
Active(anon):    1394812 kB
Inactive(anon):   614724 kB
Active(file):    4394004 kB
Inactive(file): 34254248 kB
Unevictable:        9324 kB
Mlocked:            9324 kB
SwapTotal:      32965628 kB
SwapFree:       32965596 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:       1988260 kB
Mapped:            48424 kB
Shmem:             26976 kB
Slab:             664832 kB
SReclaimable:     555012 kB
SUnreclaim:       109820 kB
KernelStack:        9184 kB
PageTables:        47984 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    65810604 kB
Committed_AS:   1291156360 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      453128 kB
VmallocChunk:   34358900732 kB
HardwareCorrupted:     0 kB
AnonHugePages:    253952 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      142064 kB
DirectMap2M:     5005312 kB
DirectMap1G:    63963136 kB
    
por Hongzhi 22.12.2017 / 03:16

0 respostas

Tags