Class: Vmstat::LinuxMemory
- Defined in:
- lib/vmstat/memory.rb,
lib/vmstat/linux_memory.rb
Instance Attribute Summary collapse
-
#available ⇒ Fixnum
The estimated available memory (linux) See: git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773.
Attributes inherited from Memory
#active, #free, #inactive, #pageins, #pageouts, #pagesize, #wired
Instance Method Summary collapse
-
#available_bytes ⇒ Fixnum
Calculate the available bytes based of the active pages.
Methods inherited from Memory
#active_bytes, #free_bytes, #inactive_bytes, #total_bytes, #wired_bytes
Instance Attribute Details
#available ⇒ Fixnum
The estimated available memory (linux) See: git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
53 54 55 |
# File 'lib/vmstat/memory.rb', line 53 def available @available end |
Instance Method Details
#available_bytes ⇒ Fixnum
Calculate the available bytes based of the active pages.
58 59 60 |
# File 'lib/vmstat/memory.rb', line 58 def available_bytes available * pagesize end |