Linux Server Specs View

Source: Internet
Author: User

Before the performance test, you need to determine the server specifications. Below is a summary of how to view Linux CPU and other specifications

1. View the number of server CPUs

1) View the number of physical CPUs:

Cat/proc/cpuinfo |grep "Physical id" |sort |uniq|wc-l

4

2) View each CPU with several cores

Cat/proc/cpuinfo |grep "Cores" |uniq

4

3) View the number of logical CPUs:

Cat/proc/cpuinfo |grep "Processor" |wc-l 16

I this server should have 4 physical CPUs, each physical CPU has 4 cores, does not support hyper-threading, so a total of 16 logical CPUs.

Description: Under Linux, the CPU hardware information is stored in the/proc/cpuinfo file. A physical CPU can have multiple cores (core), plus Hyper-Threading Technology (HT), which can logically have multiple CPUs. Do not turn on Hyper-Threading case: Number of logical CPUs = number of physical CPUs * number of cores. When Hyper-threading is turned on: number of logical CPUs = number of physical CPUs * Number of cores * *. Note: The CPU viewed with the top command under Linux is the number of logical CPUs.

To view CPU frequency:

Cat/proc/cpuinfo |grep Mhz|uniq

2. View Memory Specifications

[Email protected] logs]# free-m

Total used free shared buff/cache available

mem:32011 29460 2282 23 268 2117

swap:32767 7603 25164

Available memory =free+buff+cached =2282+268+2117=4667m=4.5g

Swap is a swap partition, typically large in memory and set when the OS is installed.

Linux Server Specs View

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.