LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-09-2007, 05:49 AM   #1
landroni
Member
 
Registered: Feb 2005
Distribution: Xubuntu 12.04 LTS
Posts: 147

Rep: Reputation: 15
installed system memory differs from mounted (available) memory


Hello Everyone,

I'm on a strange problem. I installed Debian on a Desktop computer and noticed that the system was quite slow, especially with OpenOffice and Opera running at the same time.

lshw tells me that I have 512 MB of RAM installed.
vmstat/dstat tells me that the total amount of RAM (available) is only 187 MB. The swap is as it should be 956 MB available and mounted.

Could anyone please advise on how to "find" and mount the rest of the RAM supposed to be installed on this computer?

Regards,
Liviu

=============== Commands output ===================
# lshw
*-memory
description: System Memory
physical id: 19
slot: System board or motherboard
size: 512MB
*-bank:0
description: DIMM
product: None
vendor: None
physical id: 0
serial: None
slot: A0
size: 512MB
width: 64 bits
*-bank:1
description: DIMM [empty]
product: None
vendor: None
physical id: 1
serial: None
slot: A1
width: 64 bits

$ vmstat -s -S M
187 M total memory
180 M used memory
129 M active memory
36 M inactive memory
7 M free memory
1 M buffer memory
32 M swap cache
956 M total swap
173 M used swap
783 M free swap
9665 non-nice user cpu ticks
0 nice user cpu ticks
1802 system cpu ticks
218740 idle cpu ticks
4890 IO-wait cpu ticks
96 IRQ cpu ticks
61 softirq cpu ticks
0 stolen cpu ticks
229943 pages paged in
222184 pages paged out
14153 pages swapped in
45258 pages swapped out
717158 interrupts
952759 CPU context switches
1186663403 boot time
4434 forks
 
Old 08-09-2007, 08:43 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,310

Rep: Reputation: 139Reputation: 139
What does the free command show:

$ free
 
Old 08-10-2007, 05:43 AM   #3
landroni
Member
 
Registered: Feb 2005
Distribution: Xubuntu 12.04 LTS
Posts: 147

Original Poster
Rep: Reputation: 15
Same story:

# free
total used free shared buffers cached
Mem: 192168 189016 3152 0 828 69836
-/+ buffers/cache: 118352 73816
Swap: 979924 159344 820580
 
Old 08-10-2007, 12:46 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,310

Rep: Reputation: 139Reputation: 139
I'm stumped. The only thing I can suggest is to make sure it's just not some error in the monitoring app, i.e. your system is really seeing only 187MB of ram. From what you posted, it appears that your system is truly seeing just the 187MB of ram.

I don't know that much about the stock debian kernel which I assume you are running. However, IIRC the linux kernel has the ability to check ram for errors and mark any bad sectors on the ram stick. The bad sectors will not be used on any subsequent boot and that may result in the reported ram being less than the installed ram. That may be something to look into.

You might also thoroughly check your ram with memtest. Let it run overnight and see if any errors are reported. I also assume you are not overclocking or anything like that.
 
Old 08-10-2007, 12:57 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Does the memory show up at its full capacity in your BIOS/startup post screen? If not then you may need to flash the BIOS to a newer version you might also want to check to see if your motherboard (what make/model is it anyways?) supports 521mb sticks. One thing you can try is when you get to the grub boot screen hit the c key then boot use the grub command prompt and add the mem=512M to the command when booting the machine. To do this look at the first entry/the one that boot Debian if not the first in your /boot/grub/menu.lst file like this below.

Code:
title           Debian GNU/Linux, kernel 2.6.22.1-cfs-v19 Previous
root            (hd0,0)
kernel          /boot/vmlinuz root=/dev/sda2 ro
savedefault
Now once you have used the c key to get to the command prompt you would need these commands to boot your system using my entry above as a template changing to yours when you do it.

Code:
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda2 mem=512M ro
boot
Now hopefully it will see and use all your memory if this works then edit the line in the menu.lst and add the mem=512M to it to have it used on every boot.
 
Old 08-13-2007, 06:43 AM   #6
landroni
Member
 
Registered: Feb 2005
Distribution: Xubuntu 12.04 LTS
Posts: 147

Original Poster
Rep: Reputation: 15
Thank you all for answering.

Since I am new to this computer, I was relying only on the linux hardware detection tools. Checking the hardware with Aida 32 on Windows, it actually has installed 192 MB of RAM only. My guess is that this is some bug in lshw, which shows the memory capable of supporting instead of the actual installed memory.
 
  


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
How much memory is installed? xymian Linux - General 2 10-03-2005 02:07 AM
Memory loss during copies across mounted partition ramram Linux - Software 1 09-08-2005 12:36 PM
making a mounted memory stick rw newusermike Linux - Newbie 1 08-14-2005 03:04 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 12:50 PM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
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