View the server hardware configuration example in CentOS6.5

Source: Internet
Author: User
Tags cpu usage


Environment:

System version: CentOS6.5 x86_64

Introduction

In Linux, without windows, you can easily install a master Lu to view the hardware configuration and run the score comparison, so you can only use commands to view it. The following describes how to view the corresponding hardware information.

1. View CPU information

1. The main configuration file is/proc/cpuinfo

Processor: 0
# Number of the logic processing core in the system. For a single-core processor, the course considers it as its CPU number. For a multi-core processor, it can be a physical core, or a virtual logical core using Hyper-Threading Technology.
Vendor_id: GenuineIntel
# CPU manufacturer
Cpu family: 6
# CPU product series code
Model: 60
# Code of the generation in which the CPU belongs
Model name: Intel (R) Core (TM) i5-4430 CPU @ 3.00 GHz
# Name of the CPU, its ID, and its nominal clock speed
Stepping: 3
# The CPU is a production update version.
Cpu MHz: 2992.954
# Actual CPU usage frequency
Cache size: 6144 KB
# CPU second-level cache size
Physical id: 0
# Number of a single CPU
Siblings: 4
# Number of logical physical cores of a single CPU
Core id: 0
# Number of the current physical core in the CPU, which is not necessarily consecutive
Cpu cores: 4
# Number of physical CPU cores of the logical core
Apicid: 0
# Used to identify the numbers of different logical cores. The numbers of each logical core in the system must be different, and the numbers are not necessarily consecutive.
Initial apicid: 0
Fpu: yes
# Floating Point Unit)
Fpu_exception: yes
# Whether floating point computing is supported or not
Cpuid level: 13
# Before executing the cpuid command, the values in the eax register will return different contents according to the cpuid command of different values
Wp: yes
# Indicates whether the current CPU supports Write Protection for user space in kernel mode)
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx limit rdtscp lm limit pebs bts rep_good limit kernel pni kernel monitor kernel vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt kernel aes xsave avx f16c rdrand kernel abm ida arat kernel pln pts dts kernel ept vpid bmi1 avx2 smep bmi2 erms invpcid
# Features supported by the current CPU
Bogomips: 5985.90
# Million Instructions Per Second)
Clflush size: 64
# Cache size units refreshed each time
Cache_alignment: 64
# Cache address alignment unit
Address sizes: 39 bits physical, 48 bits virtual
# Number of accessible address spaces
Power management:
# The following functions are available for energy management:
2. Common commands:

CPU model: cat/proc/cpuinfo | grep "model name" | uniq | awk '{print $4 "" $5 $6 }'
Number of CPU cores: cat/proc/cpuinfo | grep "model name" | wc-l

II. View memory information

1. The main configuration file is/proc/cpuinfo

MemTotal: 7940760 kB
# All available RAM size (that is, physical memory minus some reserved bit and kernel binary code size)
MemFree: 7093480 kB
# The Sum of LowFree and HighFree, with unused memory kept by the system
Buffers': 17484 kB
# Used to buffer the file size
Cached: 65940 kB
# The size of the memory used by the cache memory (equal to diskcache minus SwapCache ).
SwapCached: 0 kB
# Size of swap space used by cache memory
Active: 596128 kB
# The page file size of the buffer or high-speed buffer in active use is not moved for other purposes unless necessary.
Inactive: 61800 kB
# The size of page files in infrequently used buffering or high-speed buffer storage may be used in other ways.
Active (anon): 574780 kB
The size of page files in active buffer or high-speed buffer memory will not be moved for other purposes unless necessary.
Inactive (anon): 52 kB
# The size of page files in infrequently used buffering or high-speed buffer storage may be used in other ways.
Active (file): 21348 kB
Inactive (file): 61748 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 8290296 kB
# Total swap space size
SwapFree: 8290296 kB
# Size of swap space not used
Dirty: 12 kB
# The size of the memory waiting to be written back to the disk.
Writeback: 0 kB
# The memory size that is being written back to the disk.
AnonPages: 574516 kB
# Memory size of unmapped pages
Mapped: 15728 kB
# Device and file ing size.
Shmem: 324 kB
#
Slab: 86972 kB
#
SReclaimable: 16964 kB
# The size of the kernel data structure cache can reduce the consumption caused by memory application and release.
SUnreclaim: 70008 kB
# Unrecoverable Slab size (SUnreclaim + SReclaimable = Slab)
Kernelstacks: 1232 kB
#
PageTables: 11548 kB
# Manage the size of the index table on the memory page.
NFS_Unstable: 0 kB
# Unstable page table size
Bounce: 0 kB
#
WritebackTmp: 0 kB
#
CommitLimit: 12260676 kB
#
Committed_AS: 4491044 kB
#
VmallocTotal: 34359738367 kB
# Vmalloc virtual memory size
VmallocUsed: 191488 kB
# The used virtual memory size.
VmallocChunk: 34359541816 kB
#
Hardware0000upted: 0 kB
#
AnonHugePages: 317440 kB
#
HugePages_Total: 0
#
HugePages_Free: 0
#
HugePages_Rsvd: 0
#
HugePages_Surp: 0
#
Hugepagesize: 2048 kB
#
Directmap4 kB: 14336 kB
#
DirectMap2M: 2058240 kB
#
DirectMap1G: 6291456 kB
#

2. Common commands

Simple memory information: free-m
View remaining memory: free-m | sed-n'/Mem/p' | awk '{print $3 }'
3. View the motherboard information

1. View the motherboard information

You can use the dmidecode command to view the tool. If the tool is not installed, it may fail to be executed. You can use the following command to install the tool:

Yum install dmidecode-y
2. Common commands

Motherboard Information: dmidecode | grep-A8 "System Information $"
Memory information: dmidecode | grep-A30 "Memory Device"
Memory slots: dmidecode | grep "Memory Device" | wc-l
4. View hard disk information

1. View hard disk partition information

The command details are as follows:

[Root @ localhost ~] # Fdisk-l
Disk/dev/sda: 1000.2 GB, 1000204886016 bytes
# Specify the disk size of/dev/sda as 1 TB
255 heads, 63 sectors/track, 121601 cylinders
#255 meeting items, 63 sectors, and 121601 Magnetic columns
Units = cylinders of 16065*512 = 8225280 bytes
# The capacity of each magnetic column is 8225280/1024/1024 = 7.85 M
Sector size (logical/physical): 512 bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/Dev/sda1 1 121602 976762583 + ee GPT
Partition 1 does not start on physical sector boundary.

2. View hard disk partition mounting information


I like to use df-h for details.

[Root @ localhost ~] # Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sda4 909 GB 9.9G 853G 2%/
Tmpfs 3.8G 0 3.8G 0%/dev/shm
/Dev/sda2 194 M 27 M 158 M 15%/boot
/Dev/sda1 200 M 260 K 200 M 1%/boot/efi
# File system size usage available size usage mount point

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.