<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Vipul Shah's SQL Blogs : /3GB /PAE and AWE</title><link>http://blogs.technet.com/vipulshah/archive/tags/_2F00_3GB+_2F00_PAE+and+AWE/default.aspx</link><description>Tags: /3GB /PAE and AWE</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>/3GB /PAE and AWE on 32-bit Systems</title><link>http://blogs.technet.com/vipulshah/archive/2007/05/10/3gb-pae-and-awe-on-32-bit-systems.aspx</link><pubDate>Thu, 10 May 2007 19:11:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:924724</guid><dc:creator>vishah</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/vipulshah/comments/924724.aspx</comments><wfw:commentRss>http://blogs.technet.com/vipulshah/commentrss.aspx?PostID=924724</wfw:commentRss><description>&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;I was reading a blog post from Chad Boyd - &lt;A href="http://blogs.msdn.com/chadboyd/archive/2007/03/24/pae-and-3gb-and-awe-oh-my.aspx"&gt;http://blogs.msdn.com/chadboyd/archive/2007/03/24/pae-and-3gb-and-awe-oh-my.aspx&lt;/A&gt;.&amp;nbsp;&amp;nbsp; He has very detailed and excellent information about /3GB PAE and AWE.&amp;nbsp;&amp;nbsp;&amp;nbsp; It made my understanding more clear.&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is the summarized version:&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 style="MARGIN: 24pt 0in 0pt"&gt;&lt;SPAN style="LINE-HEIGHT: 115%; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT size=5&gt;&lt;FONT face=Cambria&gt;For 32-bit OS&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/H1&gt;
&lt;H2 style="MARGIN: 10pt 0in 0pt"&gt;&lt;FONT face=Cambria size=4&gt;Memory Addressability Limitation:&lt;/FONT&gt;&lt;/H2&gt;
&lt;P style="MARGIN-TOP: 0in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;By default, the 32bit OS can only 'see' and use up to 4gb of memory, as it uses a 32bit range to map physical memory space (with a valid range of 0x00000000 up to 0xFFFFFFFF, or 0 thru 4,294,967,295 in decimal format, which correlates to a maximum high range pointer of 4GB.&amp;nbsp;&amp;nbsp;Yes, this means that on a default 32bit system no matter how much physical memory you install on the system, the system would only ever use at most 4 GB of it (kind of a waste if you have a 32bit server with 64GB of memory)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Cambria size=4&gt;Virtual Address Space (VAS) Limitation:&lt;/FONT&gt;&lt;/H2&gt;
&lt;P style="MARGIN-TOP: 0in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;When a process is created on a 32-bit Windows System, OS allocates Virtual Address Space (VAS) to that process.&amp;nbsp;&amp;nbsp; All user-mode process (such as SQL Server) has its own VAS.&amp;nbsp; Each process in 32-bit system has 4 GB of VAS.&amp;nbsp; VAS is further divided into two equal sections: 1st&amp;nbsp;section which is available to the&amp;nbsp;process and 2nd section&amp;nbsp;which is reserved for kernel/system.&amp;nbsp; So, out of 4 GB VAS, 2 GB is available to the process and 2 GB is reserved for kernel/system.&amp;nbsp; So, though a VAS is 4GB in size, a user-mode process by default only has access to up to 2GB of that space - yes,&amp;nbsp;this means that by default, a 32bit user-mode process can only ever access 2GB of memory at the most using standard API's.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Cambria size=4&gt;/3GB can address the&amp;nbsp;VAS limitations:&amp;nbsp; &lt;/FONT&gt;&lt;/H2&gt;
&lt;P style="MARGIN-TOP: 0in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;With /3GB you can change the VAS allocation from&amp;nbsp;2 GB for process to 3 GB availability for the process and reserving only 1 GB for kernel/system.&amp;nbsp;&amp;nbsp; Limitation of /3GB is that it can only be used for&amp;nbsp;the system&amp;nbsp;having memory upto 16 GB.&amp;nbsp;&amp;nbsp; This is because&amp;nbsp;the limited 1GB of kernel space - that is&amp;nbsp;very limited space&amp;nbsp;to be able to store internal memory mapping structures.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Cambria size=4&gt;/PAE can address the memory addressability limitation of 32-bit system:&lt;/FONT&gt;&lt;/H2&gt;
&lt;P style="MARGIN-TOP: 0in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;With /PAE you can change the addressability of 32-bit system from 2^32 to 2^36 (from 4 GB to 64 GB).&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 10pt 0in 0pt"&gt;&lt;FONT face=Cambria size=4&gt;AWE:&lt;/FONT&gt;&lt;/H2&gt;
&lt;P style="MARGIN-TOP: 0in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;AWE can take the advantage of increased addressability by PAE.&amp;nbsp;&amp;nbsp; With AWE you can increase memory availability to SQL Server from 4 GB (for 32-bit) to up to 64 GB.&amp;nbsp;&amp;nbsp; So, although AWE allows you to access/use memory outside&amp;nbsp;the processes' VAS, the process is still confined by the VAS in terms of being able to read/write data into memory&amp;nbsp;mapped by AWE mechanisms.&amp;nbsp; Only Data Cache can utilize AWE, no other memory consumer within SQL such as Hash cache, Sorting, plan cache, connection cache, etc. can use memory available through AWE.&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2 style="MARGIN: 10pt 0in 0pt"&gt;&lt;FONT face=Cambria size=4&gt;Simple Formula:&lt;/FONT&gt;&lt;/H2&gt;
&lt;P style="MARGIN-TOP: 0in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;If your system has &amp;lt; 4 GB - use only /3GB&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-TOP: 0in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;If your system has &amp;gt; 4 GB and &amp;lt; 16 GB - use /3GB + /PAE + AWE&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-TOP: 0in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"&gt;If your system&amp;nbsp;has &amp;gt; 16 GB - use /PAE + AWE&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=924724" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/vipulshah/archive/tags/_2F00_3GB+_2F00_PAE+and+AWE/default.aspx">/3GB /PAE and AWE</category></item></channel></rss>