LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2011, 03:16 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
bought RAM for Ubuntu 10.10 box - can I just pop it in or do I need to run commands?


I just bought 8GB of RAM for my old desktop which I'm using as an Ubuntu dev box and secondary workstation. Can I just install the RAM and go merrily on my way or do I need to run some commands for Linux to take recognize and take advantage of the extra memory?
 
Old 02-21-2011, 03:21 PM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
You didn't say whether you use 32 bit or 64 bit Ubuntu, and if 32 bit whether it is PAE or not.

The output from the command uname -a would tell most of us whether your Ubuntu is 32 bit or 64 bit and would tell someone with some Ubuntu specific knowledge whether 32 bit is PAE or not. So post that output if you don't know what kernel you have.

There may also be many questions about whether your motherboard/BIOS really supports 8GB of ram and whether you need to change any BIOS settings to enable that support. A BIOS may easily recognize and report 8GB without actually supporting 8GB. But that is not at all the question you asked.

A 32-bit non PAE Linux kernel can only support 3 and a fraction GB of ram. A 32 bit PAE kernel can easily support 8GB (usually more). If you have a non PAE kernel, you can switch to a PAE kernel by simply installing the correct package with the package manager and (unlike most package changes) then reboot.

Some people will tell you switching to 64 bit is better (see lots of other threads debating that). But for sure switching from 32 bit to 64 bit is far harder than switching 32 bit non PAE to PAE.

It is reasonable to try the hardware upgrade of ram before any software change. Assuming you have a 32 bit non PAE kernel now, if the ram works then you will initially be able to use 3 and a fraction GB of it, and there is a way to tell whether the BIOS has enabled all 8GB even before you change to a kernel that can use it.

Last edited by johnsfine; 02-21-2011 at 03:43 PM.
 
Old 02-21-2011, 03:22 PM   #3
Enigmapond
LQ Newbie
 
Registered: Feb 2011
Distribution: Lucid Lynx 10.04
Posts: 7

Rep: Reputation: 0
You can just pop it in and be happy. Just, if you are running a i386 architecture, (32bit) Ubuntu will not show the full RAM. it will utilize it but if you have conky or a screenlet set to show the RAM, you won't see the full 8GB....only 64bit does that....

Cheers!

EDIT: I stand corrected about the PAE....what he said...

Last edited by Enigmapond; 02-21-2011 at 03:25 PM.
 
Old 02-21-2011, 03:39 PM   #4
LlNUX
Member
 
Registered: Oct 2007
Location: Sydney, Australia
Distribution: Debian
Posts: 63

Rep: Reputation: 15
Hi,

Here are couple commands you can check a new RAM installation. It will report current usage and total ram installed.
 
Old 02-21-2011, 03:51 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 LlNUX View Post
Here are couple commands you can check a new RAM installation. It will report current usage and total ram installed.
But if those methods give contradictory results, you won't know where the support was missed:

The dmidecode and lshw and related methods all give a very optimistic view, telling you about all the physical ram unless it is very seriously broken or fundamentally inaccessible. Even if the total ram is far above what the motherboard can support, dmidecode will still be able to see all the ram.

The free and top and meminfo and related methods all give (slight underestimates of) final usable ram.

If you see memory via dmidecode that is missing in meminfo, neither tells you whether it is bad memory vs. motherboard doesn't support that much vs. BIOS doesn't support that much vs. BIOS misconfigured vs. Linux kernel doesn't support that much vs. Linux misconfigured.

To start to divide up those possibilities, you can look at the BIOS memory map that is near the beginning of the output of the dmesg command.

That will tell you what ram the BIOS allows the OS to use. Ram not listed there can't be used by Linux no matter how you configure Linux nor which Linux kernel you have. Ram listed there can be used by Linux so if your current Linux kernel can't use it, you can change that.

Last edited by johnsfine; 02-21-2011 at 03:55 PM.
 
Old 02-21-2011, 03:58 PM   #6
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Thanks so much for all the replies. My mobo specs say 8GB is the maximum supported. It's got 4 slots and I'm putting 2GB in each. Also, I've got 64-bit Ubuntu 10.10 so the OS should be able to work with the 8GB easily. I suppose I was wondering aout installed applications (e.g., Apache, PHP) and whether they have adaptive behavior or whether they check the RAM at install time and configure themselves accordingly.

In any case. I'm going to pop it in right now and see what happens.
 
Old 02-21-2011, 04:04 PM   #7
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 sneakyimp View Post
My mobo specs say 8GB is the maximum supported. It's got 4 slots and I'm putting 2GB in each.
There still might be a confusing option somewhere in BIOS setup that needs to be changed in order to actually enable 8GB of ram. Otherwise the BIOS would find and report 8GB but silently enable less.

Quote:
I've got 64-bit Ubuntu 10.10 so the OS should be able to work with the 8GB easily.
So nothing to worry about there.

Quote:
I was wondering aout installed applications (e.g., Apache, PHP) and whether they have adaptive behavior or whether they check the RAM at install time and configure themselves accordingly.
I'm only pretty sure there is nothing to worry about there either. For most applications I'm certain there is nothing to worry about. But I don't uses Apache nor PHP.
 
Old 02-21-2011, 07:43 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I agree. 64 bit shouldn't care but saying that there are ways to check the kernel usage and maybe correct it if needed as far as the kernel is concerned.

The problem is with any installer. Dunno how many times this sort of thing happens where some oddity of an installer made a choice and not generally known.

To be sure, install it as new. (no one ever likes to hear that) Since it is a dev box you should start with a known clean install.
 
Old 02-21-2011, 07:47 PM   #9
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by jefro View Post
To be sure, install it as new. (no one ever likes to hear that) Since it is a dev box you should start with a known clean install.
Yikes! Unfortunately, this box has 4 different boots on it
* XP, set up for Protools recording
* XP, set up for dev
* Ubuntu 64, for dev
* Ubuntu 32, for dev

It was quite a nightmare to get them all running and playing nice.

I've put the RAM in and when I run 'free' it looks like it's all there.
 
  


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
Best way to run remote commands on a CentOS box? TCP Shell Script maybe? CrewXp Programming 4 01-12-2011 09:38 PM
[SOLVED] What is the minimum ram and HDD needed to run UNR 10.10 ubuntu netbook emusthroat Linux - Newbie 1 11-16-2010 02:06 PM
Want to run Virtual Box in Ubuntu with Win98 as guest OS Won't install donrc Linux - General 16 12-13-2009 08:26 AM
persistent shell for headless box - need to run commands and disconnect kiranghag Linux - Newbie 2 07-03-2009 05:24 AM
SSL pop up box tommytomato Linux - General 1 07-03-2004 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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