Contains information about the current virtual memory.
#include <monitor.h> struct vmemory_info { uint64_t PageInCount; uint64_t PageOutCount; uint64_t SwapResvCount; uint64_t SwapPageCount; uint64_t SwapFreeCount; uint64_t PageFaultCount; uint64_t freeCachePages; uint64_t freeCleanPages; uint64_t freeDirtyPages; uint64_t VMPhysicalPageCount; uint32_t reserved[20]; };
Specifies the number of pages that have been swapped into physical memory.
Specifies the number of pages that have been swapped out of physical memory.
Specifies the number of pages that are reserved within the swap files.
Specifies the number of swap pages currently in use.
Specifies the number of swap pages currently free.
Specifies the number of times a page was not currently in physical memory and had to be swapped in for a process to continue.
Specifies the number of swapped pages that are waiting in cache to be written to disk.
Specifies the number of pages that are free and have been cleared of all old data.
Specifies the number of pages that are free but still retain old data.
Specifies the total number of pages allocated for virtual memory.
Reserved for future use.
Since the fields in this structure are long long (or 64-bit), use the ll length modifier with printf-type functions to display the values. For example:
printf("Page In Count: %lld\n"