1// Package memory provides a single method reporting total system memory
2// accessible to the kernel.
3package memory
4
5// TotalMemory returns the total accessible system memory in bytes.
6//
7// The total accessible memory is installed physical memory size minus reserved
8// areas for the kernel and hardware, if such reservations are reported by
9// the operating system.
10//
11// If accessible memory size could not be determined, then 0 is returned.
12func TotalMemory() uint64 {
13	return sysTotalMemory()
14}
15