Linux System Performance analysis tool and navigate to specific processes

Source: Internet
Author: User
Tags cpu usage python script


"Involving Tools"


Top synthesis, partial CPU and memory

Dstat Integrated, partial disk

Pidstat

Iostat Disk IO Global

Iotop disk IO Accurate to process

Iftop Network, Fact refresh

SS replaces Netstat and is faster





"View CPU status-design involves metrics"

1 CPU Usage: User system

2 CPU Cumulative usage duration

3 Interrupt Context Switch, etc. (not many use)


CPU View tool Top Dstat


Top


Options

-bn1

-C View full command

TOP-BN1C one record at the end and Print command all commands


Instructions

1 complete list of all CPU cores

P sort by CPU high and low

M sort based on memory height

T Sort by run time

Highlight of Row B

Highlight of x Column

SHIFT + < or > change the highlighted sort column

H Help Information



Dstat (Python script)

DSTAT-LCM--TOP-CPU




"View memory status-design related indicators"

Focus Point:

Whether to use swap memory

How much memory space is consumed by each process

Top

Free

Dstat Lcmd--top-mem



"View disk status-design involves metrics"


Tip: Disk performance bottlenecks are more difficult to exclude, do not want the CPU and memory as more obvious look out.


Indicators of concern

1 read/write volume/s dstat iotop pidstat accurate to process

2 delay time per read and write Iostat (global)


Read read and write volume Iostat-x 1

See the delay effect is generally used Dstat (unit comparison of human nature finishing)

View that process using IO up to Iotop

Total DISK read:7.02/s | Total DISK write:3.12/s



Several reference values in the Iostat:

SVCTM < await (the same waiting time is repeatedly calculated). If SVCTM is closer to Awati, the IO has almost no waiting time. If the await is far greater than SVCTM, the IO queue is too long.


Await: The average time to wait (in milliseconds) per Device IO operation. Delta (ruse+wuse)/delta (Rio+wio)

SVCM: The average time per Device IO operation Service (milliseconds) is counted as an await

%util The amount of time in a second for an IO operation, or how much time in a second the IO queue is non-empty.








This article is from "Swallow Lie triple" blog, please be sure to keep this source http://cuidehua.blog.51cto.com/5449828/1867088

Linux System Performance analysis tool and navigate to specific processes

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.