Install sysstat and use iostat and sar.

Source: Internet
Author: User
Install sysstat using iostat, sar, indicator meaning the main command provided by the linuxsysstat toolkit: iostatmpstatsarsar the last two parameters are generally intervalcount1, sar-u15 output CPU usage statistics, output once per second, output 100 times in total... install sysstat using iostat and sar. The main commands provided by the linux sysstat toolkit are as follows: the last two parameters of iostat mpstat sarsar are generally the statistical information of the CPU usage output by interval count1 and sar-u 1 5, which is output once per second, total output 100 times 17: 06 minutes 01 seconds CPU % user % nice % system % iowait % idle 17:06:02 all 1.27 0.00 0.51 1.01 97.2217 hours 06 minutes 03 seconds all 0.00 0.00 0.00 0.00 100.0017 hours 06 Minute 04 second all 0.00 0.00 0.00 0.00 100.0017 hour 06 minute 05 second all 0.25 0.00 0.00 0.00 99.7517 hour 06 minute 06 second all 0.00 0.00 0.00 0.51 Average: all 0.30 0.00 0.10 0.30 99.29CPU all indicates that the statistical information is the average of all CPUs. % User shows the percentage of total CPU usage at the user level (application. % Nice is displayed at the user level as a percentage of the total CPU usage for nice operations. % Percentage of the total CPU usage of system at the core level (kernel. % Iowait displays the percentage of CPU usage for waiting for I/O operations. % Percentage of virtual CPUs waiting for the steal hypervisor to provide services for another virtual process. % Idle shows the percentage of CPU usage in idle time. Tips: If % iowait is too high, it indicates that the hard disk has an I/O bottleneck. If % idle is too high but the system response is slow, it may be that the CPU waits for memory allocation, in this case, the memory capacity should be increased. if the value of % idle is lower than 10, the CPU processing capability of the system is relatively low, indicating that the most important resource to be solved in the system is the CPU. 2. sar-B 1 5 displays the I/O and transfer rate Statistical Information 17: 09: 07 tps rtps wtps bread/s bwrtn/s 17:09:08 3.12 3.12 0.00 25.00 0.0017 minute 09 second 89.58 6.25 83.33 141.67 Hour 09 minute 10 second 733.3317 42.71 9.38 33.33 141.67 Hour 09 minute 11 second 600.0017 2.11 2.11 0.00 16.84 Hour 09 minute 12 second 0.0017 1.04 0.00 1.04 0.00 175.00 Average: 27.77 4.18 23.59 65.14 302.30tps total I/O transmission of physical devices per second rtps total amount of data read from physical devices per second wtps total amount of data written to physical devices per second bread/s the amount of data read from a physical device, the unit is block/s bwrtn/s, which is sent to the physical device per second. Data Volume written, the unit is block/s 3. the number of processes created by sar-c per second is 15 hours 10 minutes 01 seconds 1.3515 minutes 20 minutes 01 seconds 1.0115 minutes 30 minutes 01 seconds 0.5915 minutes 40 minutes 01 seconds 1.3515 hour 50 minute 01 second 0.9916 hour 00 minute 01 second 0.5716 hour 10 minute 01 second 1.3316 hour 20 minute 01 second 1.0216 hour 30 minute 01 second 0.5716 hour 40 minute 01 second 1.3316 hour 50 minute 01 seconds 1.0717 hours 00 minutes 01 seconds 0.5617 hours 10 minutes 01 seconds 1.324, sar-n DEV 1 5 output network device status Statistics 17 hours 13 minutes 42 seconds IFACE rxpck/s txpck /s rxbyt/s txbyt/s rxcmp/s txcmp/s rxmcst/s 17:13:43 eth1 3669.70 4156.57 368362.63 2747714.14 0.00 13 minutes 44 seconds eth1 0.00. 11 2585.15 289661.39 701461.39 0.00 0.00 hour 13 minute 45 seconds eth1 0.0017 3746.00 4077.00 415178.00 2605720.00 0.00 0.00 hour 13 minute 46 seconds eth1 0.0017 3096.00 3241.00 327916.00 1597320.00 0.00 hour 13 minute 47 seconds eth1 0.00 2834.00 312632.00 957903.00 0.00 0.00 0.00 Average: eth1 3220.20 3375.60 342592.60 1717931.20 0.00 0.00 IFACE network device name rxpck/s total number of packets received per second txpck/s total number of packets transmitted per second rxbyt/s received per second (byte) total txbyt/s bytes transmitted per second (byte) total Total number of rxcmp/s received packages per second total number of txcmp/s transferred packages per second total number of rxmcst/s received multicast (multicast) total number of packets 5, sar-q 1 5 output process queue length and average load status Statistics 17 hours 16 minutes 28 seconds runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15 17:16:29 0 160 0.26 0.0317 hours 16 minutes 30 seconds 0 160 0.26 0.11 hours 16 minutes 31 seconds 0 0.0317 160 0.24 0.11 0.0317 hours 16 minutes 32 seconds 0 160 0.24 0.11 0.0317 hours 16 minutes 33 seconds 0 160 0.24 0.11 0.03 Average: 0 160 0.25 0.11 0.03runq-sz number of processes and threads in the plist-sz process List Average System load for the last minute of the ldavg-1 (System load average) ldavg-5 average system load over 5 minutes ldavg-15 average system load over 15 minutes 6. sar-r output memory and swap space Statistics 7. iostattps per second physical device I/O transfer total. Total amount of data read by Blk_read, in blocks. Total amount of data written by Blk_wrtn, in blocks. The total amount of data read by kB_read, in KB. Total data written by kB_wrtn, in KB. The total amount of data read by MB_read, in MB. Total data written by MB_wrtn, in MB. The volume of data that Blk_read/s reads from the drive per second. the unit is block/s. The volume of data written to the drive per second by Blk_wrtn/s. The unit is block/s. KB_read/s: the amount of data read from the drive per second. unit: KB/s. KB_wrtn/s data volume written to the drive per second, measured in KB/s. The data volume read from the drive per second in MB/s. Data Volume written to the drive per second in MB_wrtn/s, measured in MB/s. The number of read requests sent to the device per second after rrqm/s merges read requests. Number of write requests sent to the device per second after wrqm/s merges write requests. The number of read requests sent by r/s to the device per second. The number of write requests sent to the device per second by w/s. The number of sectors that rsec/s reads from the device per second. Number of sectors written to the device per second by wsec/s. The amount of data that rkB/s reads from the device per second, measured in KB/s. The amount of data written to the device per second by wkB/s. The unit is KB/s. The amount of data read from the device per second in the unit of MB/s. The amount of data written to the device per second by wmb/s. the unit is MB/s. Avgrq-sz average size of requests sent to the device, in the unit of sector. Avgqu-sz average queue length of requests sent to the device. Average execution time of await I/O requests. This includes the time when the request is sent and executed. The unit is milliseconds. Average execution time of the I/O requests that svctm sends to the device. The unit is milliseconds. % Percentage of CPU time consumed when I/O requests are sent to the device. Used to display the bandwidth usage of a device. When the value is close to 100%, the bandwidth of the device is full.
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.