NWGetAvailableMemory

Returns the number of bytes of memory available on the server

Local Servers:nonblocking
Remote Servers:N/A
Classification:Other
Service:Memory Allocation

Syntax

  #include <nwmalloc.h> 
    
  LONG NWGetAvailableMemory  (  
     void);
  

Return Values

NWGetAvailableMemory returns the amount of memory (in bytes) available on the server.

Remarks

The amount of memory returned by NWGetAvailableMemory is the number of current cache buffers mutliplied by the size of a cache buffer. The amount available will usually not be allocatable as one large chunk as it will usually not be contiguous.

See Also

NWGetAllocPageOverhead, NWGetPageSize, NWMemorySizeAddressable