LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-06-2011, 09:05 PM   #1
litianzhi
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Rep: Reputation: 0
Rhel6 cannot support 32GB memory


Description of problem:
My computer has a memory of 32GB,I know rhel6 has a PAE enabled kernel by default. but the command "free -m" only shows total memory of 16GB ,why?
 
Old 03-06-2011, 09:07 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
because you're not running the 64-bit kernel.

http://www.redhat.com/rhel/compare/
 
Old 03-06-2011, 10:09 PM   #3
litianzhi
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Original Poster
Rep: Reputation: 0
sorry I forget to say I want to use the i686 system on 32G memory ,how can i do it ?
 
Old 03-06-2011, 11:19 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,750

Rep: Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971
Did you even bother to read that link ?. Read the indicated footnote.
 
Old 03-06-2011, 11:43 PM   #5
ashwin_cse
Member
 
Registered: Jul 2004
Distribution: arch, rhel, ubuntu, debian, gentoo
Posts: 134

Rep: Reputation: 22
Quote:
Originally Posted by litianzhi View Post
sorry I forget to say I want to use the i686 system on 32G memory ,how can i do it ?
with 32 bit (i686) processor you have no way of using full 32 GB of mem. You have to use 64 bit to utilize 32 GB. it is the limitation of 32 bit processors.
 
Old 03-07-2011, 12:27 AM   #6
litianzhi
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Original Poster
Rep: Reputation: 0
In rhel5 the Maximum memory is 16GB(http://www.redhat.com/rhel/compare/),but after install kernel-PAE the command "free -m" shows total memory of 32GB.
 
Old 03-07-2011, 12:36 AM   #7
litianzhi
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Original Poster
Rep: Reputation: 0
In http://www.redhat.com/rhel/compare/,
Quote:
[3] The "SMP" kernel supports a maximum of 16GB of main memory. Systems with more than 16GB of main memory use the "Hugemem" kernel. In certain workload scenarios it may be advantageous to use the "Hugemem" kernel on systems with more than 12GB of main memory.

[4] The x86 "Hugemem" kernel is not provided in Red Hat Enterprise Linux 5 or 6.
And I use 'uname -a' the kernel have SMP, but how to change to "Hugemem" kernel in rhel6.Thank!
 
Old 03-07-2011, 01:26 AM   #8
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
You have to compile your own kernel from source and configure the appropriate settings.
 
Old 03-07-2011, 03:12 AM   #9
litianzhi
LQ Newbie
 
Registered: Jan 2011
Posts: 10

Original Poster
Rep: Reputation: 0
On fc12(kernel:2.6.32),there is a rpm package called kernel-PAE ,when the system has no PAE ,the recognized total memory is 4GB,after install kernel-PAE the recognized total memory is 32GB.
Compile kernel on rhel6(kernel:2.6.32) cannot produce package kernel-PAE,but rhel6 has a PAE enabled kernel by default,and now the recognized total memory is 16GB,why,(I know the PAE is integrated in kernel ,or the recognized total memory will be 4GB), why it is not 32GB.
 
Old 03-07-2011, 07:33 AM   #10
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
32 bit PAE gives the kernel the physical ability to use up to 64GB of ram but ...

Linux normally divides the 4GB virtual address space into 3GB user mode and 1GB kernel mode. Linux needs to keep some data about each 4KB chunk of physical ram and it needs to keep all that data in kernel virtual memory. With too much physical memory, your 1GB of kernel virtual memory would be full and the system won't work.

There are many details I don't understand. Versions of the kernel might vary significantly in how space efficiently they store physical ram control data. They may also vary in how optimistic/pessimistic they are in expecting other demands on kernel virtual memory to vary with the amount of physical memory (more physical memory means more processes in memory at once and more files open, etc. meaning more demands on kernel virtual memory).

There is a kernel build option that reduces user virtual memory to 2GB in order to increase kernel virtual memory to 2GB, which ought to more than double the amount of physical ram the kernel can manage. That should be fairly problem free as long as none of your processes need more than 2GB virtual user mode memory.

Hugemem was an option to separate the virtual address space so the kernel has 4GB and user mode also has 4GB. That was an ugly kludge, far worse than switching to 64 bit. I don't know if it is usable by rebuilding a newer kernel or whether it is more seriously obsolete.

Last edited by johnsfine; 03-07-2011 at 08:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] RHEL6 - no PHP-MCRYPT support baysie Red Hat 19 06-09-2011 04:06 PM
RHEL6 memory support divyashree Red Hat 1 12-29-2010 06:16 AM
High Memory support paresh.nakhe Linux - General 2 09-17-2010 09:56 AM
support for 6G memory otoomet Linux - Hardware 9 01-05-2009 05:33 AM
Will a 32-bit OS be able to handle 32GB of memory on a quad dual-CPU system? theitguy Linux - Hardware 3 07-27-2006 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:57 PM.

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