CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
SysMemInfo Struct Reference

How much memory the machine has and how much of it is spoken for. More...

#include <sysinfo.h>

Data Fields

flags_t valid
 SysMemInfoValid flags naming the fields that were reported.
 
uint64 physTotal
 Bytes of memory installed in the machine.
 
uint64 physAvail
 Bytes that can be used without paging something out first.
 
uint64 commitTotal
 Bytes of memory the system is willing to promise to programs in total.
 
uint64 commitAvail
 Bytes of that promise not yet handed out.
 
uint64 swapTotal
 Bytes of swap space configured.
 
uint64 swapAvail
 Bytes of swap space still free.
 
uint64 pageSize
 Size of a memory page in bytes.
 

Detailed Description

How much memory the machine has and how much of it is spoken for.

Definition at line 126 of file sysinfo.h.

Field Documentation

◆ commitTotal

uint64 SysMemInfo::commitTotal

Bytes of memory the system is willing to promise to programs in total.

Physical memory plus swap on most systems. Not reported on FreeBSD, which makes no such promise and hands out memory until it runs out.

Definition at line 137 of file sysinfo.h.

◆ swapTotal

uint64 SysMemInfo::swapTotal

Bytes of swap space configured.

Not reported on Windows, where swap cannot be separated from the total above.

Definition at line 144 of file sysinfo.h.


The documentation for this struct was generated from the following file: