memoryclerks vs memoryobject vs memory pools

sakuraime 2,341 Reputation points
2020-08-25T03:27:20.543+00:00

Hi all , just want to know the difference of memory clerks and memory objects and what's are their relationship ?
20017-memory.jpg

19958-memorypool.jpg

another question is why virtual_memory_committed_kb is much less than pages_kb??

pages_kb is the size that memory clerks memory are in PHYSICAL MEMORY ?

I would also ask questions on memory pools sys.dm_os_memory_pools, pool_id 0 is the internal pool ? pool_id 1 is default pool ? is it referring resource default /internal pool ?. how it's mapped with memory clerk ?

SQL Server Other
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. m 4,276 Reputation points
    2020-08-31T02:03:56.937+00:00

    Hi @sakuraime ,

    so sum(pages_in_bytes)=pages_kb ??

    No.
    Try code as next:

    use Dbname
    go

    SELECT SUM (pages_in_bytes) FROM sys.dm_os_memory_objects

    select sum(pages_kb) from sys.dm_os_memory_clerks

    If the reply is helped, please do “Accept Answer”.
    BR,
    Mia

    0 comments No comments

  2. m 4,276 Reputation points
    2020-09-01T06:34:14.353+00:00

    Hi @sakuraime ,

    Is the reply helpful?

    If the reply is helped, please do “Accept Answer”.
    BR,
    Mia

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.