Lock pages in memory now available for 64 bit Standard Edition of SQL Server
2014-08-19 11:17
846 查看
在2005,2008,2008 R2 64 位标准版启用Lock pages需要启动Trace Flag
T845 。原文来自: http://blogs.msdn.com/b/suhde/archive/2009/05/20/lock-pages-in-memory-now-available-for-standard-edition-of-sql-server.aspx
Great news!!!
Due to over-whelming customer demand for the "Lock pages in memory" support for the
Standard Edition of SQL Server 2005 and 2008, Microsoft has released
Cumulative Updates that will help SQL Server 64 bit Standard Edition to "lock pages".
This feature was already available on the Enterprise and Developer Edition. Enabling "Lock pages in memory" enables the SQL Server to use the AWE APIs, thereby avoiding potential performance issues due to trimming
of the working set.
"Lock pages in memory" comes as a trace flag that can be enabled on the following cumulative updates:
CU2 for SQL Server 2008 SP1 => http://support.microsoft.com/kb/970315/en-us
CU4 for SQL Server 2005 SP3 => http://support.microsoft.com/kb/970279/en-us How to enable "Lock pages in Memory" at the Windows level:
On the Start menu, click
Run. In the Open box, type gpedit.msc. The
Group Policy dialog box opens.
On the Group Policy console, expand
Computer Configuration, and then expand Windows Settings.
Expand Security Settings, and then expand
Local Policies.
[align=justify]Select the User Rights Assignment folder. The policies will be displayed in the details pane.[/align]
In the pane, double-click
Lock pages in memory.
In the Local Security Policy Setting dialog box, click
Add.
In the Select Users or Groups dialog box, add the account that runs the
SQL Server Service.
Restart the machine
for these changes to take effect.
If you are running an
Enterprise or Developer Edition of SQL Server 2005 or 2008, please stop here. The rest of the steps are for the
Standard Edition Only.
Ensure that the build of SQL Server 2008 is Cumulative Update 2 on Service Pack 1. Preferably, run the
"select @@version" command against the SQL Server Instance and verify that the build is
10.00.2714.00. In case of SQL Server 2005, please verify that the build is
9.00.4226.
Now set the Trace Flag 845 as a
startup trace flag. This can be done by adding
-T845 to the startup parameters from the SQL Server Configuration Manager. Please refer to the screenshot below:
Restart the
SQL Server Service.
Verify that the following message is written in the SQL Server ErrorLog file at startup:
Using locked pages for buffer pool
Note:
Enabling Locked Pages may have a negative performance impact on your system performance. Please consider all potential effects before you use this option.
Enabling this trace flag on the Enterprise Edition or the Developer Edition has no effect.
Additional Readings:
How to configure SQL Server to use more than 2 GB of physical memory
Enabling Memory Support for Over 4 GB of Physical Memory
How to reduce paging of buffer pool memory in the 64-bit version of SQL Server
SQL Server Working Set Trim Problems? - Consider...
Support for Locked Pages on SQL Server 2005 Standard Edition 64-bit systems and on SQL Server 2008 Standard Edition 64-bit systems
Have a very good day!!!
T845 。原文来自: http://blogs.msdn.com/b/suhde/archive/2009/05/20/lock-pages-in-memory-now-available-for-standard-edition-of-sql-server.aspx
Great news!!!
Due to over-whelming customer demand for the "Lock pages in memory" support for the
Standard Edition of SQL Server 2005 and 2008, Microsoft has released
Cumulative Updates that will help SQL Server 64 bit Standard Edition to "lock pages".
This feature was already available on the Enterprise and Developer Edition. Enabling "Lock pages in memory" enables the SQL Server to use the AWE APIs, thereby avoiding potential performance issues due to trimming
of the working set.
"Lock pages in memory" comes as a trace flag that can be enabled on the following cumulative updates:
CU2 for SQL Server 2008 SP1 => http://support.microsoft.com/kb/970315/en-us
CU4 for SQL Server 2005 SP3 => http://support.microsoft.com/kb/970279/en-us How to enable "Lock pages in Memory" at the Windows level:
On the Start menu, click
Run. In the Open box, type gpedit.msc. The
Group Policy dialog box opens.
On the Group Policy console, expand
Computer Configuration, and then expand Windows Settings.
Expand Security Settings, and then expand
Local Policies.
[align=justify]Select the User Rights Assignment folder. The policies will be displayed in the details pane.[/align]
In the pane, double-click
Lock pages in memory.
In the Local Security Policy Setting dialog box, click
Add.
In the Select Users or Groups dialog box, add the account that runs the
SQL Server Service.
Restart the machine
for these changes to take effect.
If you are running an
Enterprise or Developer Edition of SQL Server 2005 or 2008, please stop here. The rest of the steps are for the
Standard Edition Only.
Ensure that the build of SQL Server 2008 is Cumulative Update 2 on Service Pack 1. Preferably, run the
"select @@version" command against the SQL Server Instance and verify that the build is
10.00.2714.00. In case of SQL Server 2005, please verify that the build is
9.00.4226.
Now set the Trace Flag 845 as a
startup trace flag. This can be done by adding
-T845 to the startup parameters from the SQL Server Configuration Manager. Please refer to the screenshot below:
Restart the
SQL Server Service.
Verify that the following message is written in the SQL Server ErrorLog file at startup:
Using locked pages for buffer pool
Note:
Enabling Locked Pages may have a negative performance impact on your system performance. Please consider all potential effects before you use this option.
Enabling this trace flag on the Enterprise Edition or the Developer Edition has no effect.
Additional Readings:
How to configure SQL Server to use more than 2 GB of physical memory
Enabling Memory Support for Over 4 GB of Physical Memory
How to reduce paging of buffer pool memory in the 64-bit version of SQL Server
SQL Server Working Set Trim Problems? - Consider...
Support for Locked Pages on SQL Server 2005 Standard Edition 64-bit systems and on SQL Server 2008 Standard Edition 64-bit systems
Have a very good day!!!
相关文章推荐
- sql express 2008 - Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instan
- How to Increase the Memory Limit for 32-bit Applications in Windows 64-bit OS
- 【转】Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for shared memory file:
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- Using INSTEAD OF triggers in SQL Server for DML operations
- Using INSTEAD OF triggers in SQL Server for DML operations
- How to setup linked servers for SQL Server and Oracle 64 bit client
- Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for shared memory file: /tmp/hsperfdata_hadoop/44512
- Problems with System.OutOfMemoryException At System.String.GetStringForStringBuilder in 32-Bit Managed Solutions
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for shared memory file...
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- Database cannot be started in this edition of SQL Server" error when restoring a Microsoft Dynamics CRM database
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance
- Server(Admin) start is failing in WLST as outofmemory error permgen space for weblogic 12c
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- SQL Server In-Memory OLTP Internals for SQL Server 2016
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.