LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-09-2008, 10:55 PM   #1
depam
Member
 
Registered: Sep 2005
Posts: 861

Rep: Reputation: 30
How to break the memory limitation on 32bit CentOS Distro?


Hi,

I have trixbox installed on a Dell Tower Server. It has 8 GB of memory and my question is if it is possible to break the 3.6 GB Memory limitation. From the google search, it says that I should be using a PAE kernel but I don't know where to start. Does it mean I have to download a new kernel or can I just recompile the kernel and enable the PAE? Is there a reference you could for me to do that? Thanks.
 
Old 08-09-2008, 11:28 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If you can switch to the 64bit version of Centos you will be much happier. Depending on application using the PAE kernel can cause a considerable performance hit. You can download a PAE version of your kernel (the easy way) or you can compile a new kernel(the hard way).

Edit: The PAE kernel is available from Centos via yum.

Last edited by lazlow; 08-09-2008 at 11:30 PM.
 
Old 08-09-2008, 11:59 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
lazlow is right - don't even mess with PAE. If you really need a larger address space, just make life easy on yourself and buy a 64-bit CPU. They're pretty much commodities anyway (if you can afford 8GB of RAM, you should certainly be able to afford a 64-bit CPU and mobo).

PS:
Have you ever actually used up all your RAM and starting hitting swap space on your Dell box? If so, how? What were you doing that took up all 4GB?

PPS:
You're aware that apps are still limited to 32-bit address space unless you explicitly code them for PAE. And there are very *very* few such apps in existence ... even on Windows.
 
Old 08-10-2008, 04:15 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I agree that it is really worth it if you could switch to 64-bit especially with so much RAM. If you enable 32-bit emulation and things are setup right you will have no problems and you can even run 32-bit apps.
 
Old 08-10-2008, 06:55 AM   #5
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
Is there a way to get away with it by getting a 64 bit kernel and recompiling it? So that I keep my setting without installing a new 64=bit distro and restore the whole configs? Thanks.
 
Old 08-10-2008, 07:37 AM   #6
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 depam View Post
Is there a way to get away with it by getting a 64 bit kernel and recompiling it?
No.

Quote:
So that I keep my setting without installing a new 64=bit distro and restore the whole configs?
To switch to 64 bit, you need to install a 64 bit distribution. You can switch to PAE by changing just the kernel. For your situation, that is the big advantage of PAE.

I'm not convinced that PAE would have any detectable performance loss vs. a non PAE 32-bit kernel. 64-bit might perform better or worse than 32-bit depending on your applications.

Some distributions have a PAE 32-bit kernel that supports 4GB user space and over 16GB physical ram. That requires PAE plus a rather ugly kludge, that is likely to have both performance and compatibility issues. If that is the only PAE kernel your distribution offers, it might not be a good idea to use it.

An ordinary PAE kernel increases physical memory support to a max of 16GB from the 3 point something that is possible without PAE. It doesn't change the limit on user space (each process still only gets 3GB). You could build that PAE kernel if it isn't the one your distribution offers.

Depending on the applications you run, you might get much better results by switching to 64-bit. Maybe enough to be worth the extra effort. If you tell us what applications you run a lot, someone might have an estimate of whether 64-bit would make a big difference. But for most applications, either we don't know or it doesn't make a difference.

Last edited by johnsfine; 08-10-2008 at 07:47 AM.
 
Old 08-10-2008, 09:11 AM   #7
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
Hi John,

We have installed Trixbox Distribution and this comes with CentOS distro minus the X. This is a dedicated server for VOIP and we would want a2billing enabled. Do you have idea whether it will be beneficial to switch to 64 or just use PAE instead? Thanks.
 
Old 08-10-2008, 10:02 AM   #8
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
When I tried to install the kernel-PAE, i get the following:

[trixbox1.localdomain src]# yum install kernel-PAE
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
trixbox 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
trixboxaddons 100% |=========================| 951 B 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Parsing package install arguments
Nothing to do
[trixbox1.localdomain src]#


Also used, the rpm but it's not installing

Can you please help? Thanks.
 
Old 08-10-2008, 01:05 PM   #9
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
CentOS installs PAE by default if you have 4GB of RAM or up. Have you verified what you actually have (uname -a)?
 
Old 08-10-2008, 01:20 PM   #10
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
Problem solved. I have set my grub to use the PAE kernel. My whole 8GB memory can now be detected. Thanks.
 
Old 08-13-2009, 08:16 AM   #11
chandan_raka
Member
 
Registered: Apr 2005
Location: BC
Distribution: Centos
Posts: 34

Rep: Reputation: 16
32 bit user space to 64 bit kernel space

Hi,

Can anybody could help in reading the higher memory address of a 64 bit kernel.

I am having 32 bit user land on top of a 64 bit kernel. The RAM is 8G, but, facing problems in reading the higher address from the user space. HOwever, same could be easily done from a kernel space module.

Thanks in anticipation
 
  


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
32bit and 64bit linux file size limitation Swakoo Linux - General 2 09-05-2007 07:21 AM
memory/file handle limitation? George2 Programming 8 09-26-2006 01:50 PM
Limitation of processor and memory usage BatGeorgeone Linux - General 3 08-16-2005 11:36 PM
Memory management limitation jack1234 Linux - Newbie 2 03-11-2004 01:35 PM
Memory limitation Magnus Linux - General 2 01-18-2001 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:01 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