Select the product you need help with
How to enable the "locked pages" feature in SQL Server 2012Article ID: 2659143 - View products that this article applies to. SUMMARYWindows-based applications can use Windows AWE (Address Windowing Extensions
(http://msdn.microsoft.com/en-us/library/aa366527(VS.85).aspx)
) APIs to allocate and to map physical memory into the process address space. Memory that is allocated by using this method is never paged out by the operating system and is locked down until the application explicitly frees it or exits. The application requires the "Lock Pages In Memory" user right (LPIM) to be granted for the application to be able to lock pages in memory. The SQL Server 64-bit version uses "locked pages" to prevent the process working set (committed memory) from being paged out or trimmed by the operating system. The use of AWE APIs for memory management in 64-bit SQL Server is also frequently referred as "locked pages." You can enable the "locked pages" feature in SQL Server versions 2005, 2008, and 2008 R2 by using a combination of Windows user right, hotfix, and trace flags. The behavior is different, depending on the edition of SQL Server in these versions. SQL Server 32-bit versions 2005, 2008, and 2008 R2 use "locked pages" when the "awe enabled" SQL Server feature is enabled. Starting with SQL Server 2012, the memory manager simplifies the usage of "locked pages" across supported editions and processor architectures. In SQL Server 2012, you can enable "locked pages" by granting the "lock pages in memory" user right for the startup account for the instance of SQL Server in Windows. This is applicable for Standard, Business Intelligence, and Enterprise editions of SQL Server 2012 running on both 32-bit and 64-bit processor architectures. MORE INFORMATIONThe following table provides the requirements to enable "locked pages" in different versions and editions of SQL Server on different platforms: Collapse this table
You do not have to use Trace Flag 845 in SQL Server 2012. You can remove this trace flag from the startup parameters after you upgrade your instance to SQL 2012. Even though the "awe enabled" feature is not available in 32-bit SQL Server 2012, you can still use the "locked pages" feature by assigning the "lock pages in memory" user right for the SQL Server startup account. When you enable "locked pages," it is very important to set an appropriate value for "max server memory" and for "min server memory" configuration options for each instance of SQL Server to avoid system-wide problems. Use the following methods to determine whether the SQL Server 2012 instance is using "locked pages":
Collapse this table
Note A bug condition could prevent these rules from providing the appropriate warnings. Please see the note: http://blogs.msdn.com/b/psssql/archive/2012/04/30/clarification-about-the-two-lpim-upgrade-rules-that-did-not-fail.aspx
(http://blogs.msdn.com/b/psssql/archive/2012/04/30/clarification-about-the-two-lpim-upgrade-rules-that-did-not-fail.aspx)
REFERENCESHow to: Enable the Lock Pages in Memory Option (Windows)
(http://msdn.microsoft.com/en-us/library/ms190730.aspx)
The "awe enabled" SQL Server feature is deprecated
(http://support.microsoft.com/kb/2644592)
Support for Locked Pages on SQL Server 2008 R2 Standard Edition x64, on SQL Server 2005 Standard Edition 64-bit systems, and on SQL Server 2008 Standard Edition 64-bit systems
(http://support.microsoft.com/kb/970070)
Fun with Locked Pages, AWE, Task Manager, and the Working Set…
(http://blogs.msdn.com/b/psssql/archive/2009/09/11/fun-with-locked-pages-awe-task-manager-and-the-working-set.aspx)
How to reduce paging of buffer pool memory in the 64-bit version of SQL Server
(http://support.microsoft.com/kb/918483)
SQL Server memory models
(http://blogs.msdn.com/b/sql_pfe_blog/archive/2009/08/05/sql-server-memory-models-part-i.aspx)
PropertiesArticle ID: 2659143 - Last Review: July 9, 2012 - Revision: 4.0
| Article Translations |


Back to the top








