Last Modified
2013-07-13 23:17:44 +0000
Requires
  • facter/util/memory
  • facter/util/wmi

Description

Fact: memory

Purpose: Return information about memory and swap usage.

Resolution:

On Linuxes, uses Facter::Memory.meminfo_number from
'facter/util/memory.rb'
On AIX, parses "swap -l" for swap values only.
On OpenBSD, it parses "swapctl -l" for swap values, vmstat via a module for
free memory, and "sysctl hw.physmem" for maximum memory.
On Solaris, use "swap -l" for swap values, and parsing prtconf for maximum
memory, and again, the vmstat module for free memory.

Caveats:

Some BSD platforms aren't covered at all. AIX is missing memory values.