Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 4 KB

sys-dm-os-memory-pools-transact-sql.md

File metadata and controls

56 lines (44 loc) · 4 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs monikerRange
sys.dm_os_memory_pools (Transact-SQL)
sys.dm_os_memory_pools (Transact-SQL)
rwestMSFT
randolphwest
02/27/2023
sql
system-objects
reference
sys.dm_os_memory_pools_TSQL
dm_os_memory_pools
dm_os_memory_pools_TSQL
sys.dm_os_memory_pools
sys.dm_os_memory_pools dynamic management view
TSQL
>=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current

sys.dm_os_memory_pools (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi-asa-pdw]

Returns a row for each object store in the instance of [!INCLUDEssNoVersion]. You can use this view to monitor cache memory use and to identify bad caching behavior

Note

To call this from [!INCLUDEssazuresynapse-md] or [!INCLUDEssPDW], use the name sys.dm_pdw_nodes_os_memory_pools. [!INCLUDEsynapse-analytics-od-unsupported-syntax]

Column name Data type Description
memory_pool_address varbinary(8) Memory address of the entry that represents the memory pool. Is not nullable.
pool_id int ID of a specific pool within a set of pools. Is not nullable.
type nvarchar(60) Type of object pool. Is not nullable. For more information, see sys.dm_os_memory_clerks (Transact-SQL).
name nvarchar(256) System-assigned name of this memory object. Is not nullable.
max_free_entries_count bigint Maximum number of free entries that a pool can have. Is not nullable.
free_entries_count bigint Number of free entries currently in the pool. Is not nullable.
removed_in_all_rounds_count bigint Number of entries removed from the pool since the instance of [!INCLUDEssNoVersion] was started. Is not nullable.
pdw_node_id int Applies to: [!INCLUDEssazuresynapse-md], [!INCLUDEssPDW]

The identifier for the node that this distribution is on.

Permissions

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.

Permissions for SQL Server 2022 and later

Requires VIEW SERVER PERFORMANCE STATE permission on the server.

Remarks

[!INCLUDEssNoVersion] components sometimes use a common pool framework to cache homogeneous, stateless types of data. The pool framework is simpler than cache framework. All entries in the pools are considered equal. Internally, pools are memory clerks and can be used in places where memory clerks are used.

See also

SQL Server Operating System Related Dynamic Management Views (Transact-SQL)