Linux 이상한 메모리 보고서

Linux 이상한 메모리 보고서

다음 meminfo를 캡처했습니다.

태블릿이 4GB 정도만 출시됐는데 어떻게 여유 메모리가 8GB에서 거의 25GB로 늘어났는지 이해가 안 된다. meminfo 출력을 가져올 때 프로세스 메모리 소비에는 변화가 없습니다.

8GB의 여유 메모리가 있는 첫 번째 meminfo:

MemTotal:       66054256 kB
MemFree:         8344960 kB
Buffers:            1120 kB
Cached:         30172312 kB
SwapCached:            0 kB
Active:         10795428 kB
Inactive:        1914512 kB
Active(anon):   10193124 kB
Inactive(anon):  1441288 kB
Active(file):     602304 kB
Inactive(file):   473224 kB
Unevictable:    26348912 kB
Mlocked:        26348960 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:       8886304 kB
Mapped:         26383052 kB
Shmem:          29097904 kB
Slab:            6006384 kB
SReclaimable:    3512404 kB
SUnreclaim:      2493980 kB
KernelStack:       15240 kB
PageTables:        78724 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    33027128 kB
Committed_AS:   44446908 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      426656 kB
VmallocChunk:   34325375716 kB
HardwareCorrupted:     0 kB
AnonHugePages:   7696384 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        6144 kB
DirectMap2M:     2058240 kB
DirectMap1G:    65011712 kB

두 번째 메모리 캡처, 남은 메모리는 25GB에 가깝습니다.

MemTotal:       66054256 kB
MemFree:        24949116 kB
Buffers:            1120 kB
Cached:         29085016 kB
SwapCached:            0 kB
Active:         10168904 kB
Inactive:        1461156 kB
Active(anon):   10168216 kB
Inactive(anon):  1441956 kB
Active(file):        688 kB
Inactive(file):    19200 kB
Unevictable:    26317328 kB
Mlocked:        26317376 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:       8861224 kB
Mapped:         26351488 kB
Shmem:          29066248 kB
Slab:            1503440 kB
SReclaimable:     232880 kB
SUnreclaim:      1270560 kB
KernelStack:       15256 kB
PageTables:        79664 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    33027128 kB
Committed_AS:   44418280 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      426656 kB
VmallocChunk:   34325375716 kB
HardwareCorrupted:     0 kB
AnonHugePages:   7665664 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        6144 kB
DirectMap2M:     2058240 kB
DirectMap1G:    65011712 kB

관련 정보