SQL Server memory allocation on linux

sakuraime 2,346 Reputation points
2020-10-28T18:12:35.357+00:00

Are there any different on how linux allcation memory to SQL Server , from that in Windows memory allocation to SQL Server ? Any links to talk about ?

SQL Server | Other
0 comments No comments
{count} votes

Accepted answer
  1. tibor_karaszi@hotmail.com 4,316 Reputation points
    2020-10-29T13:34:07.18+00:00

    Note that the big difference is that Linux doesn't have the feedback mechanism to the processes when it is memory constrained. On Windows, we know that SQL Server can reduce its memory usage thanks to this. This is briefly mentioned here: https://bornsql.ca/blog/proposed-sql-server-defaults-max-server-memory/


3 additional answers

Sort by: Most helpful
  1. Erland Sommarskog 121.8K Reputation points MVP Volunteer Moderator
    2020-10-28T22:27:16.76+00:00

    I would not expect there to be. Microsoft has implemented SQLPAL, Physical Abstraction Layer, so most parts of the SQL Server code doesn't have to care which platform it's own. You can read more about it here: https://sqlserveronlinuxbackup.com/sql-server-linux-how/

    0 comments No comments

  2. CathyJi-MSFT 22,396 Reputation points Microsoft External Staff
    2020-10-29T07:03:13.307+00:00

    Hi @sakuraime ,

    The default setting for max server memory on Windows is 2,147,483,647 megabytes (MB) . In order to ensure there is enough free physical memory for the Linux Operating System, the SQL Server process uses only 80% of the physical RAM by default.

    Please refer to Proposed SQL Server defaults: max server memory.

    Best regards,
    Cathy


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

    0 comments No comments

  3. Shashank Singh 6,251 Reputation points
    2020-10-29T08:03:35.637+00:00

    It is bit different, Erland mentioned about SQLPAL and this is a major component in memory management of SQL Server residing on Linux machine. Read below blog it has in details explained how memory management works in SQL Server residing on linux

    sql-server-on-linux-how-introduction


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.