View CPU, memory, hard disk, and other information in Linux

Source: Internet
Author: User

I. CPU Configuration
[Root @ R4 ~] # Cat/proc/cpuinfo | grep "model name" & CAT/proc/cpuinfo | grep "physical ID"
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Model name: Intel (r) Xeon (r) CPU x5450 @ 3.00 GHz
Physical ID: 0
Physical ID: 1
Physical ID: 0
Physical ID: 1
Physical ID: 0
Physical ID: 1
Physical ID: 0
Physical ID: 1
// 2-core, 4-thread CPU
// Determine the number of CPU cores by having several different "physical IDs"

Ii. Memory size
[Root @ R4 ~] # Cat/proc/meminfo | grep memtotal
Memtotal: 32941268 KB
// 32 GB memory

Memory cleanup:

Free-m

Echo 1>/proc/sys/Vm/drop_caches

Command: dmidecode | grep-A16 "memory device $"

 

Iii. Hard Disk size
[Root @ R4 ~] # Fdisk-L | grep Disk
Disk/dev/SDA: 1887.4 GB, 1887436800000 bytes
Disk/dev/SDB: 1860.5 GB, 1860593254400 bytes
// Two 1.8t Hard Disks

4. swap space
[root @ R4 ~] # Grep swaptotal/proc/meminfo
swaptotal: 10223608 kb

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.