Memory estimate

  • how do we estimate/calculate procedure cache usage

  • mxy (3/3/2014)


    how do we estimate/calculate procedure cache usage

    Use this query ..

    SELECT name,

    [MB used] = SUM(single_pages_kb + multi_pages_kb)/1024.0

    FROM sys.dm_os_memory_clerks

    WHERE name IN (

    N'Object Plans', -- Procedures, triggers, etc

    N'SQL Plans' -- Ad-hoc stuff

    )

    GROUP BY

    name

    ORDER BY

    [MB used] DESC;

    By the way, is the system 32 bit or 64 bit ?

    --

    SQLBuddy

  • thanks

    its 64 bit will it matter

    how to calculate Data Cache usage

  • mxy (3/3/2014)


    thanks

    its 64 bit will it matter

    how to calculate Data Cache usage

    Procedure Cache Bloating is an issue with 32 bit systems. 64 bit systems should be fine.

    select db_name(database_id) as dbName, count(*)*8/1024

    as BufferPoolMB from sys.dm_os_buffer_descriptors

    group by db_name(database_id)

    order by 2 desc

    --

    SQLBuddy

  • thanks SQL buddy can we calculate procedure cache @db level

  • Unfortunately,no..:(

    --

    SQLBuddy

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply