Granting the Lock Pages in Memory user right to the SQL Server service?

  • I am researching this memory setting and trying to gather as much info as possible. I want to be sure that my sql min/max memory settings are adjusted appropriately for this change. Also, how will this play out with my large paging file that has a dedicated physical disk?

    My total used memory on the (SQL only) box is at 99% and SQL uses 92%.

    SQL BOX:

    Win Server 2008 2008 R2 Enterprise

    Memory - 144GB

    Pagefile - 300gb

    Pagefile local disk - 418gb

    SQL Server 2008 Enterprise

    SQL min server memory 0 MB

    SQL max server memory 143872 MB

    Use AWE = no

    Lock pages in memory

    This security setting determines which accounts can use a process to keep data in physical memory, which prevents the system from paging the data to virtual memory on disk. Exercising this privilege could significantly affect system performance by decreasing the amount of available random access memory (RAM).

    http://support.microsoft.com/KB/918483/EN-US

    Want to be sure that I am getting the most out of my hardware - Would appreciate any advice...

  • For all things hardware regarding SQL Server, you can't do much better than Glen Berry. Check out his min/max memory settings post: http://www.sqlservercentral.com/blogs/glennberry/archive/2009/10/29/suggested-max-memory-settings-for-sql-server-2005_2F00_2008.aspx

    Don't set the max SQL Server can use more than the server has otherwise a runaway query/process could choke the box out by starving the OS of memory which would possibly not let you remote in and fix the issue (while I'm at it, make sure you enable DAC connections on your servers as safeguard).

    Another great resource is Brent Ozar, he has tons of performance tuning tips/articles you should read through: http://www.brentozar.com/sql/sql-server-performance-tuning/[/url]

    =============================================================
    /* Backups are worthless, Restores are priceless */

    Get your learn on at SQL University!
    Follow me on Twitter | Connect on LinkedIn
    My blog: http://sqlchicken.com
    My book: Pro Server 2008 Policy-Based Management

  • Sqlchicken (6/17/2011)


    For all things hardware regarding SQL Server, you can't do much better than Glen Berry. Check out his min/max memory settings post: http://www.sqlservercentral.com/blogs/glennberry/archive/2009/10/29/suggested-max-memory-settings-for-sql-server-2005_2F00_2008.aspx

    Don't set the max SQL Server can use more than the server has otherwise a runaway query/process could choke the box out by starving the OS of memory which would possibly not let you remote in and fix the issue (while I'm at it, make sure you enable DAC connections on your servers as safeguard).

    Another great resource is Brent Ozar, he has tons of performance tuning tips/articles you should read through: http://www.brentozar.com/sql/sql-server-performance-tuning/[/url]

    I have 2GB allocated for the OS and the rest to SQL. I will read up through your links. Thanks for the info...

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply