Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-16-2010, 04:27 AM   #1
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
Wrong amount of physical memory

I just reinstall a Debian Lenny and my computer is very slow when I am running more than 1 application.

I have checked my physical memory and here is what the "free" command gave me:

             total       used       free     shared    buffers     cached
Mem:        906284     897068       9216          0       1996     584380
-/+ buffers/cache:     310692     595592
Swap:      4882812        940    4881872
I have 4 Go of memory on this computer, so why does it show me only 900 Mb?

Could you help me?
Old 02-16-2010, 08:19 AM   #2
Registered: Aug 2009
Distribution: Debian testing
Posts: 543

Rep: Reputation: 123Reputation: 123
Does POST show you the correct amount of ram that you have? Are you on 64bits? Give us some more details.
Old 02-16-2010, 11:00 AM   #3
Registered: Feb 2004
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for your reply.

I am quite new in Debian, so I do not really know which details are important.

I do not know POST command. Which option should I add to it?
Old 02-16-2010, 11:06 AM   #4
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
jim was, I believe, referring to the BIOS POST screen that you see just after turning the computer on. The POST screen should do a quick check and/or run-through of the installed memory and give a summary.
So, when you turn on the machine (and on some machines or setups you may need to hit DELETE or some other key to force the POST screen to appear) do you see all the memory you have?

Old 02-16-2010, 11:12 AM   #5
Registered: Feb 2004
Posts: 40

Original Poster
Rep: Reputation: 15
I was thinking that you were talking about the command POST.

Of course the boot of my PC is showing that I have 4Go of memory.
Old 02-16-2010, 02:12 PM   #6
Registered: Aug 2009
Distribution: Debian testing
Posts: 543

Rep: Reputation: 123Reputation: 123
Are you on 64bits? Do you use some particular kernel loading parameter?
Give us some more specifications.
Old 02-16-2010, 02:34 PM   #7
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Most likely you have the wrong build of 32 bit kernel.

The common 32 bit kernel supports up to about 3.5GB. But there are kernel build time options that limit support to around the much smaller amount you are seeing. So that is probably the problem.

There is also a 32 bit PAE kernel that will support all the memory your BIOS lets Linux use.

You may want to check how much ram the BIOS lets Linux use. Type
dmesg | less
and look for a table similar to this (which is from one of my systems)
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000bfe8ac00 (usable)
 BIOS-e820: 00000000bfe8ac00 - 00000000bfe8cc00 (ACPI NVS)
 BIOS-e820: 00000000bfe8cc00 - 00000000bfe8ec00 (ACPI data)
 BIOS-e820: 00000000bfe8ec00 - 00000000c0000000 (reserved)
 BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved)
 BIOS-e820: 00000000fed20000 - 00000000feda0000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
 BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 000000013c000000 (usable)
Notice the big chunk of "usable" memory
100000 - 00000000bfe8ac00
That means that with the common 32 bit kernel this system could use about 3070MiB of ram.
Notice the extra chunk of usable at the end where it says
That means that a 64 bit Linux or a 32 bit PAE kernel could use an extra 960MiB on this system that an ordinary 32 bit kernel cannot use.

You can switch to a different 32 bit kernel build just by installing the right Debian package for that kernel. Switching to 64 bit requires reinstalling Linux.

You should post the results of
uname -a
To verify that you do have a 32 bit kernel (rather than some stranger problem) and to give us some idea which 32 bit kernel.

I'm not certain the command to grep the kernel config would be the same in Debian. I just did
grep HIGHMEM /boot/config-2.6.9-42.0.10.ELsmp
# CONFIG_HIGHMEM4G is not set
That is I did grep HIGHMEM followed by the name of the config file. I got the 2.6.9-42.0.10.ELsmp part of that name from the output of uname.

Post your version of that if you can. Notice in mine that HIGHMEM64G=y means I have a PAE kernel (that can use that last chunk of memory) and HIGHMEM=y means it can use most of that big chunk.

I'm guessing you have neither of those set, so you can only use about 900MB. So you should install a different kernel package.

Last edited by johnsfine; 02-16-2010 at 02:54 PM.
Old 02-16-2010, 02:44 PM   #8
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,820

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
Exactly what kernel version are you running?
Old 02-16-2010, 04:41 PM   #9
Senior Member
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Might as well throw in the output of lshw, list hardware, if it's installed.


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
PCIe dma-able memory location in physical memory for Intel Nehalem / Tylersburg arch robvoo Linux - Kernel 4 07-31-2009 06:21 AM
Is it possible to know the amount of memory used by a program before running it? Gamma_User Programming 2 03-03-2009 02:14 PM
check amount of memory naijaguy Linux - General 4 10-15-2008 02:11 PM
Physical Memory and Virtual Memory Murdock1979 Linux - General 1 01-28-2008 07:35 AM
/proc/meminfo reports the wrong amount of ram Robo_Donut Linux - General 2 12-18-2006 12:50 AM

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration