Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of CentOS performance Diagnostic tool Command set

2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shares a sample analysis of the CentOS Performance Diagnostic Tool command set. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

#View current system load

uptime

#View system status and system resource usage for each process

top

#Visualize CPU usage

htop

#View load information for each CPU

mpstat -P ALL 1

#View disk IO statistics every 1 second

iostat -xkdz 1

#View virtual memory usage information every second

vmstat 1

#View memory usage statistics

free

#View network usage information

nicstat -z 1

#Tools like vmstat for display optimization

dstat 1

#View system activity status, such as system paging statistics, block device IO statistics, etc.

sar

#Network Connection Status View

netstat -s

#Process Resource Usage Information View

pidstat 1

pidstat -d 1

#View system call information of a process-p followed by process id, -tttT system call time after process system

strace -tttT -p 12670

#Statistics IO device input and output system call information

strace -c dd if=/dev/zero of=/dev/null bs=512 count=1024k

#tcpdump View network packets

tcpdump -nr /tmp/out.tcpdump

#Read/write event information statistics of block devices

btrace /dev/sdb

#iotop View IO operation statistics for a process

iotop -bod5

#slabtop View usage information for kernel slab memory allocator

slabtop -sc

#System parameter settings

sysctl -a

#System performance metrics statistics

perf stat gzip file1

#CPU Activity Status View

perf record -a -g -F 997 sleep 10

Thank you for reading! About "CentOS performance diagnostic tool command set sample analysis" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report