A rough look at the two Linux performance analysis tools

Source: Internet
Author: User
Tags dmesg

Uptime-> query system load information


Run the uptime command to see the following:
uptime


650) this. width = 650; "src =" http://note.youdao.com/yws/public/resource/29f63834a2a22a00f307c2ed5764ec45/A316FA81ECD149259DBC3796FDB27DA9 "alt =" a%fa81e%9259dbc%fdb27da9 "/>


Separated by commas, we can see that the first section is
#16:03:53 => current system time # up => host running time #2 users => total user connections, non-logged-on users # load aerage => average system load-> average system load for 1 minute, 5 minutes, and 15 minutes # What is the average system load? The average system load refers to the average number of processes in the queue running at a specific time interval. # Its value indicates the number of processes waiting for CPU processing. If the CPU does not have time to process these processes, the load average value increases; otherwise, it decreases. # The best load average value is 1, indicating that each process can be processed immediately and no CPU cycles is lost. For single-CPU machines, either 1 or 2 is acceptable; for multiple-CPU machines, the load average value may be between 8 and 10.



Dmesg->Display boot Information



Run

dmesg

# The dmesg command is mainly used to display kernel information. Dmesg can be used to effectively diagnose hardware faults or add hardware faults. # Use dmesg to determine which hardware is installed on your server. Every time the system restarts, the system checks all hardware and records the information.

Output Information


650) this. width = 650; "src =" http://note.youdao.com/yws/public/resource/29f63834a2a22a00f307c2ed5764ec45/2A0857985DE3450999B415B1B211BE86 "alt =" 2a0857985de3450999b450b1b211be86 "/>


Because dmesg outputs a long amount of information, we can use less to view it. Why not use more?

Because more does not support turning pages and does not need to be used ····


dmesg | less

Of course, this command can also be used with various commands to analyze information. Here we will not talk about it one by one, but we will write it out when we use it ~


This article from the "pure natural otaku" blog, please be sure to keep this source http://tianranzhai.blog.51cto.com/7235933/1304898

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.