1 title: Usage of physical and virtual RAM
7 This check measures the current usage of physical RAM and
8 virtual memory used by processes. You can define a warning
9 and critical level for the usage of virtual memory,
10 {not} for the usage of RAM.
12 This is not a bug, it's a feature. In fact it is the only way to do it right
13 (at least for Linux): What parts of a process currently reside in physical
14 RAM and what parts are swapped out is not related in a direct way with the
17 Linux tends to swap out parts of processes even if RAM is available. It
18 does this in situations where disk buffers (are assumed to) speed up the
19 overall performance more than keeping rarely used parts of processes in RAM.
21 For example after a complete backup of your system you might experiance
22 that your swap usage has increased while you have more RAM free then
23 before. That is because Linux has taken RAM from processes in order to
24 increase disk buffers.
26 So when defining a level to check against, the only value that is not
27 affected by such internals of memory management is the total amount of
28 {virtual} memory used up by processes (not by disk buffers).
30 Check_MK lets you define levels in percentage of the physically installed RAM
31 or as absolute values in MB. The default levels are at 150% and 200%. That
32 means that this check gets critical if the memory used by processes is
33 twice the size of your RAM.
35 Hint: If you want to monitor swapping, you probably better measure major
36 pagefaults. Please look at the check {kernel}.
42 {mem.used} creates one check on each host that provides
43 the section {<<<mem>>>}. If that section also outputs
44 information about the Windows page file, then the check
45 {<<<mem.win>>>} is being used instead.