LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-29-2009, 04:22 AM   #1
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
PAE support in linux-2.6.29.*


I have a laptop with 4GB of RAM.
I use slackware 12.2.
I built a recent kernel (2.6.29.1) which I currently use.
Only 3GB of RAM are displayed when I
# free
I read somewhere after googling that you could have
linux see up to 64GB even on 32-bit if you set up
CONFIG_X86_PAE while building the kernel

I did a grep of PAE in my current config
and grep 'CONFIG_X86_'
None of these showed any PAE string

Does anybody know where this setting is located?
Perhaps they changed the name recently?
 
Old 04-29-2009, 04:55 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,138

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
If you are seeing 3 Gig, you have the appropriate option selected. I don't have access to 32-bit system, but try a grep for highmem.
The missing memory is probably a motherboard limitation.
 
Old 04-29-2009, 07:33 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by syg00 View Post
If you are seeing 3 Gig, you have the appropriate option selected.
I don't think that is correct, but I'm not certain. I just did some more google searches on
CONFIG_HIGHMEM64G
and
CONFIG_X86_PAE

But I still can't figure out which config options enable which actual features.

I do understand the underlying features. Without using PAE, you only have access to 4GB of physical address space which gives you access to less than 4GB (typically 3.25GB) of ram.

The only 32 bit system I have handy with 4GB of ram is an old Centos system. Its config has CONFIG_HIGHMEM64G set and doesn't mention CONFIG_X86_PAE at all.

There is some feature that I think may be part of CONFIG_HIGHMEM64G that makes the kernel use a separate 4GB virtual address from the process 4GB virtual address space. (To support more than 16GB physical, the kernel needs a larger virtual address space). I hope I don't have that enabled on that old Centos system, but I'm not sure. I hope you can have PAE without that (I know on other old Centos systems I had PAE without splitting the address space).

Quote:
The missing memory is probably a motherboard limitation.
That is possible and worth checking. See my post at
http://www.linuxquestions.org/questi...40#post3411940

If that table of data from the BIOS includes the extra chunk outside 4GB of address space then the motherboard and BIOS are OK for a full 4GB of ram and your problem is lack of PAE in the kernel. If that table doesn't include the extra chunk, then the problem is in the motherboard or BIOS.

Last edited by johnsfine; 04-30-2009 at 06:18 AM.
 
Old 04-30-2009, 06:25 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by vonbiber View Post
I built a recent kernel (2.6.29.1) which I currently use.
I was either reading carelessly, or confusing this thread with a similar one.

I didn't notice until just now the important detail that you already have all the files and knowledge needed to build a new kernel.

So that means the easiest path is try it and see.

From your post at
http://www.linuxquestions.org/questi...96#post3525496
I see
Quote:
# CONFIG_HIGHMEM64G is not set
and I see your BIOS and motherboard are not the problem.

I'm pretty sure CONFIG_HIGHMEM64G will add PAE support. Try it and see whether it just adds PAE support or also does anything you don't want.
 
Old 04-30-2009, 11:37 AM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by johnsfine View Post
I'm pretty sure CONFIG_HIGHMEM64G will add PAE support. Try it and see whether it just adds PAE support or also does anything you don't want.
I haven't tried 2.6.29, but in 2.6.28, if you use make menuconfig or xconfig, rather than just editing the config file, then, yes, that enables PAE.
 
Old 05-02-2009, 03:47 AM   #6
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
figured it out

yesterday I built linux-2.6.29.2
and this time in
# make menuconfig
instead of checking 'up to 4GB' of RAM I checked '64GB'
After building and rebooting I got the right total
amount of RAM displayed

Excerpts from my config

# Linux kernel version: 2.6.29.2
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
# CONFIG_X86_64 is not set
CONFIG_X86=y
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig"
#
CONFIG_MCORE2=y
# CONFIG_GENERIC_CPU is not set
CONFIG_X86_GENERIC=y
CONFIG_X86_CPU=y
...
#
CONFIG_X86_CMPXCHG64=y
...
# CONFIG_NOHIGHMEM is not set
# CONFIG_HIGHMEM4G is not set
CONFIG_HIGHMEM64G=y
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_HIGHMEM=y
CONFIG_X86_PAE=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
...
CONFIG_PHYS_ADDR_T_64BIT=y
 
Old 05-02-2009, 12:14 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Glad to see it worked!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PAE enable pankaj.bhamare Linux - Newbie 7 04-15-2009 05:14 AM
KERNEL PANIC: Cannot execute a PAE-enabled kernel on a PAE-less CPU! ovais370 Linux - Laptop and Netbook 7 10-13-2007 05:49 PM
New update Kernel-bigsmp-Kernel with PAE Support raylhm SUSE / openSUSE 2 07-15-2007 03:42 PM
pae shadowsa Linux - Hardware 11 04-17-2007 01:11 AM
ACPI: s3/pae do not like each other.. s0me0ne Linux - Software 0 05-23-2004 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration