Linux Common Instructions---system load

Source: Internet
Author: User

To view Linux system load:

http://www.lupaworld.com/ article-217011-1.html
In the Linux system, uptime, top and other commands will have the output of the load average on average.

- It is not waiting for the result of the I/O operation
-it does not actively enter the waiting state (That is, you did not call ' wait ')
-not stopped (ex: Waiting to terminate)

example:

[[email protected] init.d]# uptime 7:51pm up 2 days, 5:43, 2 users, load average:8.13, 5.90, 4.94


The final content of the command output represents the average number of processes running in the queue in the past 1, 5, 15 minutes.
  
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 this machine is a serious problem. For the above example, assuming that the system has two CPUs, the current number of tasks per CPU is: 8.13/2=4.065. This indicates that the performance of the system is acceptable.
Now the situation is: Flash upload method After sending processing instructions, Flash will continue to send the request to see if the conversion is completed, the proposal does not exceed 50 pictures, or the conversion time is too long, Flash will send a lot of requests come over, if the control of the interval, the interval to adjust a little, The number of times that the user waits has multiplied accordingly.

View system cores Cat/proc/cpuinfo |grep ' processor ' |wc-l
grep ' physical id '/proc/cpuinfo | Sort | Uniq | Wc-l

Linux How to view CPU, memory, machine model, NIC informationLinux View CPU performance and operating status instructions Mpstat,vmstat,iostat,sar,top

Linux Common Instructions---system load

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.