LinuxQuestions.org
Register a domain and help support LQ
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 01-19-2008, 02:34 PM   #1
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Rep: Reputation: 30
Question Only 2GB our of 4GB RAM detected


I have just installed a fresh version of Ubuntu 7.10 and I checked in the system monitor and it said that I was using ~225 MB out of 2GB. The thing is that my computer has 4GB of RAM. I checked to make sure that my motherboard was detecting it right because when I built the system I had a similar problem with vista and it ended up that my mother was having trouble seeing it. This time the motherboard detects all 4 GB so that isn't my problem.

Not sure if it matters but my RAM is 2x2GB not 1x4GB.
kernel: 2.6.22-14-generic
 
Old 01-19-2008, 03:21 PM   #2
pakus
LQ Newbie
 
Registered: Jan 2008
Distribution: KUbuntu
Posts: 2

Rep: Reputation: 0
Hiya,

The problem is you kernel has not been compiled to support 4GB.

You must to recompile your kernel configuring CONFIG_HIGHMEM option.

See this article
 
Old 01-19-2008, 04:56 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,488

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Not likely; if that were the case, he wouldn't see 2 Gig either.
Check the BIOS messages, then dmesg for memory size detected. Might be something as simple as a seating problem.
 
Old 01-19-2008, 07:27 PM   #4
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If the BIOS shows 4096 GB of RAM and Linux only shows 2048 MB of memory, the kernel is compiled with high mem support and 4 GB memory support is off. You will have to recompile the kernel with 4 GB memory support.

A 32-bit OS will use only 3.2 GB of memory while the rest is for addressing even though a 32-bit OS can handle 4 GB memory with out any trouble. It is stupid software magic named PAE not letting you to use all 4 GB of memory. I suggest use a 64-bit kernel version if you want to use all 4 GB of memory.
 
Old 01-19-2008, 08:17 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
I will second Electro's suggestion of using a 64 bit version of Linux for any system with more than 2GB of ram. The recent 64bit version have very few (essentially none)of the limitations (compatibility) that the older versions did.
 
Old 01-19-2008, 09:23 PM   #6
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
As I understand it, your BIOS has memory mapping enabled. This is what allows a 64 bit system - as well as BIOS - to see 4GB or more. It also implies that 32 bit systems won't be able to access more than 2GB since anything over 2GB is mapped outside 32 bit memory space. The solution, as suggested by others, is to run 64 bit. Even 32 bit with PAE should work but why bother when you can have it so easy?

Last edited by jay73; 01-19-2008 at 09:24 PM.
 
Old 01-19-2008, 11:15 PM   #7
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Original Poster
Rep: Reputation: 30
Wow. Thanks for the many quick responses. I forgot about the 64bit 32 bit issue. However I don't feel like recompiling my kernel or reinstalling again. Maybe when Hardy comes out I will switch to 64 bit.
 
  


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
Linux on 2GB (or 4GB) external USB Flash Drive (Stick) [Bootable / Expandable] phi DamnSmallLinux 3 04-17-2007 02:27 AM
RH ES install - 2Gb ok, 4Gb not ok RedHatCat Red Hat 4 06-13-2005 11:14 AM
What if you had 2GB RAM and 4GB HD? AC97Conquerer General 21 03-28-2005 08:21 PM
4GB RAM not showing eddie0uk Linux - Hardware 5 03-12-2005 08:08 AM
4GB hard disk is 2GB LinuxRam Linux - Newbie 7 08-25-2004 02:02 AM


All times are GMT -5. The time now is 10:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration