Hi Marcel,
I’ll given an example;
On a KVM machine with 128 GiB ram and (only) 8 GiB swap I run a few virtual
machines that together claim about 160 GiB ram (‘VIRT’ in top, ‘VSZ’ in ps),
yet if I add up the committed memory (‘RES’ in top, ‘RSS’ in ps, 'Memory
Committing’ graph in 1.2.8b7) then they together use only 70 GiB.
This is all fine for this machine IMO.
VSZ:
ps aux | awk ‘{ s += $5 } END {print “sum =”, s, s/1024^2, “GiB, average =”, s/NR, “, over”, NR, “counts” }’
sum = 164325620 156.713 GiB, average = 193780 , over 848 counts
RSS:
ps aux | awk ‘{ s += $6 } END {print “sum =”, s, s/1024^2, “GiB, average =”, s/NR, “, over”, NR, “counts” }’
sum = 69238760 66.0312 GiB, average = 81745.9 , over 847 counts
free -m:
total used free shared buffers cached
Mem: 128929 106939 21990 1 103 682
-/+ buffers/cache: 106153 22775
Swap: 8191 229 7962
So my VSZ is quite above the machines’ RAM + SWAP. A factor 1.24 . That’s why I
want my warning level to be at about 150% . I hope this helps.
– Hans
Marcel Schulte wrote on 20160330:
Hi Hans,
I don’t understand your issue.
Assumed a server with 8GB RAM and 16GB SWAP, you can set any of these
params (or any combination of them):
- set param “Level for RAM” to 80.0%/90.0% to get WARN/CRIT at 6.4GB/7.2GB
of physical RAM used
- set param “Level for Swap” to 10.0%/20.0% to get WARN/CRIT at 1.6GB/3.2GB
of swap space used
- set param “Levels for Total virtual memory” to 80.0%/90.0% to get
WARN/CRIT at 19.2GB/21.6GB of all available memory (RAM+SWAP) used
- set param “Upper levels for Total Data in relation to RAM” to
150.0%/250.0% to get WARN/CRIT at 12.0GB/20.0GB of all available memory used
What’s the problem with that?
And how would it be possible to use >100% of all available virtual memory
(remember: virtual memory = RAM + SWAP)?
Regards,
Marcel
Hans Lambermont hans@shapeways.com schrieb am Mi., 30. März 2016 um > > > 14:02 Uhr:
Hi Marcel,
Thanks. I was afraid of that.
I find that some processes (virtual machines and java come to mind) claim
(virtual) memory in such quantities that do not work well with this logic.
101.0 it is then. A pity.
– Hans
Marcel Schulte wrote on 20160330:
AFAIK virtual memory is defined as RAM+SWAP, so the percentual usage will
never get >100%. 101.0 is used to disable the threshold. If you want to
use
the “old” thresholds in the new linux memory check you’ve to set param
“Upper levels for Total Data in relation to RAM” I think.
HTH,
Marcel
Hans Lambermont hans@shapeways.com schrieb am Mi., 30. März 2016 um > > > > > 13:13 Uhr:
Hi CMK list,
I’m trying to tune rules for Virtual Memory Warning and Alerting level.
In 1.2.8b7 these default to 80% and 90%
I want to set them to 150% and 250% (I think this makes sense on KVM
hypervisors)
However I get these error in WATO:
150.0 is too high. The maximum allowed value is 101.0
250.0 is too high. The maximum allowed value is 101.0
wtf ?! Can I be in control of levels myself ?
Has anyone else seen this ? How to fix ?
– Hans
–
Hans Lambermont | Senior Architect
(t) +31407370104 (w) www.shapeways.com