Linux disk I/O status checks the performance of the Linux system. Generally, you can use top. iostat, vmstat, and other commands to locate the problem. Iostat can provide us with a wealth of IO status data. Result Analysis of www.2cto.com iostat [kefu @ SZ-8 linux] $ iostat-x-k Linux 2.6.18-128. el5_cyou_1.0 (SZ-8.30)
Installation Method Yum-y install httpd when multiple similar software are installed, Yum-y install httpd * Yum-y install httpd PHP-Gd mysql when a software is uninstalled Yum update php
Yum-y remove httpd when multiple similar software are uninstalled, Yum-y remove httpd * when multiple non-similar software are uninstalled Yum-y remove httpd PHP-Gd mysql there is also a great usage if I want to run the iostat command to view the st
usage
The system is running, because the physical memory is often insufficient, you need to use the virtual memory to solve this problem.
By sharing the virtual memory between processes, the system seems to have more memory than the actual memory. The Linux system supports Virtual Memory, that is, the disk is used as the Ram Extension to expand the available memory.
(1) monitors memory usage in real time in Linux systems. Generally, the free command is used to monitor memory usage.
(2)
"If your Linux server suddenly has a sudden increase in load, alarm text messages quickly explode your phone, how to find out the Linux performance problem in the shortest time?" Look at the Netflix performance Engineering team's blog post to diagnose machine performance issues with 10 commands in a minute.OverviewYou can get a general idea of system resource usage within 1 minutes by executing the following command.
Uptime
DMESG | Tail
Vmstat 1
Mpstat-p all 1
Pidstat 1
machine is running stably and smoothly. If the load exceeds 16, it indicates that the server is running with some pressure.Under the top command, press SHIFT + "C" to sort the process according to CPU utilization from large to small, press shift+ "P", then sort the process by memory usage from large to small, it is easy to locate which services consume higher CPU and memory.Just having the top command is not enough, because it only shows CPU and memory usage, and there is no clear display of--i
saturation of these commands (they are all easy to understand), you can then optimize the resources. Saturation refers to the load of a resource that exceeds the limit it can handle. Once saturated, it is usually exposed to the length or wait time of the request queue.
Uptime
DMESG | Tail
Vmstat 1
Mpstat-p all 1
Pidstat 1
IOSTAT-XZ 1
Free-m
Sar-n DEV 1
Sar-n tcp,etcp 1
Top
Some of these commands requi
pagingLinux system performance analysis commands or toolsCommon commands:Dstat,vmstat, SAR, Iostat, netstat, free, PS, top, etc.Performance analysis and diagnostic tools
Using Vmstat, SAR, iostat to detect whether it is CPU, disk, memory bottleneck
Use free, vmstat detection is memory, IO bottleneck
Detect disk I/O bottlenecks with Iostat
Us
mpstat iostat SAR kill Chkconfig LastSystem security-related commands (13)passwd su sudo umask chgrp chmod chown chattr lsattr PSWhoAmIView System User Login Information command (6)W who's users last Lastlog fingersView hardware-related commands (6)Ethtool Mii-tool Dmidecode DMESG LspciOther (14)Chkconfig Echo Yum Watch alias Unalias date Clear History Eject time Nohup NC xargsAdvanced Linux commands for monitoring physical componentsMemory: Top free
The IO performance of a disk is an important indicator of the overall performance of the computer. Linux provides the IOSTAT command to obtain disk input/output (i.e. IO) statistics, and Windows provides a WMI interface that allows you to write a simple script to get the functionality that is equivalent to Iostat.
1, Linux under the Iostat command
Super Utility website: http://man.linuxde.net/Related: https://linux.cn/Original:http://www.infoq.com/cn/news/2015/12/linux-performance?utm_campaign=infoq_contentutm_source=infoq Utm_medium=feedutm_term=globalIf your Linux server suddenly has a sudden increase in load, warning text messages quickly explode your phone, how to find out the Linux performance problem in the shortest time? Look at the Netflix performance Engineering team's blog post to diagnose machine performance issues with 10 comm
Tags: io command free command PS command netstat tcpdump seven weeks two sessions (March 20)10.6 Monitoring IO Performance10.7 Free Command10.8 PS Command10.9 Viewing network status10.10 Linux under Grab bag Extended TCP three-time handshake four times wave http://www.doc88.com/p-9913773324388.htmlTshark several usages: http://www.aminglinux.com/bbs/thread-995-1-1.html10.6 Monitoring IO PerformanceTwo commands for the status of a diskIostat-x disk usageIotop Disk usageIn our operations, disk
number of I/O operations that can be performed on the driver layer of the LVM device is limited by the hdisk cache. On the SDD layer, if the qdepth_enable attribute of the DPO device is set to yes, an I/O queue is created, but some versions cannot set a queue. No queue processing is performed before sddpcm sends Io to the drive layer of the disk device.Hdisk uses the queue_depth parameter to set the maximum number of response IoWhile the FC adaptation layer parameter is num_cmd_elems. The disk
Set up performance monitoring Spotlight in Centos
The company wants to perform a stress test with a Linux server and Centos6.5. To intuitively display the system performance and better analyze the server, we need to build a monitoring system. Let's go straight to the topic.
First, a Linux Server: Centos6.5
Second, install the monitoring software client on my laptop
Software link:
Link: http://pan.baidu.com/s/14Vwlw password: tmw4
Configure spotlight login users. Note that by default, spotlight
interactive real-time linux Process Monitoring Tool. It is very similar to the top command, but it has more features, such as user-friendly management of processes, shortcut keys, vertical and horizontal display processes and so on. Htop is a third-party tool that is not included in the linux system. You need to install it using the YUM package management tool. For more information about installation, see the following.
#htop
Htop command example
For Htop installation, read: Install Htop in Li
Disk I/O performance is an important indicator to measure the overall performance of computers. Linux provides the iostat command to obtain disk input/output (I/O) statistics, while Windows provides the WMI interface, you can write a simple script to obtain functions equivalent to iostat.
1. Linux iostat command
Iostat
Zookeeper
Oradebug. sh: Here is an OS Information Collection script, which is stored on the computer and cannot be found next time. It is recorded here.
#! /Usr/bin/ksh######################################## ############################### Osdebug. sh## VARIABLESLOG = "$ HOME/osdebug _ 'date-u + '% h _ % d _ % Y _ % H. out ''"INTERVAL = 60NETSTAT = "/bin/netstat-ais"IOSTAT = "/usr/bin/iostat-x"VMSTAT = "/u
short period of time to view the trend of sub-system utilization. Vmstat often helps us know where to go when there are system problems.
Mpstat-this command is available on both Linux and Solaris. you can use it to view statistics on CPU utilization. Mpstat provides an option to view statistics of a specified CPU in a multi-processor system. Vmstat does not have this function.
Iostat-displays subsystem-related statistics more detailed than vmstat.
Sa
Install and uninstall software using the installation method of the Yum in CentOS install a software when installing yum-y install httpd installation of multiple similar software yum-y install httpd* installing multiple non-similar software yum-y install httpd PHP PHP-GD MySQL Uninstall a software yum-y remove httpd uninstall multiple similar software when yum-y remove httpd* unload multiple non-similar software yum-y remove httpd php php-gd MySQL There is also a non- Good usage if I want to exe
other statuses of each process, including the process ID, user name, priority, CPU and memory usage, and the command line that runs the top command when the process is running. the system automatically refreshes the status information every five seconds. Add the-d parameter to start www.2cto.com, for example, top-d 5, and refresh the top once every 5 seconds. after you press the following Button, the corresponding function will be available: space immediate refresh Display Information M sort by
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.