How to view CPU, memory, machine model, and nic information in Linux
Source: Internet
Author: User
Do
Performance TestingThe hardware information of the performance test machine needs to be recorded. The required commands are summarized as follows:
View CPU Information(Model)
# Cat/proc/cpuinfo | grep name | cut-F2-D: | uniq-C
8 Intel (r) Xeon (r) CPU e5410 @ 2.33 GHz
(We can see eight logical CPUs and the CPU model)
# Cat/proc/cpuinfo | grep physical | uniq-C
4 physical ID: 0
4 physical ID: 1
(It means two 4-core CPUs)
PS: Jay added on 10th, May, 2011
# In fact, there may be hyperthread HT technology, not necessarily 4-core, or 2-core, 4-thread. At that time, I still cannot understand it clearly.
# Getconf long_bit
32
(This indicates that the current CPU runs in 32bit mode, but does not indicate that the CPU does not support 64bit)
# Cat/proc/cpuinfo | grep flags | grep 'lm '| WC-l
8
(If the result is greater than 0, 64bit computing is supported. lm indicates long mode, and Lm indicates 64bit)
Let's take a full look at the CPU details, but we don't care about most of them.
# Dmidecode | grep 'processor information'
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.