linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Dmesg: Use a PAE enabled kernel
@ 2003-03-03 16:38 Andrew Walrond
  0 siblings, 0 replies; 11+ messages in thread
From: Andrew Walrond @ 2003-03-03 16:38 UTC (permalink / raw)
  To: linux-kernel


The dump looks like this:

BIOS-provided physical RAM map:
   BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
   BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
   BIOS-e820: 0000000000100000 - 00000000bfffa000 (usable)
   BIOS-e820: 00000000bfffa000 - 00000000bffff000 (ACPI data)
   BIOS-e820: 00000000bffff000 - 00000000c0000000 (ACPI NVS)
   BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
   BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
   BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
   BIOS-e820: 0000000100000000 - 0000000140000000 (usable)
Warning only 4GB will be used.
Use a PAE enabled kernel.
3200MB HIGHMEM available.
896MB LOWMEM available.

So you are saying that not all the 4Gb of ram will get mapped/used
(specifically, everything not marked 'usable') ?

Can you quantify the performance degredation of a PAE enabled kernel?

Andrew Walrond




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Dmesg: Use a PAE enabled kernel
  2003-03-03 16:24   ` Andrew Walrond
                       ` (2 preceding siblings ...)
  2003-03-03 17:46     ` Alan Cox
@ 2003-03-04  3:22     ` H. Peter Anvin
  3 siblings, 0 replies; 11+ messages in thread
From: H. Peter Anvin @ 2003-03-04  3:22 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <3E6381B9.4090708@walrond.org>
By author:    Andrew Walrond <andrew@walrond.org>
In newsgroup: linux.dev.kernel
>
> The dump looks like this:
> 
> BIOS-provided physical RAM map:
>   BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
>   BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
>   BIOS-e820: 0000000000100000 - 00000000bfffa000 (usable)
>   BIOS-e820: 00000000bfffa000 - 00000000bffff000 (ACPI data)
>   BIOS-e820: 00000000bffff000 - 00000000c0000000 (ACPI NVS)
>   BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
>   BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
>   BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
>   BIOS-e820: 0000000100000000 - 0000000140000000 (usable)  
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	       This memory lives above the 4GB mark.

> Warning only 4GB will be used.
> Use a PAE enabled kernel.
> 3200MB HIGHMEM available.
> 896MB LOWMEM available.
> 
> So you are saying that not all the 4Gb of ram will get mapped/used 
> (specifically, everything not marked 'usable') ?

Basically, your motherboard only allows 3 GB below the 4 GB boundary;
the rest ends up above.

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
Architectures needed: cris ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Dmesg: Use a PAE enabled kernel
  2003-03-03 16:49       ` Andrew Walrond
@ 2003-03-03 19:22         ` Alan Cox
  0 siblings, 0 replies; 11+ messages in thread
From: Alan Cox @ 2003-03-03 19:22 UTC (permalink / raw)
  To: Andrew Walrond; +Cc: Martin J. Bligh, Linux Kernel Mailing List

On Mon, 2003-03-03 at 16:49, Andrew Walrond wrote:
> That accounts for the missing Gb then. I think the warning needs to be 
> more like "WARNING WARNING (WILL ROBINSON)! 1GB of very expensive ram 
> won't be used unless you enable PAE!!!"

That would require we could detect rambus memory 8)

	printk("Warning %dGb of %sram won't be used.\n", lost>>10,
rambus()?"expensive ");

But yes more seriously it would be a lot more useful and more
meaningful to tell people how much ram is not being used

> Just how slow is PAE then ?

It varies, it can cost you 5-10%. The bigger hit is that most 
I/O devices can't reach that memory directly from PCI space
so you get bounce buffer costs and more paging/vm management
overhead.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Dmesg: Use a PAE enabled kernel
  2003-03-03 16:24   ` Andrew Walrond
  2003-03-03 16:33     ` Andrew Walrond
  2003-03-03 17:42     ` Martin J. Bligh
@ 2003-03-03 17:46     ` Alan Cox
  2003-03-03 16:49       ` Andrew Walrond
  2003-03-04  3:22     ` H. Peter Anvin
  3 siblings, 1 reply; 11+ messages in thread
From: Alan Cox @ 2003-03-03 17:46 UTC (permalink / raw)
  To: Andrew Walrond; +Cc: Martin J. Bligh, Linux Kernel Mailing List

On Mon, 2003-03-03 at 16:24, Andrew Walrond wrote:
>   BIOS-e820: 0000000100000000 - 0000000140000000 (usable)

This chunk wont get used



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Dmesg: Use a PAE enabled kernel
  2003-03-03 16:24   ` Andrew Walrond
  2003-03-03 16:33     ` Andrew Walrond
@ 2003-03-03 17:42     ` Martin J. Bligh
  2003-03-03 17:46     ` Alan Cox
  2003-03-04  3:22     ` H. Peter Anvin
  3 siblings, 0 replies; 11+ messages in thread
From: Martin J. Bligh @ 2003-03-03 17:42 UTC (permalink / raw)
  To: Andrew Walrond; +Cc: linux-kernel

> BIOS-provided physical RAM map:
>   BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
>   BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
>   BIOS-e820: 0000000000100000 - 00000000bfffa000 (usable)
>   BIOS-e820: 00000000bfffa000 - 00000000bffff000 (ACPI data)
>   BIOS-e820: 00000000bffff000 - 00000000c0000000 (ACPI NVS)
>   BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
>   BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
>   BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
>   BIOS-e820: 0000000100000000 - 0000000140000000 (usable)
> Warning only 4GB will be used.
> Use a PAE enabled kernel.
> 3200MB HIGHMEM available.
> 896MB LOWMEM available.
> 
> So you are saying that not all the 4Gb of ram will get mapped/used (specifically, everything not marked 'usable') ?
> 
> Can you quantify the performance degredation of a PAE enabled kernel?

Depends on your workload ... there's only one way to be sure, benchmark it.
If you're doing heavy page replacment / setup / teardown, it'll be more
expensive. As Alan has pointed out, you're loosing a quarter of your RAM ;-)

M.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Dmesg: Use a PAE enabled kernel
  2003-03-03 15:23 Andrew Walrond
  2003-03-03 16:08 ` Martin J. Bligh
@ 2003-03-03 16:54 ` Alan Cox
  1 sibling, 0 replies; 11+ messages in thread
From: Alan Cox @ 2003-03-03 16:54 UTC (permalink / raw)
  To: Andrew Walrond; +Cc: Linux Kernel Mailing List

On Mon, 2003-03-03 at 15:23, Andrew Walrond wrote:
> During bootup I see
> 
>    Warning only 4GB will be used.
>    Use a PAE enabled kernel.
> 
> But I only have 4Gb installed, so is this message wrong?

Yes. Its confusing 4Gb of memory with 4Gb of address space.
4Gb of RAM comes out as
[RAM][ISA][RAM....][PCI] {4GbLimit} [RAM]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Dmesg: Use a PAE enabled kernel
  2003-03-03 17:46     ` Alan Cox
@ 2003-03-03 16:49       ` Andrew Walrond
  2003-03-03 19:22         ` Alan Cox
  0 siblings, 1 reply; 11+ messages in thread
From: Andrew Walrond @ 2003-03-03 16:49 UTC (permalink / raw)
  To: Alan Cox; +Cc: Martin J. Bligh, Linux Kernel Mailing List

Alan Cox wrote:
> On Mon, 2003-03-03 at 16:24, Andrew Walrond wrote:
> 
>>  BIOS-e820: 0000000100000000 - 0000000140000000 (usable)
> 
> 
> This chunk wont get used
> 
> 

Ouch

That accounts for the missing Gb then. I think the warning needs to be 
more like "WARNING WARNING (WILL ROBINSON)! 1GB of very expensive ram 
won't be used unless you enable PAE!!!"

Just how slow is PAE then ?

Andrew



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Dmesg: Use a PAE enabled kernel
  2003-03-03 16:24   ` Andrew Walrond
@ 2003-03-03 16:33     ` Andrew Walrond
  2003-03-03 17:42     ` Martin J. Bligh
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Andrew Walrond @ 2003-03-03 16:33 UTC (permalink / raw)
  To: Andrew Walrond; +Cc: Martin J. Bligh, linux-kernel

Hmmm

free suggests I only have about 3Gb...

hal3 root # free -m
         total       used       free     shared    buffers     cached
Mem:     3029       1843       1186          0          0       1696

I assume this means the hole is bigger than 256Mb? :(


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Dmesg: Use a PAE enabled kernel
  2003-03-03 16:08 ` Martin J. Bligh
@ 2003-03-03 16:24   ` Andrew Walrond
  2003-03-03 16:33     ` Andrew Walrond
                       ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Andrew Walrond @ 2003-03-03 16:24 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel

The dump looks like this:

BIOS-provided physical RAM map:
  BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
  BIOS-e820: 0000000000100000 - 00000000bfffa000 (usable)
  BIOS-e820: 00000000bfffa000 - 00000000bffff000 (ACPI data)
  BIOS-e820: 00000000bffff000 - 00000000c0000000 (ACPI NVS)
  BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
  BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
  BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
  BIOS-e820: 0000000100000000 - 0000000140000000 (usable)
Warning only 4GB will be used.
Use a PAE enabled kernel.
3200MB HIGHMEM available.
896MB LOWMEM available.

So you are saying that not all the 4Gb of ram will get mapped/used 
(specifically, everything not marked 'usable') ?

Can you quantify the performance degredation of a PAE enabled kernel?

Andrew Walrond



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Dmesg: Use a PAE enabled kernel
  2003-03-03 15:23 Andrew Walrond
@ 2003-03-03 16:08 ` Martin J. Bligh
  2003-03-03 16:24   ` Andrew Walrond
  2003-03-03 16:54 ` Alan Cox
  1 sibling, 1 reply; 11+ messages in thread
From: Martin J. Bligh @ 2003-03-03 16:08 UTC (permalink / raw)
  To: Andrew Walrond, linux-kernel

> During bootup I see
> 
>    Warning only 4GB will be used.
>    Use a PAE enabled kernel.
> 
> But I only have 4Gb installed, so is this message wrong?

Publish the dump of the e820 map you get at the start of boot.
You'll probably find that the 4Gb of RAM is spread over a range of
physical addresses > 4Gb in size (for a start, there's a PCI window
from 3.75 to 4 Gb). If there's no other bigger holes, probably it's
faster if you just let it waste that 256Mb.

M.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Dmesg: Use a PAE enabled kernel
@ 2003-03-03 15:23 Andrew Walrond
  2003-03-03 16:08 ` Martin J. Bligh
  2003-03-03 16:54 ` Alan Cox
  0 siblings, 2 replies; 11+ messages in thread
From: Andrew Walrond @ 2003-03-03 15:23 UTC (permalink / raw)
  To: linux-kernel

During bootup I see

   Warning only 4GB will be used.
   Use a PAE enabled kernel.

But I only have 4Gb installed, so is this message wrong?

Andrew Walrond


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-03-04  3:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-03 16:38 Dmesg: Use a PAE enabled kernel Andrew Walrond
  -- strict thread matches above, loose matches on Subject: below --
2003-03-03 15:23 Andrew Walrond
2003-03-03 16:08 ` Martin J. Bligh
2003-03-03 16:24   ` Andrew Walrond
2003-03-03 16:33     ` Andrew Walrond
2003-03-03 17:42     ` Martin J. Bligh
2003-03-03 17:46     ` Alan Cox
2003-03-03 16:49       ` Andrew Walrond
2003-03-03 19:22         ` Alan Cox
2003-03-04  3:22     ` H. Peter Anvin
2003-03-03 16:54 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).