Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
 GetNumaAvailableMemoryNode Function
GetNumaAvailableMemoryNode Function

Retrieves the amount of memory available in the specified node.

Use the GetNumaAvailableMemoryNodeEx function to specify the node as a USHORT value.

Syntax

C++
BOOL WINAPI GetNumaAvailableMemoryNode(
  __in   UCHAR Node,
  __out  PULONGLONG AvailableBytes
);

Parameters

Node [in]

The number of the node.

AvailableBytes [out]

The amount of available memory for the node, in bytes.

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The GetNumaAvailableMemoryNode function returns the amount of memory consumed by free and zeroed pages on the specified node. This memory does not include standby pages. Therefore, the sum of the available memory values for all nodes in the system is equal to the value of the Free & Zero Page List Bytes memory performance counter rather than the Available Bytes memory performance counter, which does include standby pages. For more information about performance counters, see Memory Performance Information.

Requirements

Minimum supported clientWindows Vista, Windows XP Professional x64 Edition, Windows XP with SP2
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll

See Also

GetNumaAvailableMemoryNodeEx
NUMA Support
Process and Thread Functions

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Wrong amount of memory in Availablebytes      PatrickA ... Thomas Lee   |   Edit   |   Show History
I can't seem to get this function to give me an accurate ammount of memory associated with the node. Does anyone have an example of they can post?

[tfl - 25 09 09] Hi - and thanks for your post. You should post questions like this to the MSDN Forums at http://forums.microsoft.com/msdn or the MSDN Newsgroups at http://www.microsoft.com/communities/newsgroups/en-us/. You are much more likely get a quicker response using the forums than through the Community Content. For specific help about:
.NET Framework : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.dotnet.framework
PowerShell : http://groups.google.com/group/microsoft.public.windows.powershell/topics?pli=1
SQL Server : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.sqlserver%2C&
Visual Studio : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.vstudio%2C&
Windows : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows%2C&
All Public : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public%2C&

Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker