Linux Query Memory command

Source: Internet
Author: User

1. Linux View memory details
[Email protected] ~]# Dmidecode--type Memory
# Dmidecode 2.10
SMBIOS 2.4 present.

Handle 0x004a, DMI type, bytes
Physical Memory Array
Location:system Board Or Motherboard
Use:system Memory
Error Correction type:multi-bit ECC
Maximum capacity:65024 MB
Error Information Handle:not provided
Number of Devices:12

Handle 0x004b, DMI type, bytes
Memory Device
Array handle:0x004a
Error Information Handle:not provided
Total width:72 Bits
Data width:64 Bits
size:2048 MB
Form Factor:dimm
Set:1
Locator:dimm 1
Bank Locator:bank 1
Type:ddr2
Type detail:synchronous
speed:266 MHz
Manufacturer:not Specified
Serial Number:not Specified
Asset Tag:not Specified
Part Number:not Specified
2. View the number of slots in memory and how many slots are in use. How big is the memory and how much memory is used
[Email protected] ~]# Dmidecode--type memory|grep-i size
size:2048 MB
size:2048 MB
size:2048 MB
size:2048 MB
Size:no Module Installed
Size:no Module Installed
size:2048 MB
size:2048 MB
size:2048 MB
size:2048 MB
Size:no Module Installed
Size:no Module Installed

This command is also possible, just a little more complicated.
[Email protected] ~]# dmidecode|grep-p-a5 "Memory\s+device" |grep size|grep-v Range
size:2048 MB
size:2048 MB
size:2048 MB
size:2048 MB
Size:no Module Installed
Size:no Module Installed
size:2048 MB
size:2048 MB
size:2048 MB
size:2048 MB
Size:no Module Installed
Size:no Module Installed
3. Linux View Memory Frequency
[Email protected] ~]# Dmidecode--type memory|grep-i speed
speed:266 MHz
speed:266 MHz
speed:266 MHz
speed:266 MHz
speed:266 MHz
speed:266 MHz
speed:266 MHz
speed:266 MHz
speed:266 MHz
speed:266 MHz
speed:266 MHz
speed:266 MHz
4, Linux view memory supported maximum memory capacity
[Email protected] ~]# dmidecode|grep-p ' maximum\s+capacity '
Maximum capacity:65024 MB

Linux Query Memory command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.