Analysis of linux Operating Performance

Source: Internet
Author: User

1. Analysis of cpu load

Mpstat-P ALL

Linux 3.11.0-rc3 08/13/2013 _ i686 _ (4 CPU)

At 02:41:45 CPU % usr % nice % sys % iowait % irq % soft % steal % guest % idle
02:41:45 all 4.17 0.00 1.67 1.65 0.00 0.01 0.00 0.00 92.49
02:41:45 PM 0 4.27 0.00 2.53 2.72 0.00 0.03 0.00 0.00 90.45
02:41:45 pm 1 4.30 0.00 1.25 1.15 0.00 0.01 0.00 0.00 93.29
02:41:45 PM 2 4.25 0.00 1.70 1.61 0.00 0.00 0.00 0.00 92.43
02:41:45 PM 3 3.88 0.00 1.21 1.12 0.00 0.00 0.00 0.00 93.78

The result is similar to that on top. It mainly depends on whether each CPU is balanced and which type occupies more CPU.

2. View Io read/write with iostat

Linux 3.11.0-RC3 08/13/2013 _ i686 _ (4 CPU)

Avg-cpu: % user % nice % system % iowait % steal % idle
4.06 0.00 1.66 1.49 0.00 92.79

Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
Sda 7.96 146.83 105.66 3458161 2488524
Dm-0 6.37 99.75 74.57 2349414 1756256
Dm-1 0.16 0.05 0.59 1260 13912
Dm-2 3.00 84.72 40.27 1995329 948588
Dm-3 2.97 14.95 33.70 352201 793756

In this way, you can see which disk has more reads and writes.

3. View network traffic

Sar-N Dev 1 20

Linux 3.11.0-RC3 08/13/2013 _ i686 _ (4 CPU)

03:35:41 iface rxpck/s txpck/s rxkb/s txkb/s rxcmp/s txcmp/s rxmcst/s
03:35:42 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00
03:35:42 PM virbr0 0.00 0.00 0.00 0.00 0.00 0.00 0.00
03:35:42 eth0 4.00 5.00 0.54 1.94 0.00 0.00 0.00

The sending and receiving information of the specific network port.

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.