Class Vmstat::Memory
In: lib/vmstat/memory.rb
Parent: Struct.new(:pagesize, :wired, :active, :inactive, :free, :pageins, :pageouts)

Gathered memory data snapshot. @attr [Fixnum] pagesize

  The page size of the memory in bytes.

@attr [Fixnum] wired

  The number of wired pages in the system.

@attr [Fixnum] active

  The number of active pages in the system.

@attr [Fixnum] inactive

  The number of inactive pages in the system.

@attr [Fixnum] free

  The number of free pages in the system.

@attr [Fixnum] pageins

  The number of pageins.

@attr [Fixnum] pageouts

  The number of pageouts.

Methods

Public Instance methods

Calculate the active bytes based of the active pages. @return [Fixnum] active bytes

Calculate the free bytes based of the free pages. @return [Fixnum] free bytes

Calculate the inactive bytes based of the inactive pages. @return [Fixnum] inactive bytes

Calculate the total bytes based of all pages @return [Fixnum] total bytes

@return [Fixnum] wired bytes

[Validate]