Author Topic: การเชค ram memory บน freeBSD Centos  (Read 5654 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
การเชค ram memory บน freeBSD Centos
« on: ธันวาคม 25, 2012, 10:21:47 AM »
การเชค ram memory บน freeBSD
#sysctl -a | grep realmem
hw.realmem: 1073532928

ก็คือ 1G ครับผม

หรือจะ dmidecode ดูรายละเอียด ของ Machine type หรือ Serial ของ server ก็ได้นะครับผม

การเชค ram memory บน Centos , Debian
#free

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: การเชค ram memory บน freeBSD Centos
« Reply #1 on: ตุลาคม 21, 2015, 06:02:50 PM »
ปกติถ้า System Admin จะทำการอัฟเกรดตัว Physical memory (RAM) ของ server
โดยที่ไม่ต้องการปิดเครื่องเพื่อดูรายละเอียด ram ว่าใช้ slot แบบไหนหรือ bus เท่าไร
ข้อดีของการใช้ command คือไม่เสียเวลา downtime maintenance หลายครั้ง ได้ข้อมูลที่เป็นรายละเอียดอย่างครบถ้วน

วิธีการที่ผมใช้ก็คือในระบบ unix จะมีคำสั่ง #dmidecode ครับเพื่อใช้ดูประเภทของ Ram และตำแหน่งที่เสียบอยู่ ณ​ ปัจจุบัน
ถ้าไม่มีคำสั่งนี้ ทำการลงเพิ่มได้เลยครับ
###CentOS
#yum install dmidecode
###Debian
#apt-get install dmidecode
###FBSD 10 ขึ้นไป
#pkg install dmidecode

หลังจากลงแล้วก็จัดการเชคเลย
1.สิ่งแรกที่ควรจะดูคือ Model ของ Server ครับว่าใช้งานตัว Main board ของรุ่นไหนอยู่
หลังจากทราบรุ่นของ mainboard แล้วทำการ load datasheet ของรุ่นมาดูครับ โดยค้นหาจากคำว่า CPU หรือ Product Name ก็ได้ครับ

2. ค้นหา คำว่า Memory
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: Single-bit ECC
        Maximum Capacity: 32 GB
        Error Information Handle: Not Provided
        Number Of Devices: 4  # บอกว่ามีช่องใส่ Ram 4 ช่องเป็นแบบ Single-bit ECC ครับ

Handle 0x1100, DMI type 17, 40 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
        Size: No Module Installed   #==> บอกว่าช่องตตำแหน่ง PROC 1 DIMM 1 ไม่มี Physical RAM ถูกติดตั้งอยู่ครับ
        Form Factor: DIMM
        Set: None
        Locator: PROC  1 DIMM  1
        Bank Locator: Not Specified
        Type: DDR3
        Type Detail: Synchronous
        Speed: Unknown
        Manufacturer: UNKNOWN
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: NOT AVAILABLE       
        Rank: Unknown
        Configured Clock Speed: Unknown
        Minimum Voltage:  Unknown
        Maximum Voltage:  Unknown
        Configured Voltage:  Unknown

Handle 0x1101, DMI type 17, 40 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
        Size: No Module Installed  #==> บอกว่าช่องตตำแหน่ง PROC 1 DIMM 2 ไม่มี Physical RAM ถูกติดตั้งอยู่ครับ
        Form Factor: DIMM
        Set: 1
        Locator: PROC  1 DIMM  2
        Bank Locator: Not Specified
        Type: DDR3
        Type Detail: Synchronous
        Speed: Unknown
        Manufacturer: UNKNOWN
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: NOT AVAILABLE       
        Rank: Unknown
        Configured Clock Speed: Unknown
        Minimum Voltage:  Unknown
        Maximum Voltage:  Unknown
        Configured Voltage:  Unknown

Handle 0x1102, DMI type 17, 40 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
        Size: 4096 MB
        Form Factor: DIMM
        Set: 2
        Locator: PROC  1 DIMM  3      #==> บอกว่าช่องตำแหน่ง PROC 1 DIMM 3 มี Physical RAM ขนาด 4GB แบบ DDR3 Bus 1600MHz ถูกติดตั้งอยู่ครับ
        Bank Locator: Not Specified
        Type: DDR3
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 1600 MHz
        Manufacturer: HP     
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: 669238-071          
        Rank: 2
        Configured Clock Speed: 1600 MHz
        Minimum Voltage:  1.5 V
        Maximum Voltage:  1.5 V
        Configured Voltage:  1.5 V

Handle 0x1103, DMI type 17, 40 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
        Size: No Module Installed
        Form Factor: DIMM
        Set: 3
        Locator: PROC  1 DIMM  4
        Bank Locator: Not Specified
        Type: DDR3
        Type Detail: Synchronous
        Speed: Unknown
        Manufacturer: UNKNOWN
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: NOT AVAILABLE       
        Rank: Unknown
        Configured Clock Speed: Unknown
        Minimum Voltage:  Unknown
        Maximum Voltage:  Unknown
        Configured Voltage:  Unknown

3. หาซื้อ Ram ตามข้อมูลที่มีอยู่ครับผม

ขอบคุณข้อมูลจาก ทีม Support บริษัท Packetlove IT Service and Consulting ครับผม  ;)