package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
Init initializes global 'MemoryAccounting'.
RTMemoryStatsPointer casts addr to a RTMemoryStats pointer.
TotalMemory returns the "total usable memory" available.
# Constants
Anonymous represents anonymous application memory.
Mapped represents memory related to files which have a local fd on the host, and thus can be directly mapped.
PageCache represents memory allocated to back sandbox-visible files that do not have a local fd.
Ramdiskfs represents memory used by the ramdiskfs.
System represents miscellaneous system memory.
Tmpfs represents memory used by the sandbox-visible tmpfs.
# Variables
MaximumTotalMemoryBytes is the maximum reported total system memory.
MemoryAccounting is the global memory stats.
2 GB.
RTMemoryStatsSize is the size of the RTMemoryStats struct.
# Structs
CPUStats contains the subset of struct rusage fields that relate to CPU scheduling.
IO contains I/O-related statistics.
MemoryLocked is Memory with access methods.
MemoryStats tracks application memory usage in bytes.
RTMemoryStats contains the memory usage values that need to be directly exposed through a shared memory file for real-time access.
# Type aliases
MemoryKind represents a type of memory used by the application.