本节提供 vm.memory.size[<mode>] agent 监控项 的一些参数详细信息。
以下参数可用于此 监控项:
available
/total
*100)used
/total
*100)其中一些参数是平台特定的,可能在您的平台上不可用。详细信息请参见 Zabbix agent items。
available 和 used 的平台特定计算方式:
平台 | "available" | "used" |
---|---|---|
AIX | free + cached | 实际使用的 memory |
FreeBSD | inactive + cached + free | active + wired + cached |
HP UX | free | total - free |
Linux<3.14 | free + buffers + cached | total - free |
Linux 3.14+ (also backported to 3.10 on RHEL 7) |
/proc/meminfo,详细信息请参见 Linux 内核 documentation 中的 "MemAvailable"。 请注意,由于并非所有页缓存都可以释放以及计算中使用了低水位标记,free + buffers + cached 不再等于 '可用的'。 |
total - free |
NetBSD | inactive + execpages + file + free | total - free |
OpenBSD | inactive + free + cached | active + wired |
OSX | inactive + free | active + wired |
Solaris | free | total - free |
Win32 | free | total - free |
vm.memory.size[used] 与 vm.memory.size[available] 的总和不一定等于 total。例如,在 FreeBSD 上:
* Active、inactive、wired、cached 内存被视为已使用,因为它们存储了一些有用的信息。
* 同时,inactive、cached、free 内存被视为可用,因为这些类型的内存可以立即分配给请求更多内存的进程。
因此,inactive memory 同时被视为已使用和可用。因此,vm.memory.size[used] 监控项 仅用于提供信息,而 vm.memory.size[available] 则设计用于触发器中。