question

Haque avatar image
Haque asked

Min and Max memory setting

Does max and min memory setting affect the sql server performance? My OS has 128 GB of Ram and the SQL Server instance memory setting for min is set to 100 GB and Max is set to 118 GB. It takes a lot of time for me to bulk insert about 10 million records compare to bulk inserting same amount of records in another server. I’m not sure what affect the min and max has on performance. Does it matter how you set the min and max memory? Thanks.
sql-server-2008memory
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Grant Fritchey avatar image
Grant Fritchey answered
It does matter how you set the min and max memory. From a performance perspective, the normal "problem" setting is when people don't have a max set at all. You already do, so this setting is unlikely to be your problem. What makes you think that memory is the slow point of the data load process anyway? Have you already eliminated disks and CPU and, more importantly, code? If you really think you are literally running out of memory, you can check this by using the ring buffers. I outline how to do it in [an article here.][1] [1]: https://www.simple-talk.com/sql/database-administration/why-is-that-sql-server-instance-under-stress/
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Haque avatar image Haque commented ·
nice article, thanks
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.