Home

Friday, October 8, 2010

Xem số lượng thanh ram trên ubuntu

Hiện tại mình tìm được 2 cách để xem số lượng thông tin về memory trên hệ điều hành Ubuntu
Cách 1: Lệnh dmidecode
Bước 1: Mở giao diện Command Line
Bước 2: Gõ lệnh: sudo dmidecode -t 6 sau đó nhập password root vào
Bước 3: Kết quả hiện ra đại khái thế này :

# dmidecode 2.9
SMBIOS 2.4 present.

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
Socket Designation: A0
Bank Connections: 1
Current Speed: Unknown
Type: Other
Installed Size: 1024 MB (Single-bank Connection)
Enabled Size: 1024 MB (Single-bank Connection)
Error Status: OK

Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
Socket Designation: A1
Bank Connections: 2
Current Speed: Unknown
Type: Unknown
Installed Size: Not Installed
Enabled Size: Not Installed
Error Status: OK
Handle 0x0008, DMI type 6, 12 bytes
Memory Module Information
Socket Designation: A2
Bank Connections: 3
Current Speed: Unknown
Type: Other
Installed Size: 1024 MB (Single-bank Connection)
Enabled Size: 1024 MB (Single-bank Connection)
Error Status: OK

Handle 0x0009, DMI type 6, 12 bytes
Memory Module Information
Socket Designation: A3
Bank Connections: 4
Current Speed: Unknown
Type: Unknown
Installed Size: Not Installed
Enabled Size: Not Installed
Error Status: OK

Trong tình huống này có 4 slot và 2 slot có RAM (1,3) mỗi thanh 1 GB

Cách 2: Lệnh lshw
Bước 1: Mở giao diện command line
Bước 2: gõ lệnh sudo lshw -class memory sau đó nhập password của root
Bước 3: Kết quả có dạng như sau:
..............
*-memory
description: System Memory
physical id: 1b
slot: System board or motherboard
size: 2GiB
*-bank:0
description: DIMM 667 MHz (1.5 ns)
physical id: 0
slot: A0
size: 1GiB
width: 64 bits
clock: 667MHz (1.5ns)
*-bank:1
description: DIMM [empty]
physical id: 1
slot: A1
*-bank:2
description: DIMM 667 MHz (1.5 ns)
physical id: 2
slot: A2
size: 1GiB
width: 64 bits
clock: 667MHz (1.5ns)
*-bank:3
description: DIMM [empty]
physical id: 3
slot: A3
............


No comments:

Post a Comment