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/
SQL Server memory allocation on linux
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 ?
3 additional answers
Sort by: Most helpful
-
Erland Sommarskog 109.8K Reputation points MVP
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/
-
CathyJi-MSFT 21,786 Reputation points Microsoft Vendor
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.
-
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