LinuxQuestions.org
Review your favorite Linux distribution.
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 10-25-2016, 09:41 AM   #1
QWE123
Member
 
Registered: Nov 2014
Posts: 55

Rep: Reputation: Disabled
How to find how many memory slot and max memory can be used in linux server


I have redhat 5 server , may i Know if i want to use command to find how many memory slot and the max memory the server is supported .

does the below command is the proper way to check it ?

dmidecode |grep -i "Maximum Capacity:" | uniq


thanks
 
Old 10-25-2016, 09:45 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,258

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
i would look into
Code:
free
cat /proc/meminfo
 
Old 10-25-2016, 09:50 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,959

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
Quote:
Originally Posted by QWE123 View Post
I have redhat 5 server , may i Know if i want to use command to find how many memory slot and the max memory the server is supported .
does the below command is the proper way to check it ?

dmidecode |grep -i "Maximum Capacity:" | uniq
If you want to know how many memory slots you have in ANY server, with ANY OS, and what is the maximum you can put in it, there is one method that always works: READ THE MANUAL THAT COMES WITH THE SERVER

You have started many threads where you have never come back and replied, or asked things similar to this which are open ended and/or easily looked up. The command you posted tells you SOMETHING, but it isn't always accurate. It tells me I can only have 4GB in the machine I'm on now, even though I have 8GB installed and being used.
 
Old 10-25-2016, 09:59 AM   #4
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 89
The kernel prints the brand of the mainboard in early dmesg, like here in line 22. Search for "DMI":

Code:
# dmesg |head -n 25
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.26-gentoo-01 (build@adrasthea) (gcc version 4.9.3 (Gentoo Hardened 4.9.3 p1.5, pie-0.6.4) ) #1 SMP PREEMPT Mon Oct 24 10:42:45 CEST 2016
[    0.000000] Command line: root=/dev/sda2 rootfstype=ext4 quiet vmalloc=128M net.ifnames=0 console=tty1 consoleblank=0
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers'
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[    0.000000] x86/fpu: Using 'lazy' FPU context switches.
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000dffeffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000dfff0000-0x00000000dfffffff] ACPI data
[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000013fffffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.5 present.
[    0.000000] DMI: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0x140000 max_arch_pfn = 0x400000000

With the mainboard brand, you can ask the internet for the specs.

(This example is from a virtual machine, so it does not say anything about actual hardware)
 
Old 10-25-2016, 11:43 AM   #5
QWE123
Member
 
Registered: Nov 2014
Posts: 55

Original Poster
Rep: Reputation: Disabled
thanks reply ,

one more question

If I would like to know how many physical memory in each slot currently , how to check it ?

thanks
 
Old 10-25-2016, 11:57 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,959

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
Quote:
Originally Posted by QWE123 View Post
thanks reply ,one more question
If I would like to know how many physical memory in each slot currently , how to check it ?
You get a screwdriver, open the server up and LOOK.
 
1 members found this post helpful.
Old 10-25-2016, 07:57 PM   #7
QWE123
Member
 
Registered: Nov 2014
Posts: 55

Original Poster
Rep: Reputation: Disabled
thanks reply ,

I just would like to confirm the result of the below command can only check the max of memory of the OS is supported , but not the hardware is supported ?

dmidecode |grep -i "Maximum Capacity:" | uniq

cat /proc/meminfo

For how many memory of the hardware is supported , I have to check the vendor ?

thanks

Last edited by QWE123; 10-25-2016 at 07:58 PM.
 
Old 10-26-2016, 06:28 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,143

Rep: Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939
did you try googling your server specs to see
did you try opening it up to count your slots?

your server may have specif ways you have to install your RAM depending on how it was manufactured to receive it in whatever configuration one might be able to use. Types of RAM it can use and in what combination?
It might not allow mix and matching of RAM.

Last edited by BW-userx; 10-26-2016 at 06:30 AM.
 
1 members found this post helpful.
Old 10-26-2016, 07:02 AM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,088

Rep: Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142
why did you start another thread? http://www.linuxquestions.org/questi...ry-4175592248/
 
Old 10-26-2016, 07:47 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,959

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
Quote:
Originally Posted by BW-userx View Post
did you try googling your server specs to see
did you try opening it up to count your slots?

your server may have specif ways you have to install your RAM depending on how it was manufactured to receive it in whatever configuration one might be able to use. Types of RAM it can use and in what combination?
It might not allow mix and matching of RAM.
These things were suggested to the OP previously, without any luck. The OP's posting history indicates mostly open-ended questions, or asking things which could be answered with a small bit of research on the OP's part.
 
Old 10-26-2016, 09:51 AM   #11
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by QWE123 View Post
thanks reply ,

I just would like to confirm the result of the below command can only check the max of memory of the OS is supported , but not the hardware is supported ?

dmidecode |grep -i "Maximum Capacity:" | uniq
I can't be sure exactly what you mean, but in either of the reasonable interpretations that I can come up with, that is just plain wrong. Please give it up and just go wth TB0ne's more reasonable approach.

Quote:
cat /proc/meminfo

For how many memory of the hardware is supported , I have to check the vendor ?
The cat command doesn't work, either. Well, it gives you information, but exactly none of it is the information that you say that you want. You can contact the vendor or you can usually find the information on-line quite easily.
 
  


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
Virtual Machines on Linux and Max. Available Memory defa0009 Linux - Hardware 25 02-06-2008 06:20 AM
how to find max memory usage for process in Linux by command line kashameni Linux - Newbie 9 06-01-2007 01:39 AM
to find process using max memory sharma.kashyap Linux - General 3 02-22-2007 10:28 AM
Memory slot and device information. atticboy1 Linux - Hardware 5 11-07-2006 11:31 AM
Limit max thread and memory for application in linux kernel 2.4.x manhvt Linux - General 4 07-12-2005 03:41 PM

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

All times are GMT -5. The time now is 12:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration