LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find how many memory slot and max memory can be used in linux server (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-how-many-memory-slot-and-max-memory-can-be-used-in-linux-server-4175592190/)

QWE123 10-25-2016 09:41 AM

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

schneidz 10-25-2016 09:45 AM

i would look into
Code:

free
cat /proc/meminfo


TB0ne 10-25-2016 09:50 AM

Quote:

Originally Posted by QWE123 (Post 5622748)
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.

cepheus11 10-25-2016 09:59 AM

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)

QWE123 10-25-2016 11:43 AM

thanks reply ,

one more question

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

thanks

TB0ne 10-25-2016 11:57 AM

Quote:

Originally Posted by QWE123 (Post 5622799)
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.

QWE123 10-25-2016 07:57 PM

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

BW-userx 10-26-2016 06:28 AM

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.

pan64 10-26-2016 07:02 AM

why did you start another thread? http://www.linuxquestions.org/questi...ry-4175592248/

TB0ne 10-26-2016 07:47 AM

Quote:

Originally Posted by BW-userx (Post 5623139)
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.

salasi 10-26-2016 09:51 AM

Quote:

Originally Posted by QWE123 (Post 5622987)
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 05:43 PM.