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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-25-2016, 09:41 AM
|
#1
|
Member
Registered: Nov 2014
Posts: 56
Rep: 
|
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
|
|
|
10-25-2016, 09:45 AM
|
#2
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,330
|
i would look into
Code:
free
cat /proc/meminfo
|
|
|
10-25-2016, 09:50 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,824
|
Quote:
Originally Posted by QWE123
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.
|
|
|
10-25-2016, 09:59 AM
|
#4
|
Member
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286
Rep:
|
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)
|
|
|
10-25-2016, 11:43 AM
|
#5
|
Member
Registered: Nov 2014
Posts: 56
Original Poster
Rep: 
|
thanks reply ,
one more question
If I would like to know how many physical memory in each slot currently , how to check it ?
thanks
|
|
|
10-25-2016, 11:57 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,824
|
Quote:
Originally Posted by QWE123
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.
|
10-25-2016, 07:57 PM
|
#7
|
Member
Registered: Nov 2014
Posts: 56
Original Poster
Rep: 
|
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.
|
|
|
10-26-2016, 06:28 AM
|
#8
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
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.
|
10-26-2016, 07:02 AM
|
#9
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,674
|
|
|
|
10-26-2016, 07:47 AM
|
#10
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,824
|
Quote:
Originally Posted by BW-userx
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.
|
|
|
10-26-2016, 09:51 AM
|
#11
|
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070
|
Quote:
Originally Posted by QWE123
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.
|
|
|
All times are GMT -5. The time now is 06:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|