[ltp] Kernel only see 3 of 4GB

Bernard Tremblay linux-thinkpad@linux-thinkpad.org
Mon, 4 Jun 2007 19:43:54 +0200 (CEST)


--0-772542922-1180979034=:96965
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

On Mon, 4 Jun 2007 15:36:52 +0200, "Florian Reitmeir"
<florian@reitmeir.org> said:
> On Mon, 04 Jun 2007, r8scq7b02@sneakemail.com wrote:
> 
> > On Monday 04 June 2007 04:56, Michael Gaber wrote:
> > > yup, you'll have to use a 64 bit system because a 32bit can only address
> > > 4GB
> > 
> > Are you sure about that?
> > 
> > linux-image-2.6-686-bigmem:
> > This package depends on the latest binary image for Linux kernel 2.6 on 
> > Pentium Pro/Celeron/Pentium II/Pentium III/Pentium 4 with 4-64G RAM machines. 
> 
> not all chipsets support more than 3gb, even on amd64 architectures.
> and on 32 bit there is a limit of 3gb _per_ process.
> 
> -- 
> Florian Reitmeir
> -- 
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
   
  Hi,
   
  Both are true.  2**32 = 4GB  thus you cannot address more than that.  But there is ways to make the 32 bits machine to use more than 32 bits in a virtual address... It's call AWE (Advanced Windowing Extensions).  The idea is to add a 3rd level to the calculation from virtual to real address.  You add 4 more bits  to the addressing and you then have 2**4=16 windows of 4GB each that you can address wich give your exactly 64GB.  This is a similar process that we used before in 16 bits addressing to go over the 64KB limitation.  This AWE feature is available at high price from M$ if you can afford to buy a datacenter licence.  This feature, as one would expect, is free with Linux big memory kernel.  Linux hackers please correct me if I'm making wrong assumptions about that AWE feature.
   
  We have some Compaq servers here at my work place with 4GB that report to have 3,6GB...  I don't know if it's because of PCI mapping but it makes some sense to me. But why would this PCI mapping not calculated as being part of the physical memory ? 
   
  Anybody would have a clearer explanation about how all this works and what is the BIOS role in this ? 
   
  Regards,
         BT


             
---------------------------------
 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
--0-772542922-1180979034=:96965
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<div>On Mon, 4 Jun 2007 15:36:52 +0200, "Florian Reitmeir"<BR>&lt;<A href="mailto:florian@reitmeir.org">florian@reitmeir.org</A>&gt; said:<BR>&gt; On Mon, 04 Jun 2007, <A href="mailto:r8scq7b02@sneakemail.com">r8scq7b02@sneakemail.com</A> wrote:<BR>&gt; <BR>&gt; &gt; On Monday 04 June 2007 04:56, Michael Gaber wrote:<BR>&gt; &gt; &gt; yup, you'll have to use a 64 bit system because a 32bit can only address<BR>&gt; &gt; &gt; 4GB<BR>&gt; &gt; <BR>&gt; &gt; Are you sure about that?<BR>&gt; &gt; <BR>&gt; &gt; linux-image-2.6-686-bigmem:<BR>&gt; &gt; This package depends on the latest binary image for Linux kernel 2.6 on <BR>&gt; &gt; Pentium Pro/Celeron/Pentium II/Pentium III/Pentium 4 with 4-64G RAM machines. <BR>&gt; <BR>&gt; not all chipsets support more than 3gb, even on amd64 architectures.<BR>&gt; and on 32 bit there is a limit of 3gb _per_ process.<BR>&gt; <BR>&gt; -- <BR>&gt; Florian Reitmeir<BR>&gt; -- <BR>&gt; The linux-thinkpad mailing list home page is at:<BR>&gt;
 <A href="http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad">http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad</A></div>  <div>&nbsp;</div>  <div>Hi,</div>  <div>&nbsp;</div>  <div>Both are true.&nbsp; 2**32 =&nbsp;4GB&nbsp; thus you cannot&nbsp;address more than that.&nbsp; But there is ways to&nbsp;make the 32 bits machine to use more than 32 bits&nbsp;in a virtual address... It's call AWE (Advanced Windowing Extensions).&nbsp;&nbsp;The idea is to add a 3rd level to the calculation from&nbsp;virtual to real address.&nbsp; You add 4 more bits&nbsp;&nbsp;to the addressing and you then have 2**4=16 windows of 4GB each that you can address wich give your exactly 64GB.&nbsp; This is a similar process that we used before in 16 bits addressing to go&nbsp;over the 64KB limitation.&nbsp; This AWE feature is available at high price from M$ if you can afford to&nbsp;buy a datacenter licence.&nbsp; This feature, as&nbsp;one would expect,&nbsp;is free
 with Linux big memory kernel.&nbsp; Linux hackers please correct me if I'm making wrong assumptions about that AWE feature.</div>  <div>&nbsp;</div>  <div>We have some Compaq servers here at my work place with 4GB that report to have 3,6GB...&nbsp; I don't know if it's because of PCI mapping but it makes some sense to me. But why would this PCI mapping not calculated as being part of the physical memory ?&nbsp;</div>  <div>&nbsp;</div>  <div>Anybody would have a clearer explanation about how all this works and what is the BIOS role in this ?&nbsp;</div>  <div>&nbsp;</div>  <div>Regards,</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BT<BR></div><p>&#32;


      

      <hr size="1"> 
Ne gardez plus qu'une seule adresse mail ! <a href="http://www.trueswitch.com/yahoo-fr/">Copiez vos mails</a> vers Yahoo! Mail 
--0-772542922-1180979034=:96965--