LinuxQuestions.org
Visit Jeremy's Blog.
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 01-10-2012, 10:26 AM   #1
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 208
Blog Entries: 1

Rep: Reputation: Disabled
Linux kernel doesn't see all my RAM


Hi. I am using Linux Slackware 13.37 with the new self-compiled kernel on Acer Aspire 5750G.

Quote:
# uname -r
3.1.6-smp
But it sees only 2.3 Gb of my 4 Gb RAM.
Quote:
# cat /proc/meminfo
MemTotal: 2426616 kB
I suppose it's because for some reason Slackware has installed 32 bit Linux. Though, my machine has 64 bit processor. Here are the specs:

http://www.techradar.com/reviews/pc-.../specification

And another thing, that I don't understand, is the cpuinfo:

Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
stepping : 7
cpu MHz : 800.000
cache size : 3072 KB
It says, that the core speed is 800 MHz. While Intel says, it's 2.4 GHz. Maybe, it has decreased the speed of kernels to save the energy?

http://ark.intel.com/search/advanced...Threading=true

What is wrong? How to fix?
 
Old 01-10-2012, 10:30 AM   #2
cpuobsessed
Member
 
Registered: Jan 2006
Distribution: Fedora, Ubuntu, Slackware
Posts: 56

Rep: Reputation: 15
You might not have PAE enabled in your kernel, recheck your kernel settings. Another thing is to reboot into the stock SMP kernel and check cpuinfo again and compare the results.
 
Old 01-10-2012, 10:41 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
If it hasn't been super long since the system was booted, you can get important ram info using the command
Code:
dmesg | grep e820
Post the output of that and someone will explain the meaning. It tells you what ram can be used by a non PAE 32-bit kernel and it tells you what additional ram can be used by PAE or 64-bit.

If significant memory is unusable even via PAE, it may give some insight into why.

Probably you need to switch either to a PAE kernel or a complete 64 bit distribution. But the command I gave above is a useful look before you leap so you know what you can expect to gain from a change of kernel.

Last edited by johnsfine; 01-10-2012 at 10:44 AM.
 
Old 01-10-2012, 12:57 PM   #4
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 208

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
You might not have PAE enabled in your kernel, recheck your kernel settings.
High memory support is set to 4 Gb.

Quote:
dmesg | grep e820
gives nothing
 
Old 01-10-2012, 01:26 PM   #5
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 usr345 View Post
High memory support is set to 4 Gb.
If I understand you correctly, that means you do not have PAE.

It is a confusing feature. 4GB used that way means 4GB of physical address space, not 4GB of ram. To use 4GB of ram, you need more than 4GB of physical address space.
 
Old 01-10-2012, 02:55 PM   #6
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 208

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
If I understand you correctly, that means you do not have PAE.
No, it seems, that I have PAE enabled. Look here:

http://www.larmeir.com/2009/07/enabl...g-up-to-64-gb/

I did exactly the same as on the screenshots, only I chose 4 Gb instead of 64 Gb, which must fit.
 
Old 01-10-2012, 03:03 PM   #7
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 208

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Adding something from my Linux machine.

Quote:
root@asus:~# dmidecode | grep Size | grep MB
Size: 4096 MB
Installed Size: 4096 MB (Single-bank Connection)
Enabled Size: 4096 MB (Single-bank Connection)
Maximum Memory Module Size: 8192 MB
Maximum Total Memory Size: 16384 MB
Quote:
root@asus:~# free -m
total used free shared buffers cached
Mem: 2369 882 1486 0 45 334
-/+ buffers/cache: 502 1866
Swap: 0 0 0
So, the RAM is there. But the kernel doesn't use it.
 
Old 01-10-2012, 03:37 PM   #8
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
Quote:
Originally Posted by usr345 View Post
Hi. I am using Linux Slackware 13.37 with the new self-compiled kernel on Acer Aspire 5750G.



But it sees only 2.3 Gb of my 4 Gb RAM.


I suppose it's because for some reason Slackware has installed 32 bit Linux. Though, my machine has 64 bit processor.
Slackware does not decide which version to install, the only one that can decide that is the user. If you have the 32 bit version this is because you downloaded and installed the 32 bit version.

Quote:
It says, that the core speed is 800 MHz. While Intel says, it's 2.4 GHz. Maybe, it has decreased the speed of kernels to save the energy?
Nope. It was the kernel that decreased the speed of the CPU to save energy and increase the lifetime of the CPU. If more computing power is needed the kernel will automatically increase the speed. There is no need to fix that. You can do that with setting the powersaving options to performance, but this will bring nothing more than the CPU waiting faster for work.

Quote:
I did exactly the same as on the screenshots, only I chose 4 Gb instead of 64 Gb, which must fit.
Again no, PAE will NOT be enabled if you choose 4 GB instead of 64 GB. To enable PAE for usage of more RAM you HAVE to choose 64 GB. This is for a simple reason: Due to technical reasons an area of the memory below 4GB (usually about 500MB to 1GB, can be more, like in your case) is not usable, because it is mapped to peripheral devices. To make this memory available to the system it is remapped to an area above 4GB. So if you choose 4GB instead of 64GB this remapped area will simply not be used.
 
1 members found this post helpful.
Old 01-10-2012, 04:40 PM   #9
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 usr345 View Post
No, it seems, that I have PAE enabled.
As TobiSGD explained above (and I explained earlier) selecting 4GB is selecting no PAE and does NOT enable support for 4GB of ram.

Quote:
Originally Posted by usr345 View Post
So, the RAM is there. But the kernel doesn't use it.
Dmidecode and most BIOS reports of ram size tell you about all the ram that is physically plugged into the motherboard. The amount of ram that can be used is smaller, maybe much smaller. The motherboard or BIOS or some BIOS menu setting might be limiting the amount of ram that can be used. Your non PAE 32 bit kernel is also limiting the amount of ram that can be used. I was hoping that dmesg command would tell you how much a PAE kernel could use. Maybe it would if given soon enough after a reboot (before the dmesg log overflows), or maybe Slackware wrecks that dmesg command in some other way I haven't seen. Switching to a PAE kernel might be the easiest way to find out how much ram your BIOS actually enables.
 
1 members found this post helpful.
Old 01-11-2012, 10:51 AM   #10
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 208

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
To enable PAE for usage of more RAM you HAVE to choose 64 GB.
I rebuilt and installed the new kernel. RAM is ok now. Thx!
 
  


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
suspend to ram, doesn't wakeup, old laptop, new kernel and slack Quercus ruber Linux - Laptop and Netbook 3 09-16-2006 06:59 AM
Linux doesn't detect all my RAM? tomas412 Linux - Hardware 5 09-23-2004 04:30 PM
Linux doesn't see new RAM LavaDevil94 Linux - Hardware 7 08-20-2004 09:11 PM
Lilo: kernel doesn't support initial ram disks. ecion Mandriva 22 07-22-2004 10:36 AM
Fatal:Kernel doesn't support initial RAM disks techstar25 Linux - Newbie 4 07-18-2003 07:56 PM

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

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