Skip to content

Windows Memory Rights

EdVassie edited this page Apr 2, 2021 · 2 revisions
Previous Windows Memory Switches SQL Server Memory Startup Switches Next

This section describes the Windows Rights that affect SQL Server memory management.

This section covers the following items:

A number of other Windows Rights exist that are not relevant for SQL Server memory management.

Lock Pages in Memory Right

The Lock Pages in Memory Right will let Windows honour an API call from a program to reserve a range of memory for its exclusive use.

If Windows runs short of memory, it uses a multi-stage process similar to that shown below to reclaim memory from programs. If enough memory is reclaimed at the end of a given stage, the following stages are not processed:

  1. Non-essential program and Windows memory is moved to the Windows Page File

  2. Programs with locked memory are asked to release it, but each program can decide if it will honour the request

  3. Locked memory is reclaimed by Windows, regardless of if a program wishes to release it

  4. In-use program memory is reclaimed by Windows

  5. Private Work Set memory is reclaimed by Windows

  6. Snap Dump and Reboot process starts

When memory is reclaimed by Windows, this can severely slow down or even stop the affected program from processing. It is therefore important to avoid over-committing memory, so that the performance of SQL Server is not put at risk by memory stortages.

Top


Recommendations for Windows Memory Rights

The recommended settings for the Windows Memory Rights described on this page are given below:

  • The Lock Pages in Memory Right should always be granted to the account running the SQL Server database engine. SQL FineBuild will always grant this right.

Copyright FineBuild Team © 2013 - 2021. License and Acknowledgements

Previous Windows Memory Switches Top SQL Server Memory Startup Switches Next

Key SQL FineBuild Links:

SQL FineBuild supports:

  • All SQL Server versions from SQL 2019 through to SQL 2005
  • Clustered, Non-Clustered and Core implementations of server operating systems
  • Availability and Distributed Availability Groups
  • 64-bit and (where relevant) 32-bit versions of Windows

The following Windows versions are supported:

  • Windows 2022
  • Windows 11
  • Windows 2019
  • Windows 2016
  • Windows 10
  • Windows 2012 R2
  • Windows 8.1
  • Windows 2012
  • Windows 8
  • Windows 2008 R2
  • Windows 7
  • Windows 2008
  • Windows Vista
  • Windows 2003
  • Windows XP
Clone this wiki locally