github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/system/meminfo.go (about)

     1  package system // import "github.com/demonoid81/moby/pkg/system"
     2  
     3  // MemInfo contains memory statistics of the host system.
     4  type MemInfo struct {
     5  	// Total usable RAM (i.e. physical RAM minus a few reserved bits and the
     6  	// kernel binary code).
     7  	MemTotal int64
     8  
     9  	// Amount of free memory.
    10  	MemFree int64
    11  
    12  	// Total amount of swap space available.
    13  	SwapTotal int64
    14  
    15  	// Amount of swap space that is currently unused.
    16  	SwapFree int64
    17  }