Build a highly available Linux server

Source: Internet
Author: User

1. Display the number of physical CPUs: Cat/proc/cpuinfo | grep "Physical ID" | Sort | Uniq | Wc-1

2. Display the number of cores in each physical CPU (that is, the number of nuclei): Cat/proc/cpuinfo | grep "CPU Cores" | Uniq

3, display the number of logical CPUs: Cat/proc/cpuinfo | grep "Processor" | Wc-1

Number of physical CPUs X number of cores = number of logical CPUs (if not equal, your server CPU supports Hyper-Threading technology.) When we configure the application of the server, the number of logical CPUs of the server should prevail. )

4. Check the memory usage of Linux server: free-m

5. View hard disk and partition information: Fdisk-l

6. Check the disk space usage of the file system: Df-h

7. View the hard disk's I/O performance: iostat-d-x-k 1 10

8. Check the size of a directory in the Linux system: Du-sh

View the top 10 files or directories in the system that occupy the most space: Du-cks * | Sort-rn | Head-n 10

9. Viewing average load: Uptime (top dynamic display content)

Build a highly available Linux server

Related Article

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.