github.com/jingleWang/moby@v1.13.1/pkg/system/meminfo.go (about)

     1  package 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  }