Maximum server memory when AWE enabled

  • I have enabled AWE and assigned 5120MB of memory on the Enterprised server last week, the total Physical RAM is 8GB. Everything is fine after enabled AWE, but the memory utilization kept growing and reached 5270MB today. Why could it exceed 5120MB?

  • Did you assign the min and max to 5120?

    Check sp_configure.

  • I used the following script to assign max to 5120, but I could figure out why it can use more than (5120*1024)=5242880KB, it reachs 5256856KB and the number is still growing.

    sp_configure 'show advanced options', 1RECONFIGUREGOsp_configure 'awe enabled', 1RECONFIGUREGOsp_configure 'max server memory', 5120RECONFIGUREGO

     

     

  • Just curiously, How do you know the memory usage is increasing ......?

  • I queried sysperfinfo; Also get Netiq report on SQL server service memory utilization in one hour interval.

  • "awe enabled is an advanced option. If you are using the sp_configure system stored procedure to change the setting, you can change awe enabled only when show advanced options is set to 1. You must restart the instance of SQL Server 2000 for changes to take effect."

    Did you restart the server?

    Can you post result of "execute sp_configure" here?

     

  • affinity mask-2.147E+09214748364700
    allow updates0100
    awe enabled0111
    c2 audit mode0100
    cost threshold for parallelism03276755
    Cross DB Ownership Chaining0100
    cursor threshold-12147483647-1-1
    default full-text language0214748364710331033
    default language0999900
    fill factor (%)010000
    index create memory (KB)704214748364700
    lightweight pooling0100
    locks5000214748364700
    max degree of parallelism03200
    max server memory (MB)4214748364751205120
    max text repl size (B)021474836476553665536
    max worker threads3232767255255
    media retention036500
    min memory per query (KB)512214748364710241024
    min server memory (MB)0214748364700
    nested triggers0111
    network packet size (B)5126553640964096
    open objects0214748364700
    priority boost0100
    query governor cost limit0214748364700
    query wait (s)-12147483647-1-1
    recovery interval (min)03276700
    remote access0111
    remote login timeout (s)021474836472020
    remote proc trans0100
    remote query timeout (s)02147483647600600
    scan for startup procs0100
    set working set size0100
    show advanced options0111
    two digit year cutoff1753999920492049
    user connections03276700
    user options03276700
  • You might want to look at the article below.

    http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B555064

  • Unfortunately BOL is not very clear: I would set min and max memory both to the same value to limit the amount of memory that SQL Server uses when AWE is enabled. With an 8 GB server, we have min and max set to 6144 so that it can only use 6 GB of memory. Once memory is paged to SQL Server, it is not released back to the OS. However, SQL Server will map / unmap it (just watch the AWE performance counters) and use it.

    Apparently, using a low min value like 0 and the upper max value does not work with AWE. It will likely use all the memory save 128 Mb for the OS. BOL says something to that affect.

    If SQL Server is the only application on the machine, you can probably go higher. We've had it as high as 7.5 GB for SQL Server, leaving 500 Mb for the OS and everything else. If you have hot swapping, you may need to leave more memory for the OS and hot swapping. If you have another instance on the machine, you may need to lower it. Though, the AWE memory can only be used for pages and not some other system objects that SQL Server uses, so too many instances on the same machine may be an issue.

  • Actually, that is normal behavior for SQL server.

    http://support.microsoft.com/default.aspx?scid=kb;en-us;321363

    I'd just lower the Max vaule just a bit to have other extended store procedures have space to use that memory.

  • Note also that any Windows operating System , there is Virtual memory put on Harddisk that is the file PAGEFILE.SYS (i think its size is added to your real Memory )

     


    Alamir Mohamed
    Alamir_mohamed@yahoo.com

Viewing 11 posts - 1 through 10 (of 10 total)

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