Hi teams,
I’m using Checkmk Raw Edition 2.4.0b4 and i have a question about mem linux graph
My physical ram is 16gb and swap is 16gb
but i saw in the RAM graph, total ram never is exactly by 16+16
can someone help me to determine this
memory
Details Total virtual memory: 34.78% - 10.9 GiB of 31.4 GiB
RAM: 63.15% - 9.72 GiB of 15.4 GiB
Swap: 7.50% - 1.20 GiB of 16.0 GiB
Committed: 25.85% - 8.12 GiB of 31.4 GiB virtual memory
Commit Limit: 24.51% - 7.70 GiB of 31.4 GiB virtual memory
Shared memory: 1.13% - 178 MiB of 15.4 GiB RAM
Page tables: 0.16% - 25.9 MiB of 15.4 GiB RAM
Disk Writeback: <0.01% - 320 KiB of 15.4 GiB RAM
RAM available: 80.90% free - 12.5 GiB of 15.4 GiB
Hardware Corrupted: 0% - 0 B of 15.4 GiB RAM
on my logic of RAM use, i want to change the config in mem_linux file from
section[“MemUsed”] = section[“MemTotal”] - section[“MemFree”] - section[“Caches”]
to
section[“MemUsed”] = section[“MemTotal”] - section[“MemFree”]
Is there any problem with this change
i tested it and cmksite still work
Sadly, it is above my expertise, I just noticed that the screenshot is missing.
I would though move it into a troubleshooting category, for a bit more clarity.
Hi @andreas-doehler
I tested my logic with checkmk v2.2 and 2.3
when use defaul “” section[“MemUsed”] = section[“MemTotal”] - section[“MemFree”] - section[“Caches”] “”, i got mem total exaclly is 15.4 Gb like the detail
when use section[“MemUsed”] = section[“MemTotal”] - section[“MemFree”], mem total exaclly is 15.4 Gb and i have mem used as my logic
But on v2.4 if using [“MemUsed”] = “MemTotal”] - [“MemFree”], it make the mem total dynamic over 15.4
i think memtotal is come from proc/meminfo so it muste be static not a dynamic and cannot be affected by mem use