Re: [RFC][PATCH] Re: 4Gb ram not showing up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lennart Sorensen wrote:
> On Wed, Jun 06, 2007 at 02:12:22PM +0200, Bodo Eggert wrote:
> > Change the description of CONFIG_*HIGHMEM* to reflect "lost" memory due to 
> > PCI space and the existence of the NX flag.
> > 
> > Signed-Off-By: Bodo Eggert <[email protected]>
> > ---
> > I made this quick patch using the information from LKML as I remembered 
> > it. Please verify.
> > 
> > @@ -510,8 +510,15 @@ config NOHIGHMEM
> >  	  by the kernel to permanently map as much physical memory as
> >  	  possible.
> >  
> > -	  If the machine has between 1 and 4 Gigabytes physical RAM, then
> > +
> > +	  If the machine has between 1 and 3.5 Gigabytes physical RAM, then
> >  	  answer "4GB" here.
> > +	  

Might be better to say 3 Gigabytes instead of 3.5.  I booted a 4gb kernel on
a machine with 4gb at work and only saw 3gb of memory.

Also, I've noticed that there's ~128mb of memory lost if you select 1gb when
you have 1gb of memory installed.

> >  	  If more than 4 Gigabytes is used then answer "64GB" here. This
> >  	  selection turns Intel PAE (Physical Address Extension) mode on.
> > @@ -520,6 +527,10 @@ config NOHIGHMEM
> >  	  processors (Pentium Pro and better). NOTE: If you say "64GB" here,
> >  	  then the kernel will not boot on CPUs that don't support PAE!
> >  
> > +	  An additional benefit of the 64GB-Mode is the availability of the
> > +	  no-execute-pageflag, which can be used to prevent some attacks from
> > +	  injecting malicious code into applications.
> > +
> >  	  The actual amount of total physical memory will either be
> >  	  auto detected or can be forced by using a kernel command line option
> >  	  such as "mem=256M". (Try "man bootparam" or see the documentation of
> > @@ -532,14 +543,14 @@ config HIGHMEM4G
> >  	bool "4GB"
> >  	depends on !X86_NUMAQ
> >  	help
> > -	  Select this if you have a 32-bit processor and between 1 and 4
> > +	  Select this if you have a 32-bit processor and between 1 and 3.5
> >  	  gigabytes of physical RAM.
> >  
> >  config HIGHMEM64G
> > -	bool "64GB"
> > +	bool "64GB (enables no-execute memory protection if available)"
> >  	depends on X86_CMPXCHG64
> >  	help
> > -	  Select this if you have a 32-bit processor and more than 4
> > +	  Select this if you have a 32-bit processor and more than 3.5
> >  	  gigabytes of physical RAM.

Same here

> Seems like an improvement to me.  To fully explain how it could be 3 or
> 3.5 or 3.25 or who knows how many GB you can actually use without PAE
> would probably require writing a small novel.  Certainly talking about
> address space instead of amounts of physical memory is more correct.

It's probably worth it to just say 3gb.

I've looked at the cpuinfo for several machines, all of which (pIII and
better, not all physically support even 2gb of memory) show pae in the
flags, so is there really a reason not to just specify 64gb always?

The oldest machine I have access to is a pII 333mhz machine, cpuinfo also
lists pae in the cpu flags.

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals
 Got Gas???
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux