title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | monikerRange | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sys.dm_os_memory_nodes (Transact-SQL) |
sys.dm_os_memory_nodes (Transact-SQL) |
rwestMSFT |
randolphwest |
02/27/2023 |
sql |
system-objects |
reference |
|
|
|
>=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current |
[!INCLUDE sql-asdb-asdbmi-asa-pdw]
Allocations that are internal to [!INCLUDEssNoVersion] use the [!INCLUDEssNoVersion] memory manager. Tracking the difference between process memory counters from sys.dm_os_process_memory and internal counters can indicate memory use from external components in the [!INCLUDEssNoVersion] memory space.
Nodes are created per physical NUMA memory nodes. These might be different from the CPU nodes in sys.dm_os_nodes.
No allocations done directly through Windows memory allocations routines are tracked. The following table provides information about memory allocations done only by using [!INCLUDEssNoVersion] memory manager interfaces.
Note
To call this from [!INCLUDEssazuresynapse-md] or [!INCLUDEssPDW], use the name sys.dm_pdw_nodes_os_memory_nodes. [!INCLUDEsynapse-analytics-od-unsupported-syntax]
Column name | Data type | Description |
---|---|---|
memory_node_id | smallint | Specifies the ID of the memory node. Related to memory_node_id of sys.dm_os_memory_clerks. Not nullable. |
virtual_address_space_reserved_kb | bigint | Indicates the number of virtual address reservations, in kilobytes (KB), which are neither committed nor mapped to physical pages. Not nullable. |
virtual_address_space_committed_kb | bigint | Specifies the amount of virtual address, in KB, that has been committed or mapped to physical pages. Not nullable. |
locked_page_allocations_kb | bigint | Specifies the amount of physical memory, in KB, that has been locked by [!INCLUDEssNoVersion]. Not nullable. |
single_pages_kb | bigint | Applies to: [!INCLUDEsql2008-md] through [!INCLUDEsql2008r2]. Amount of committed memory, in KB, that is allocated by using the single page allocator by threads running on this node. This memory is allocated from the buffer pool. This value indicates the node where allocations request occurred, not the physical location where the allocation request was satisfied. |
pages_kb | bigint | Applies to: [!INCLUDEssSQL11] and later. Specifies the amount of committed memory, in KB, which is allocated from this NUMA node by Memory Manager Page Allocator. Not nullable. |
multi_pages_kb | bigint | Applies to: [!INCLUDEsql2008-md] through [!INCLUDEsql2008r2]. Amount of committed memory, in KB, that is allocated by using the multipage allocator by threads running on this node. This memory is from outside the buffer pool. This value indicates the node where the allocation requests occurred, not the physical location where the allocation request was satisfied. |
shared_memory_reserved_kb | bigint | Specifies the amount of shared memory, in KB, that has been reserved from this node. Not nullable. |
shared_memory_committed_kb | bigint | Specifies the amount of shared memory, in KB, that has been committed on this node. Not nullable. |
cpu_affinity_mask | bigint | Applies to: [!INCLUDEssSQL11] and later. Internal use only. Not nullable. |
online_scheduler_mask | bigint | Applies to: [!INCLUDEssSQL11] and later. Internal use only. Not nullable. |
processor_group | smallint | Applies to: [!INCLUDEssSQL11] and later. Internal use only. Not nullable. |
foreign_committed_kb | bigint | Applies to: [!INCLUDEssSQL11] and later. Specifies the amount of committed memory, in KB, from other memory nodes. Not nullable. |
target_kb | bigint | Applies to: [!INCLUDEssSQL15_md] and later, [!INCLUDEssSDS_md]. Specifies the memory goal for the memory node, in KB. |
pdw_node_id | int | Applies to: [!INCLUDEssazuresynapse-md], [!INCLUDEssPDW] The identifier for the node that this distribution is on. |
On [!INCLUDEssNoVersion_md] and SQL Managed Instance, requires VIEW SERVER STATE
permission.
On SQL Database Basic, S0, and S1 service objectives, and for databases in elastic pools, the server admin account, the Microsoft Entra admin account, or membership in the ##MS_ServerStateReader##
server role is required. On all other SQL Database service objectives, either the VIEW DATABASE STATE
permission on the database, or membership in the ##MS_ServerStateReader##
server role is required.
Requires VIEW SERVER PERFORMANCE STATE permission on the server.
SQL Server Operating System Related Dynamic Management Views (Transact-SQL)