Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 2.41 KB

enable-the-lock-pages-in-memory-option-windows.md

File metadata and controls

40 lines (32 loc) · 2.41 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Enable the Lock pages in memory option (Windows)
Learn how to turn on the Lock pages in memory option. See how it can boost performance by keeping data in physical memory instead of paging it to disk.
rwestMSFT
randolphwest
06/12/2024
sql
configuration
conceptual
Lock pages in memory option

Enable the Lock pages in memory option (Windows)

[!INCLUDE SQL Server]

This Windows policy determines which accounts can use a process to keep data in physical memory, preventing the system from paging the data to virtual memory on disk.

Note

Locking pages in memory might boost performance when paging memory to disk is expected. For more information, see Lock pages in memory (LPIM).

Use the Windows Group Policy tool (gpedit.msc) to enable this policy for the account used by [!INCLUDE ssNoVersion]. You must be a system administrator to change this policy.

Enable the Lock pages in memory option

  1. On the Start menu, select Run. In the Open box, type gpedit.msc. The Group Policy dialog box opens.
  2. On the Local Group Group Policy console, expand Computer Configuration.
  3. Expand Windows Settings.
  4. Expand Security Settings.
  5. Expand Local Policies.
  6. Select the User Rights Assignment folder. The policies will be displayed in the details pane.
  7. In the pane, scroll to and double-click the Lock pages in memory policy.
  8. In the Local Security Policy Setting dialog box, select Add User or Group.... Add the SQL Server Service account. To determine the service account for the instance of [!INCLUDE ssNoVersion], refer to the SQL Server Configuration Manager or query the service_account from sys.dm_server_services. For more information, see sys.dm_server_services.
  9. Select OK.
  10. Restart the instance for this setting to take effect.

Related content