LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-06-2010, 09:29 AM   #1
Fazi
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
LFS sees only 900mb of RAM


Hi. I have a problem. My newly built LFS system sees only 900 mb of RAM, even if BIOS registers 2 GB. Probably, I've made a mistake during kernel configuration, but have no idea what mistake.

Code:
-bash-4.1# uname -r && head /proc/meminfo
2.6.35.4
MemTotal:         904368 kB
MemFree:          586468 kB
Buffers:           22852 kB
Cached:           263004 kB
SwapCached:            0 kB
Active:           139504 kB
Inactive:         148908 kB
Active(anon):       2564 kB
Inactive(anon):       80 kB
Active(file):     136940 kB
Do you have any idea where to find a reason?
 
Old 09-06-2010, 09:56 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Do you have any idea where to find a reason?
No, not without more information.

Could you post/attach the output of the dmesg command and the kernels .config file?

BTW: One thing that does come to mind: Could the memory installed be faulty? Do you have any way of checking if all is picked up correct by another linux/windows OS?

Hope this helps.
 
Old 09-06-2010, 10:10 AM   #3
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
This may be bug in the BIOS which might report incorrect memory map to Linux. But it's just a guess, to properly understand this we need output of dmesg command.
 
Old 09-06-2010, 11:55 AM   #4
Fazi
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Original Poster
Rep: Reputation: 0
It is rather not a memory faulty. Everything works fine on Microsoft systems.
Attached Files
File Type: txt config.txt (36.7 KB, 15 views)
File Type: txt dmesg.txt (24.1 KB, 13 views)

Last edited by Fazi; 09-06-2010 at 12:01 PM.
 
Old 09-06-2010, 12:37 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Have you tried setting High Memory Support to 64G?

I know you don't have that much ram, but it will enable CONFIG_X86_PAE, which could (hopefully) help.

I have 4G RAM, only 2G is detected when I run with High Memory Support 4G, it is detected when I run with the 64G setting.

Also 895MB is, to my knowledge, the LOWMEM threshold and that is all you seem to have available (Warning only 895MB will be used).

Hope this helps.
 
1 members found this post helpful.
Old 09-06-2010, 04:52 PM   #6
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
Quote:
Have you tried setting High Memory Support to 64G?

I know you don't have that much ram, but it will enable CONFIG_X86_PAE, which could (hopefully) help.
PAE extends address space from 32bit to 36bit, so it's not what is needed to increase available memory from 1G to 2G.
Quote:
I have 4G RAM, only 2G is detected when I run with High Memory Support 4G, it is detected when I run with the 64G setting.
It's most likely that some device maps its MMIO registers etc. to upper 2G. In this case using PAE allows linux to relocate these MMIO registers into upper memory area and use the remaining 2G.
Quote:
Originally Posted by dmesg
Warning only 895MB will be used.
Use a HIGHMEM enabled kernel.
Set High Memory Support to 4G in the kernel config (Processor type and features->High Memory Support in menuconfig).

Last edited by 10110111; 09-06-2010 at 04:55 PM.
 
0 members found this post helpful.
Old 09-07-2010, 07:51 AM   #7
Fazi
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by 10110111 View Post
Set High Memory Support to 4G in the kernel config (Processor type and features->High Memory Support in menuconfig).
Unfortunately, that didn't help at all.
 
Old 09-07-2010, 08:58 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Did you try both options given in the previous posts or only the High Memory Support 4G?
 
Old 09-08-2010, 07:15 AM   #9
Fazi
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Can you give a hint where this PAE option is? Because I haven't found it yet.
 
Old 09-08-2010, 08:00 AM   #10
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
Quote:
Unfortunately, that didn't help at all.
Well, this is at least very strange. Need a new dmesg output. You may have rebooted into wrong kernel version. Or, you might have failed to save the kernel config after you changed it or to run make and then installation procedure after all this.
Quote:
Can you give a hint where this PAE option is? Because I haven't found it yet.
PAE is in that same menu entry, but 64G (2^36 B - it's actually using PAE) instead of 4G (2^32 B).
 
Old 09-08-2010, 08:28 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by Fazi View Post
Can you give a hint where this PAE option is? Because I haven't found it yet.
If you set High Memory Support to 64G it (PAE) will be automatically selected. No need to do that by hand.

Hope this helps.
 
1 members found this post helpful.
Old 09-09-2010, 08:39 AM   #12
Fazi
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Now, the proper value of RAM memory available is being displayed.
Thank you guys very much for help.

I am wondering why this happened. Is there any reasonable explanation why it's necessary to compile kernel with High Memory Support 64GB even if I have only 2GB?
 
Old 09-09-2010, 08:54 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Glad to see you got it resolved

Quote:
Is there any reasonable explanation why it's necessary to compile kernel with High Memory Support 64GB even if I have only 2GB?
To be honest I'm not sure, but I think this has to do with the way the memory was mapped and possible holes in these ranges. Compare your old dmesg output with the current one, you might be able to "see" the differences.

From experience I've noticed that activating PAE (High Memory Support 64G) seems to solve these problems.

BTW: If this is solved, would you put up the SOLVED tag (above post #1 -> Thread Tools).

Last edited by druuna; 09-09-2010 at 10:10 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
Mint 32bit only sees 2.7gigs of RAM Jeff91 Linux - Hardware 7 04-29-2010 10:36 AM
Upgraded ram to 2gb and debian only sees 1 still AgentD Debian 12 01-24-2009 01:29 PM
RHEL4 sees only 1GB out of 4GB RAM saarb16 Linux - General 1 02-21-2006 10:36 AM
1gig of Ram > 900mb satinet Linux - General 13 02-13-2006 05:35 AM
howto know how much RAM does my system sees hq4ever Linux - Newbie 4 07-09-2004 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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