memory_info

Contains information about the current available memory.

Service:NetWare Platform

Structure

  #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];
  };
  

Fields

AllocatedMemoryPool

Indicates, in bytes, the amount of memory allocated to the memory pool.

CacheBufferSize

Indicates, in bytes, the size of a cache buffer.

CacheBufferMemory

Indicates the number of cache buffers that have been allocated for cache.

CacheMoveableMemory

Indicates, in bytes, the amount of cache memory that is moveable to other resources.

CacheNonmoveableMemory

Indicates, in bytes, the amount of cache memory that can only be used as cache memory.

CodeMemory

Indicates, in bytes, the memory allocated for server code.

DataMemory

Indicates, in bytes, the memory allocated for server data.

TotalWorkMemory

Indicates, in bytes, the total amount of memory that has been allocated for server work.

OtherCachePagesMemory

Indicates, in bytes, the memory used by data and code.

reserved1

Reserved for future use.

TotalKnownSystemMemoryUnder4Gb

Indicates, in bytes, the total amount of server memory, if less than 4 GB are installed on the server.

TotalKnownMemory

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

Reserved for future use.

Remarks

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"