Hi All
I have a few questions regarding the memory changes in SQL 2012
- I usually use the following script to check my memory clerks on my SQL Servers below 2012
--1
SELECT TOP(20) [type], [name], SUM(single_pages_kb)/1024 AS [SPA Mem, Mb] FROM sys.dm_os_memory_clerks GROUP BY [type], [name] ORDER BY SUM(single_pages_kb) DESC;
--2
SELECT SUM(multi_pages_kb)/1024 AS [MPA Mem, Mb] FROM sys.dm_os_memory_clerks
--3
SELECT SUM(single_pages_kb)/1024 AS [SPA Mem, Mb] FROM sys.dm_os_memory_clerks
I'm assuming that because there is no longer a multi_page allocator, the second query is useless?
Do I need to change the single_pages_kb column to pages_kb?
Regarding memory clerks, prior to SQL 2012 the MEMORYCLERK_SQLBUFFERPOOL clerk always showed zero, this was because single_pages_kb refers to the amount of single pages the clerk is pulling from the buffer pool, so the buffer pool won't be reading single pages from itself, hence the 0kb. Has this changed in SQL 2012?
Any help would be appreciated
Thanks