Lock Pages in Memory

The Lock Pages in Memory policy came up in our internal discussions. I wanted to chat about it a bit more and I couldn’t think of a better person than Rick Lowe. After our recent SQL Trail, we sit down to discuss this policy option.

Episode Quotes

​“Virtualization is its own ball of wax, and you need to know more about what’s going on in the system and that lock pages in memory won’t save you if you’re having issues there.”

“The downside is that ultimately you could commit all the memory in SQL Server and you could lock up the machine, or in the case of a virtual environment, multiple machines.”

“It would be really interesting to see some new blog posts on this stuff, from the people who are just elbows-deep in the internals, because there have also been a couple of Windows releases, just a couple, since then.”

Listen to Learn

00:38     Intro to the guest & topic
03:22     Explanation of lock pages in memory
05:50     Should we use lock pages in memory as a default?
08:11     Physical versus virtual memory
11:14     The things that would determine whether we want to turn it on
14:54     Measure twice, cut once
18:00     Closing Thoughts

Meet the Hosts

carlos chacon headshot

Carlos Chacon

With more than 10 years of working with SQL Server, Carlos helps businesses ensure their SQL Server environments meet their users’ expectations. He can provide insights on performance, migrations, and disaster recovery. He is also active in the SQL Server community and regularly speaks at user group meetings and conferences. He helps support the free database monitoring tool found at databasehealth.com and provides training through SQL Trail events.

eugene meidinger headshot

Eugene Meidinger

Eugene works as an independent BI consultant and Pluralsight author, specializing in Power BI and the Azure Data Platform. He has been working with data for over 8 years and speaks regularly at user groups and conferences. He also helps run the GroupBy online conference.

kevin feasel headshot

Kevin Feasel

Kevin is a Microsoft Data Platform MVP and proprietor of Catallaxy Services, LLC, where he specializes in T-SQL development, machine learning, and pulling rabbits out of hats on demand. He is the lead contributor to Curated SQL, president of the Triangle Area SQL Server Users Group, and author of the books PolyBase Revealed (Apress, 2020) and Finding Ghosts in Your Data: Anomaly Detection Techniques with Examples in Python (Apress, 2022). A resident of Durham, North Carolina, he can be found cycling the trails along the triangle whenever the weather's nice enough.

Want to Submit Some Feedback?

Did we miss something or not quite get it right? Want to be a guest or suggest a guest/topic for the podcast?

Let's find what you're looking for