struct Hardware::Memory

Defined in:

hardware/memory.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def available #

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773 MemAvailable can be not present in older systems


[View source]
def meminfo : Hash(String, Int64) #

VmallocTotal can be very huge - needs Int64


[View source]
def percent(used = true) #

[View source]
def total #

in kB


[View source]
def used #

[View source]