|
Lock Pages in Memory for x64 |
|
I always have difficulty remembering exactly where this KB article was, what KB number, has Microsoft renumbered it and of course for many of these options you don’t carry them out every day – so this is locking pages in memory – essential for x64 Enterprise and Developer, but not possible in Standard edition for some reason.
This is the cut and paste from the various msdn/KB plus some additional comments. Links at end.
For x32 you must use AWE to access extended memory ( I’m not including the sole use of 3GB switch here as in certain circumstances that can cause more problems than its worth – I’d usually advise using AWE with 4GB of ram rather than the 3GB switch – yes AWE does work with 4GB ram. You cannot enable AWE without Lock Pages in Memory set.
For x64 you only have Lock Pages in Memory, and this only works for Enterprise and Developer, if you’re using Standard Edition there is no option. |
|
· In x32 world you can’t enable AWE without lock pages, however in x64 it is unset, this means dynamic memory doesn’t really work and you can soon find yourself struggling with a very unresponsive SQL Server. · The setting of the Large System Cache can be a factor and whilst this is limited in x32 it has no such limitations in x64. · My personal advice would be to leave at least 4Gb of memory outside the SQL Server allocation on a X64 box, there can be seriously hefty memory allocations outside SQL Server especially on Servers with lots of cores, and make sure you turn off Hyperthreading.
|
|
Local Computer Policy Settings
|
|
1. On the Start menu, click Run. In the Open box, type gpedit.msc. a. The Group Policy dialog box opens. 2. On the Group Policy console, expand Computer Configuration, and then expand Windows Settings. 3. Expand Security Settings, and then expand Local Policies. 4. Select the User Rights Assignment folder. a. The policies will be displayed in the details pane. 5. In the pane, double-click Lock pages in memory. 6. In the Local Security Policy Setting dialog box, click Add. 7. In the Select Users or Groups dialog box, add an account with privileges to run sqlservr.exe. |

SQL error log entry when locked pages enabled. ( x64 )

|
http://support.microsoft.com/kb/918483
|