What should be the Ideal SQL Server memory allocation?

Babawale Dawodu 110 Reputation points
2023-10-04T13:18:37.7633333+00:00

My SQL Server 2019 memory allocation is set to Min memory of 0 (which I find normal) and Max memory of 2.14TB with 32gb RAM.

2.14 TB seems to be the default allocation, meaning nothing had been preserved for the OS. Should there be cause for alarm or should the max value be reduced by say 10%?

Thanks in Advance

SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Robbie Varn 351 Reputation points
    2023-10-04T15:21:19.8366667+00:00

    You should always leave some memory for the OS as you said. For a server running 32Gb of memory, I would set my MaxMem setting to around 24Gb (24,576 MB) assuming that Sql Server is the only application running on this server. This setting leaves around 8Gb for the OS which should suffice.


0 additional answers

Sort by: Most helpful

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.