Closed YellowOnion closed 3 years ago
I've booted my vm several times and now I'm missing about 10GB of memory...
As you can see by non-cache kernel dynamic memory:
$ smem -tw Area Used Cache Noncache firmware/hardware 0 0 0 kernel image 0 0 0 kernel dynamic memory 21184348 11002604 10181744 userspace memory 2385732 535340 1850392 free memory 9295972 9295972 0 ---------------------------------------------------------- 32866052 20833916 12032136 $ cat /proc/meminfo MemTotal: 32866052 kB MemFree: 9081332 kB MemAvailable: 20023604 kB Buffers: 1000 kB Cached: 11388500 kB SwapCached: 1106592 kB Active: 7499800 kB Inactive: 7028844 kB Active(anon): 821200 kB Inactive(anon): 2479164 kB Active(file): 6678600 kB Inactive(file): 4549680 kB Unevictable: 16 kB Mlocked: 16 kB SwapTotal: 16777212 kB SwapFree: 14428156 kB Dirty: 1132 kB Writeback: 0 kB AnonPages: 2050472 kB Mapped: 536664 kB Shmem: 173424 kB KReclaimable: 161464 kB Slab: 1219148 kB SReclaimable: 161464 kB SUnreclaim: 1057684 kB KernelStack: 21952 kB PageTables: 34904 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 33210236 kB Committed_AS: 10727300 kB VmallocTotal: 34359738367 kB VmallocUsed: 724204 kB VmallocChunk: 0 kB Percpu: 42496 kB AnonHugePages: 0 kB ShmemHugePages: 0 kB ShmemPmdMapped: 0 kB FileHugePages: 0 kB FilePmdMapped: 0 kB CmaTotal: 0 kB CmaFree: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 0 kB DirectMap4k: 21471120 kB DirectMap2M: 11997184 kB DirectMap1G: 0 kB
This module doesn't allocate more then a few hundred bytes of RAM at a time, it would take thousands of boots to cause a 10GB memory leak if there was indeed one.
I've booted my vm several times and now I'm missing about 10GB of memory...
As you can see by non-cache kernel dynamic memory: