Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

SQL Server Memory Usage - sys.dm_os_process_memory total not matched when summing sys.dm_os_memory_clerks. Where is the missing memory?

$
0
0
HelloI am trying to track SQL Server memory usage.Querying the sys.dm_os_process_memory gives me physical_memory_in_use_kbWhen i then query sys.dm_os_memory_clerks and sum over pages_kb I am missing about 2GB.Where is the missing memory?[code="sql"]SELECT physical_memory_in_use_kb/1024.0 [PHYMEM_IN_USE_MB] ,(select SUM(pages_kb)/1024.0 [PAGES_MB] from sys.dm_os_memory_clerks) [OS_MEM_CLERKS_MB] ,( physical_memory_in_use_kb - (select SUM(pages_kb) from sys.dm_os_memory_clerks) )/1024.0 [DIFFERENCE_MB]FROM sys.dm_os_process_memory[/code][b]Note: Lock pages in memory is enabled[/b]Thanks

Viewing all articles
Browse latest Browse all 6525

Trending Articles