1

I’ve got one server with two SQL instances. The server has 128 GB RAM.

  • Instance 1 has peak load from 08:00–10:00

  • Instance 2 has peak load from 14:00–17:00

Currently:

  • Instance 1 has max server memory = 70 GB

  • Instance 2 has max server memory = 50 GB

  • The rest of the day, both are nearly idle.

Would it make sense to dynamically shift memory? give more to one instance during its peak while reducing it on the other? Any downsides to doing that with a scheduled script?

Rohit Gupta
2,1248 gold badges20 silver badges25 bronze badges
asked Aug 7 at 15:04
1
  • Do you see any lazy writes for either instance during their peak times? Are you experiencing any performance issues during those peak times? Commented Aug 7 at 17:21

2 Answers 2

3

It would make better sense to add more memory to the server and raise the max server memory setting for both instances, in my opinion. Memory isn't expensive.

A downside to doing that with a scheduled script is that adjusting Max Server Memory will clear your plan cache which can be a performance hit as it will have to compile query plans all over again.

answered Aug 7 at 17:35
1

The optimal way is to use a single instance on the server and give it all the memory. Then it will manage memory across all the databases automatically.

answered Aug 9 at 13:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.