memory

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MIT, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package memory provides a single method reporting total system memory accessible to the kernel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreeMemory

func FreeMemory() uint64

FreeMemory returns the total free system memory in bytes.

The total free memory is installed physical memory size minus reserved areas for other applications running on the same system.

If free memory size could not be determined, then 0 is returned.

func TotalMemory

func TotalMemory() uint64

TotalMemory returns the total accessible system memory in bytes.

The total accessible memory is installed physical memory size minus reserved areas for the kernel and hardware, if such reservations are reported by the operating system.

If accessible memory size could not be determined, then 0 is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL