Firstly, while Docker is enabled, I observed that the system memory usage reported by free -mh shows that 19GB of memory has been used. However, when calculating the memory usage using docker stats and ps -ef commands, the total memory usage doesn't exceed 5GB. So, where did this additional memory go?
root@OuO:~# awk '$3=="kB"{if ($2>1024^2){$2=$2/1024^2;$3="GB";} else if ($2>1024){$2=$2/1024;$3="MB";}} 1' /proc/meminfo | column -t
MemTotal: 31.2649 GB
MemFree: 4.54373 GB
MemAvailable: 11.534 GB
Buffers: 588 kB
Cached: 7.0594 GB
SwapCached: 0 kB
Active: 1.10014 GB
Inactive: 7.43252 GB
Active(anon): 262.469 MB
Inactive(anon): 1.54342 GB
Active(file): 864.074 MB
Inactive(file): 5.8891 GB
Unevictable: 16 kB
Mlocked: 16 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 96 kB
Writeback: 0 kB
AnonPages: 1.16288 GB
Mapped: 5.21825 GB
Shmem: 338.344 MB
KReclaimable: 722.168 MB
Slab: 1.03822 GB
SReclaimable: 722.168 MB
SUnreclaim: 340.969 MB
KernelStack: 15.9609 MB
PageTables: 1.1418 GB
SecPageTables: 0 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 15.6324 GB
Committed_AS: 4.13858 GB
VmallocTotal: 32768 GB
VmallocUsed: 762.547 MB
VmallocChunk: 0 kB
Percpu: 10.875 MB
AnonHugePages: 596 MB
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: 2 MB
Hugetlb: 0 kB
DirectMap4k: 238.758 MB
DirectMap2M: 9.67188 GB
DirectMap1G: 24 GB
Please provide the diagnostic report for further analysis.
ouo-diagnostics-20230610-2348.zip
Afterwards, I disabled the Docker service through the Unraid dashboard, and the memory usage decreased to 16GB. Why does Unraid require such a large amount of memory? So, which component is causing the issue?
root@OuO:~# free -m
total used free shared buff/cache available
Mem: 32015 17014 9140 339 5860 14202
Swap: 0 0 0
root@OuO:~# htop
root@OuO:~# cat /proc/meminfo
MemTotal: 32783620 kB
MemFree: 9367160 kB
MemAvailable: 14551840 kB
Buffers: 1364 kB
Cached: 5622700 kB
SwapCached: 0 kB
Active: 783700 kB
Inactive: 5084084 kB
Active(anon): 263784 kB
Inactive(anon): 327228 kB
Active(file): 519916 kB
Inactive(file): 4756856 kB
Unevictable: 64 kB
Mlocked: 64 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 241248 kB
Mapped: 94604 kB
Shmem: 347292 kB
KReclaimable: 377548 kB
Slab: 727792 kB
SReclaimable: 377548 kB
SUnreclaim: 350244 kB
KernelStack: 9296 kB
PageTables: 8380 kB
SecPageTables: 0 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 16391808 kB
Committed_AS: 854076 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 819984 kB
VmallocChunk: 0 kB
Percpu: 11136 kB
AnonHugePages: 47104 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: 244488 kB
DirectMap2M: 10141696 kB
DirectMap1G: 25165824 kB
Please provide the current diagnostic report for further analysis.
ouo-diagnostics-20230610-2356.zip
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.