Max Server memory - which buffers and caches is covered

agepeder 271 Reputation points
2023-07-05T22:01:41.65+00:00

Hi,

I found that my knowledge of what is controlled by the max server memory is rather dated. I was under the impression that it was only the buffer pool that the max server memory defined the size of.

But I learn now that, that is not the case.

I have unsuccessfully tried of find a complete overview of what is actually controlled by the max server memory setting. The buffer pool , the plan cache, query work buffer etc. ?

Do we have other memory areas that is not under the control of the max server memory setting ?

Which means do we have to manipulate the default memory allocations of the SQL server besides the max server memory setting ?

sp_configure 'min memory per query (KB)', 1

various trace flags

Other ?

Thank you for your assistance :)

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,351 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 45,701 Reputation points
    2023-07-06T05:35:25.6966667+00:00

    It depend on SQL Server version, what all is controlled by max memory setting, see e.g.

    https://learn.microsoft.com/en-us/sql/relational-databases/memory-management-architecture-guide?view=sql-server-ver16

    => Changes to memory management starting with SQL Server 2012 (11.x)

    0 comments No comments

  2. ZoeHui-MSFT 39,671 Reputation points
    2023-07-06T06:23:31.19+00:00

    Hi @agepeder,

    Have you read this Server memory configuration options which contains several articles about the memory for SQL Server?

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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.