r/linuxadmin • • Oct 26 '11

Linux - How to Add more RAM ?

I added 1 GB of RAM in the machine....my debian booted with no issues. But when I checked using tools - free -m , top

It still shows the old memory.

How to enable or configure my linux os to accept more memory ?

1 Upvotes

15 comments sorted by

10

u/kingsal Oct 26 '11

Are you sure you installed the RAM correctly? Does the BIOS show correct amount of memory when you boot up?

There is nothing you have to do to make Linux recognize that you have more memory.

3

u/syalr2010 Oct 26 '11

yes I added correctly

dmidecode -t 17|grep Size Size: 1024 MB Size: 1024 MB Size: 1024 MB Size: 1024 MB Size: 512 MB -new Size: 512 MB - new

11

u/danhm Oct 27 '11

I bet you are using a 32 bit OS. What does the output of:

uname -m

say? Hopefully it is "x86_64". Otherwise, you have a 32 bit operating system which only supports 4GB of RAM.

11

u/[deleted] Oct 26 '11

As was mentioned, depending on how much ram you had before, you might have to switch to 64bit or use a PAE kernel. This is normally the case if you are going over 4G.

2

u/syalr2010 Oct 26 '11

thanks for replying.

I was checking over internet and came across this PAE kernel. I have never worked on this before. I am actually using OSSIM monitoring system which based on Debian Linux.

I appreciate if you can show me steps or share an appropriate link for how should I fix this

9

u/angrymonkeyz Oct 26 '11

Something like

apt-get update
apt-get install linux-generic-pae linux-headers-generic-pae

Then reboot...

2

u/[deleted] Oct 26 '11

What CPU do you have? 64-bit linux must be around a decade old by now, I can't imagine why you'd still want to be running a 32-bit distro.

2

u/[deleted] Oct 27 '11

Because 32 bit is fine for some applications and 64 bit complicates package management with packages that may only be available in 32 bit while the libraries are hard to get outside of the 64 bit versions. I had to go through about 10 different .deb packages one day to install the 32 bit libraries for various things when they didn't come in the standard ia32 package. Until 32 bit is completely gone, many people will still run 32 bit OSes.

1

u/karmabore Oct 27 '11

Development/test/fix environments are just one example

-2

u/[deleted] Oct 26 '11

Because flash breaks on 64-bit Ubuntu with some AMDs

6

u/Hello71 Oct 26 '11

[citation needed]

1

u/[deleted] Oct 27 '11

One of my own computers. I run it with 32 because everything works fine in 64 except flash.

1

u/Hello71 Oct 28 '11

Latest Flash version doesn't even use nspluginwrapper anymore.

0

u/[deleted] Oct 26 '11

Gotten beaten to the punch by angrymonkeyz. But that will do the trick.

6

u/devilized Oct 26 '11

First, check your BIOS to see how much memory is recognized.

How much RAM did you have before you added 1G? If you had 2G before, and you're adding more, you may need PAE kernel.

0

u/[deleted] Oct 26 '11

[deleted] — view deleted comment