Linuxloadavg notes Finishing

Source: Internet
Author: User

1, in the Linux system, uptime, W, toptload and other commands will have the system average load loadaverage output, the system average load is defined as the running queue in a specific time interval of the average process tree. A process is located in the run queue if the following conditions are true:

-It is not waiting for the I/O operation results

-It does not actively enter the waiting state (that is, no ' wait ' is invoked)

-Not stopped (for example: waiting to terminate)

In general, as long as the current number of active processes per CPU is not greater than 3 then the performance of the system is good, if the number of tasks per CPU is greater than 5, then the performance of the machine is a serious problem.

---------------------------------------------------

W-show who logged Onand what they are doing

Top-display Linux Tasks

Tload-graphicrepresentation of System load average

Uptime-tell how longthe system has been running

---------------------------------------------------

2. UNIX system-defined process length of processing time for all processor cores plus the time the thread waits in the queue

3, "How much of the core is how many load" rule: in multi-core processing, your system should not mean more than the total number of cores.

4, "core core" law: the core distribution in several separate physical processing is not important, in fact, two quad-core processor equals four dual-core processors equals eight single processors. So, it should have eight processor cores.

5,

[22~#]uptime

11:30:10 up, 2 min, 1 user, load average:0.02, 0.01, 0.00

0.02, 0.01, 0.00 Description of the system load mean for last minute, last five minutes, and final 15 minutes respectively

These three values represent the number of processes that are blocked in the run queue over a period of time. The time fragment provided by the system is the load average:1min,5min,15min.

Blocked processes: Processes that are generally waiting for system resources to continue to run.

6,

Get System processor is a few cores?

[22~#]grep ' model name '/proc/cpuinfo | Wc-l

Or: Cat/proc/cpuinfo

7,

[22~#]cat/proc/loadavg

0.00 0.00 0.00 1/1383125

1/138: The molecule is the number of processes running, the denominator is the total number of access

3125: The most recently run Access ID

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.