LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-08-2011, 12:43 AM   #1
sarathmangalassery
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Rep: Reputation: Disabled
Thumbs up Phisical Ram Limitations On 32bit Linux OS


Hi,

Can somebody please confirm, 32bit Linux os can utilize only upto 4gb phisical memory?

TIA,
Sarath.
 
Old 06-08-2011, 12:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
nope, 64gb using PAE - http://en.wikipedia.org/wiki/Physica...xtension#Linux
 
Old 06-08-2011, 01:59 AM   #3
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Not that there are many times you would want to use 32bit with 64GB.
 
Old 06-08-2011, 05:19 AM   #4
sarathmangalassery
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Chris,

The above link explains only about windows, what about linux 32bit os?

BR,
Sarath.
 
Old 06-08-2011, 05:21 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The link given to you links directly to the Linux part of that article. The first sentence from there:
Quote:
The Linux kernel includes full PAE mode support starting with version 2.3.23,[6] enabling access of up to 64 GB of memory on 32-bit machines.
 
Old 06-08-2011, 05:28 AM   #6
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 don't think anyone has ever tested that much RAM with 32-bit, and I remember Linus T saying that they would have to be crazy to do so, and he doesn't want to support it.

Anyway, you can run more than 4GB using PAE, but PAE is a hack and you will have some overhead (performance loss), and no single app can use more than 4GB still.
 
Old 06-08-2011, 06:29 AM   #7
sarathmangalassery
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
We normally use 64bit os, but this time 32bit rhel5 has been installed on one of our db servers and this got 8gb phisical memory. In this server every 4days "out of memory"(ERROR 5 (HY000): Out of memory (Needed 33554404 bytes)) is coming and we need to restart the MySql. I think it could utilize only 4gb of physical memory and this leads to this error message. We have got other DB servers with 64bit os and there also v are running the same kind of application which fetch the data from the DB and we are not facing any issues like this.

BR,
Sarath M.
 
Old 06-08-2011, 06:36 AM   #8
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
Then PAE will NOT help. Even with PAE a single app CANNOT use more than 4GB RAM. You need to upgrade to 64-bit like the rest of the servers.
 
Old 06-08-2011, 06:44 AM   #9
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by sarathmangalassery View Post
Hi,

Can somebody please confirm, 32bit Linux os can utilize only upto 4gb phisical memory?

TIA,
Sarath.
That would be negative.
 
Old 06-08-2011, 06:45 AM   #10
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 sarathmangalassery View Post
We normally use 64bit os, but this time 32bit rhel5 has been installed on one of our db servers and this got 8gb phisical memory.
You should check whether you have a PAE kernel or non PAE kernel. If it is not PAE, you should change to PAE.

Quote:
In this server every 4days "out of memory"(ERROR 5 (HY000): Out of memory (Needed 33554404 bytes)) is coming and we need to restart the MySql.
I'm not sure whether that is hitting a limit in physical memory or virtual memory. If it is a virtual memory limit, changing to a PAE kernel would not fix that problem.

Quote:
I think it could utilize only 4gb of physical memory and this leads to this error message.
A non PAE 32 bit kernel can only use up to 3 and a fraction GiB of physical ram. It cannot use 4GiB. The exact value of "3 and a fraction" depends on the BIOS (not on Linux). It is often less than 3.5GiB.

A PAE 32 bit kernel can use up to 64GiB of physical memory. Depending on how the system is used, it is likely to run out of kernel virtual memory well before using 64GiB physical. So that 64GiB is not normally considered a practical limit. 16GiB is closer to the correct practical limit. It should be fine for the 8GiB you have.

User virtual memory per process is limited to 3GiB in 32 bit Linux, regardless of whether you have PAE. That is usually not an issue. Usually many processes are running, so that 8GiB physical would be used without any one process using more than 3GiB virtual. But your use of MySql might be unusual. If you already have a PAE kernel and get the error you described, it is likely the 3GiB user space virtual limit.
 
1 members found this post helpful.
Old 06-08-2011, 08:42 AM   #11
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by H_TeXMeX_H View Post
Then PAE will NOT help. Even with PAE a single app CANNOT use more than 4GB RAM. You need to upgrade to 64-bit like the rest of the servers.
This.

PAE will allow the operating system to use more than 4GB of RAM, but no single process can exceed that limit.
 
Old 06-08-2011, 03:02 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
"every 4days "out of memory"(ERROR 5 (HY000): Out of memory (Needed 33554404 bytes)"

This may be more of a memory leak issue than a limit of ram. More ram may just delay your crash.

Last edited by jefro; 06-10-2011 at 03:03 PM.
 
Old 06-10-2011, 06:43 AM   #13
sarathmangalassery
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
From the valuable inputs from you let me conclude that 32bit Linux OS with PAE kernel can use more than 4gb ram. But all the process will b restricted with a limit of 4GB physical ram.

Can i know is that applicable for a single process? Say multiple MySQL or Java process is running, each MySQL or Java process can use up to 4GB of physical memory or the whole MySQL or Java can utilize only upto 4GB physical memory?

TIA,
Sarath M.
 
Old 06-10-2011, 07:04 AM   #14
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
Quote:
Originally Posted by SL00b View Post
PAE will allow the operating system to use more than 4GB of RAM, but no single process can exceed that limit.
This is the best way to put it. Each process can only use 4GB RAM.

However, jefro may be right in that there may be a memory leak if RAM usage constantly increases, even after closing programs. Check this using top or other program.

Last edited by H_TeXMeX_H; 06-10-2011 at 07:05 AM.
 
Old 06-10-2011, 07:18 AM   #15
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 sarathmangalassery View Post
Say multiple MySQL or Java process is running, each MySQL or Java process can use up to 4GB of physical memory or the whole MySQL or Java can utilize only upto 4GB physical memory?
Each process is limited to 3GB virtual ram, not 4GB physical ram.

If you had two MySQL processes, each using their maximum of 3GB virtual ram, some of their virtual ram would not be resident physical ram and some of their virtual ram would be shared between them, so their combined physical ram use would be significantly less than 6GB, but might be more than 4GB, maybe even more than 5GB.

Last edited by johnsfine; 06-10-2011 at 07:20 AM.
 
  


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
4GB ram in fedora 14 32bit jokar.mohsen Linux - Hardware 7 05-10-2011 05:17 PM
Getting full usage of ram on 32bit linux browser Linux - General 5 11-21-2010 09:07 PM
Using 4GB ram on a 32bit Slackware 13.1 Squall90 Slackware 6 09-18-2010 11:06 AM
Fedora 13 32bit and then Linux Mint 32bit and then Ubuntu 10.04 32bit ciao303 Linux - Newbie 3 08-09-2010 11:03 PM
Debian etch 32bit with 4+GB RAM izghitu Linux - Hardware 4 04-11-2008 10:30 AM

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

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