LinuxQuestions.org
Review your favorite Linux distribution.
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 08-04-2004, 12:50 PM   #1
skistner
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
Determine Physical RAM size


All,

I need to determine the physical RAM size on a Red Hat Linux server. I know how to find the allocated RAM size(using free), but how do I find out the actually physical size of the RAM without opening up the box and looking at the RAM ?

Last edited by skistner; 08-04-2004 at 12:57 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-04-2004, 01:06 PM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
But free output shows also physical memory size


[duda@iguana proc]$ free
total used free shared buffers cached
Mem: 514592 274136 240456 0 20228 134104
-/+ buffers/cache: 119804 394788
Swap: 1052216 0 1052216


or you mean each RAM module size at each bank?
 
1 members found this post helpful.
Old 08-04-2004, 01:09 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Code:
cat /proc/meminfo
The first line on the output should be "MemTotal:", and give you the amount of RAM in kB.

— Robert J. Lee
 
1 members found this post helpful.
Old 08-04-2004, 01:41 PM   #4
skistner
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I mean the RAM module size at each bank. Is there anyway to find that out without opening in the box ?
 
Old 08-04-2004, 06:05 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,568

Rep: Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865
I don't not think so but I've been proven wrong more then once.
 
Old 08-04-2004, 11:17 PM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Setup lmsensors and it will tell you. The memory have to have a SPD chip.
 
Old 12-08-2008, 12:58 AM   #7
tlg
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Detecting physical memory in Linux systems

The command:

cat /var/log/dmesg | grep Memory:

will tell you the amount of physical memory detected at system start up.

This memory size is correct even where Xen is used and memory is allocated to guest machines (assuming the command is entered at a
Dom0 terminal.)

Other commands like top and meminfo will only tell you about the memory available to Dom0, and won't include memory taken by the guest virtual machines.

Last edited by tlg; 12-08-2008 at 01:09 AM. Reason: added Xen
 
Old 12-08-2008, 01:06 AM   #8
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by tlg View Post
The command:

cat /var/log/dmesg | grep Memory:

will tell you the amount of physical memory detected at system start up.
You realize this thread is 4 1/2 years old?
 
Old 01-12-2010, 11:34 AM   #9
80HD
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 4
Cool

Quote:
Originally Posted by SqdnGuns View Post
You realize this thread is 4 1/2 years old?
You realize that the post was relevant to the issue, that most people find this site through search engines while troubleshooting a problem? Is it better to just start a new thread "Hey, I was reading an old post on the forum... and here is related info!!"? If so, I would gladly do that... perhaps a "Do not "bump" post" option would be nice, so at least the data stays together but doesn't cause any panty bunching?

So, in keeping with:

Quote:
"Please note that this thread has not been replied to in over 6 months. Please ensure your reply is still relevant and timely."
Here is some info that I believe more directly answers the original question (checking slots without opening the box)... I came upon it searching for the answer myself, and thought I would share!

Quote:
I found the following at: http://www.cyberciti.biz/faq/check-ram-speed-linux/

Basically if you run dmidecode --type 17, you will get the following output (note that it is erroneously listing 133MHz in place of 13333MHz) - I have highlighted the pertinent parts in bold:

(I pulled this off my Laptop - D900f running Fedora 12)

Handle 0x0017, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x0016
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 4096 MB
Form Factor: DIMM

Set: 1
Locator: J1MY
Bank Locator: CHANNEL A DIMM 0
Type: Reserved
Type Detail: Synchronous
Speed: 133 MHz
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: 1

Handle 0x0019, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x0016
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 4096 MB
Form Factor: DIMM
Set: 1
Locator: J3MY
Bank Locator: CHANNEL B DIMM 0
Type: Reserved
Type Detail: Synchronous
Speed: 133 MHz
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: 1

Handle 0x001A, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x0016
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: DIMM
Set: 1
Locator: J5MY
Bank Locator: CHANNEL B DIMM 1
Type: Reserved
Type Detail: Synchronous
Speed: 133 MHz
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: 1

Handle 0x001B, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x0016
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 4096 MB
Form Factor: DIMM

Set: 1
Locator: J4MY
Bank Locator: CHANNEL C DIMM 0
Type: Reserved
Type Detail: Synchronous
Speed: 133 MHz
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: 1
 
3 members found this post helpful.
Old 01-13-2010, 03:58 PM   #10
tlg
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Thanks for the tip. Very handy.
 
Old 02-21-2010, 06:13 AM   #11
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Rep: Reputation: 30
wrong result

Hi
Thanks for your good topic and reply
Unfortunately dmidecode can not give correct information about my memory!!
I have 4Gig DDR3 but dmideocde can not determine type my ram,and shoe "type= other" and "speed: 667Mhz".
But speed of my ram is 1333 MHz.

Thanks for nay help or guidance
 
Old 02-22-2010, 01:38 AM   #12
cgtueno
Member
 
Registered: Jul 2003
Posts: 363

Rep: Reputation: 50
Hi

You can run Memtest86 (Google and download a copy off the www) that will identify the modules that are installed, module CAS latency information, which module banks are filled, symmetric/asymmetric module configuration, etc.

It can be run from a CDROM image standalone (without affecting the system installation). It has a suite of tests that check the modules for correct operation.

It's a really useful test and inspection tool.

Regards

Chris

Last edited by cgtueno; 02-22-2010 at 01:42 AM. Reason: Augmented and edited
 
Old 02-22-2010, 01:52 AM   #13
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
How about:
ls -la /proc/kcore | awk '{print $5}' | tr -d '';
Or even easier to read:
a1=`ls -la /proc/kcore | awk '{print $5}' | tr -d ''`;echo $(($a1/1024/1024))MB;
 
Old 02-22-2010, 04:55 AM   #14
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Rep: Reputation: 30
Thanks for your attention
Quote:
Originally Posted by micxz View Post
How about:
ls -la /proc/kcore | awk '{print $5}' | tr -d '';
Or even easier to read:
a1=`ls -la /proc/kcore | awk '{print $5}' | tr -d ''`;echo $(($a1/1024/1024))MB;
What does The output of this command indicate???

Thanks in advance
 
Old 02-22-2010, 05:37 AM   #15
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Rep: Reputation: 30
Thanks for your reply
Quote:
Originally Posted by cgtueno View Post
Hi

You can run Memtest86 (Google and download a copy off the www) that will identify the modules that are installed, module CAS latency information, which module banks are filled, symmetric/asymmetric module configuration, etc.

It can be run from a CDROM image standalone (without affecting the system installation). It has a suite of tests that check the modules for correct operation.

It's a really useful test and inspection tool.

Regards

Chris
But I need to one tool that I can install on production server and I do not want restart the system.

Thanks
 
  


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
Size in superblock is different from the physical size of the partition cyberfishee Linux - Hardware 18 09-11-2016 08:48 AM
Size of physical RAM bkankur Linux - General 3 07-21-2006 05:27 AM
/proc/kcore size doesn't match with physical ram size cash_05 Linux - Newbie 2 06-01-2005 01:23 PM
Determine physical disk size Kristijan Linux - General 4 01-23-2005 05:56 PM
Why should you give the size of the swap disk as twice the size of RAM vmniza Linux - Newbie 3 09-17-2004 02:13 AM

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

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

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