Rather than using dynamic memory for sql server you can specify max server memory. This was sql server will not take all the available memory.