Contains information about the current available memory.
#include <monitor.h> struct memory_info { size64_t AllocatedMemoryPool; size64_t CacheBufferSize; size64_t CacheBufferMemory; size64_t CacheMoveableMemory; size64_t CacheNonmoveableMemory; size64_t CodeMemory; size64_t DataMemory; size64_t TotalWorkMemory; size64_t OtherCachePagesMemory; size64_t reserved1; size64_t TotalKnownSystemMemoryUnder4Gb; size64_t TotalKnownMemory; uint32_t reserved[12]; };
Indicates, in bytes, the amount of memory allocated to the memory pool.
Indicates, in bytes, the size of a cache buffer.
Indicates the number of cache buffers that have been allocated for cache.
Indicates, in bytes, the amount of cache memory that is moveable to other resources.
Indicates, in bytes, the amount of cache memory that can only be used as cache memory.
Indicates, in bytes, the memory allocated for server code.
Indicates, in bytes, the memory allocated for server data.
Indicates, in bytes, the total amount of memory that has been allocated for server work.
Indicates, in bytes, the memory used by data and code.
Reserved for future use.
Indicates, in bytes, the total amount of server memory, if less than 4 GB are installed on the server.
Indicates, in bytes, the total amount of server memory, if more than 4 GB are installed on the server.If less than 4 GB are installed on the server, this field contains the same value as the TotalKnownSystemMemoryUnder4Gb field.
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("Allocated Memory Pool: %lld\n"