Tags: iostatFirst, IostatThe background is that we are doing a lot of data update operations to see the status of the disks.We look at disk IO, and this is mostly done through the Iostat command.
-D indicates that the display device (disk) Usage status, removed can be displayed with the CPU status;-K Some columns that use block units are forced to use kilobytes, instead of-m (shown in megabytes);1 5 indicates that the data display is refreshe
, real to deep learning, Just understand is a better than Windows operating system, and is open source, perhaps beginners mistakenly think open source is free, wrong! This can be said in turn (free is open source). He is a free and open-source Unix-like operating system that anyone can freely use, completely free of any restrictions, so that 60% of the world's people are using it. Today, no matter where you are, it is impossible to use Linux, according to statistics, more than 2 billion people c
of the word "system", not to mention Linux, it is a face, until the teacher talked about the Linux system, the heart has a little concept, only know that it is able to run the high-level "software" on the computer, real to deep learning, Just understand is a better than Windows operating system, and is open source, perhaps beginners mistakenly think open source is free, wrong! This can be said in turn (free is open source). He is a free and open-source Unix-like operating system that anyone can
IO. sh # iostat is used to view disk activity statistics # display the load of all devices r/s: The number of read I/O devices completed per second. That is, rio/s; w/s: the number of write I/O devices completed per second. That is, iostat such as wio/s # refresh the disk IO information every 2 seconds, in addition, iostat is displayed three times at a time.
First, check the hard disk read speedCommand: Hdparm-t/dev/sda5Printed: Timing buffered disk reads:254 MB in 3.01 seconds = 84.34 mb/secDescription: Be able to specify which hard disk to query for!Second, find the most consumption of iowait processOperation Steps:1./etc/init.d/syslog Stop2. Echo 1 >/proc/sys/vm/block_dump3. DMESG | Egrep "read| Write|dirtied "| Egrep-o ' ([a-za-z]*) ' | Sort | uniq-c | Sort-rn | HeadDon't forget to turn off Block_dump and start the syslog when you're done.4. ech
buffers Cached 3 Mem: 1006988 17 0 96 72 4 -/+ buffers/cache: 819 1865 Swap: 2015 1 2014 The 3rd line represents the data from a system perspective, where used contains buffers and cachedThe 4th line is the data represented from the application's perspective, used is the memory occupied by the real applicationLine 3rd used = 4th row of used+ 3rd row of buffers and cachedThe 5th Behavior Swap area information, respectively, is the total amount of the exchange, the amount of usage (us
Linux Performance Tuning Command essenceTime: 2010-6-23First, see the hard drive read speedCommand: Hdparm-t/dev/sda5Printed: Timing buffered disk reads:254 MB in 3.01 seconds = 84.34 mb/secDescription: Can specify which hard disk to query the OH.Ii. finding the most iowait-consuming processOperation Steps:1./etc/init.d/syslog Stop2. Echo 1 >/proc/sys/vm/block_dump3. DMESG | Egrep "read| Write|dirtied "| Egrep-o ' ([a-za-z]*) ' | Sort | uniq-c | Sort-rn | HeadDon't forget to turn off Block_dump
complexity of the system is 4, it means that the machine has enough resources to handle the work it needs to do, of course, it is barely. In the same 4-core system, if the average complexity is 8, it means that the server system needs 8 cores to process the work to be done, but now there are only 4 cores, so it is overloaded. If the system displays a high average load, but the CPU usage of the system and user is low, you need to observe the IO wait (I/O wait ). In the linuc system, IO wait has
io.sh# #iostat是查看磁盘活动统计情况 # #显示全部设备负载情况 r/s: Number of Read I/O devices completed per second. That is, rio/s;w/s: The number of write I/O devices completed per second. That is, wio/s and other Iostat # #每隔2秒刷新磁盘IO信息, and 3 times per display Iostat 2 3# show the IO information of a disk iostat-d sda1# #显示tty和cpu信息
which disk is being written to
Find that disk is being written
The above top command shows I/O wait from the system as a whole but it does don't tell you what disk is being affected; For this we'll use the Iostatcommand.
The top command above describes an I/O wait as a whole, but it does not indicate which disk is affected and what disk is causing the problem, we have used another command Iostat command
$ ios
time interval between two outputs.
L Count: The number of times that the interval is specified according to "delay". The default is 1.
For example:
Vmstat 3
Indicates that the output information is updated every 3 seconds, the output is cycled, and CTRL + C stops the output.
Vmstat 3 5
Indicates that the output information is updated every 3 seconds, and the output is stopped after 5 times.
2. Iostat command
two outputs.
L Count: The number of times that the interval is specified according to "delay". The default is 1.
For example:
Vmstat 3
Indicates that the output information is updated every 3 seconds, the output is cycled, and CTRL + C stops the output.
Vmstat 3 5
Indicates that the output information is updated every 3 seconds, and the output is stopped after 5 times.
2. Iostat command
Iostat is a
The statistical relationship between await util in the disk partition lvm, lvmawait
Recent projects need to monitor the I/O loads of machines. When talking about I/O loads, the first two indicators are await util.Util: percentage of the time that the device processes IO requests in the past period of time.Await: The queuing time of a request in IOscheduler plus the processing time of the physical device (an IO request starts to be calculated when it is submitted from the general block device lay
io.sh# #iostat是查看磁盘活动统计情况 # #显示所有设备负载情况 r/s: Number of Read I/O devices completed per second. That is, rio/s;w/s: The number of write I/O devices completed per second. That is, wio/s and other Iostat # #每隔2秒刷新磁盘IO信息, and 3 times per display Iostat 2 3# shows the IO information of a disk iostat-d sda1# #显示tty和cpu信息
. For example, in front of this series, we discussed the importance of ensuring that the heap is not paged. The maximum heap size specified with the-XMX switch should be less than the total amount of physical memory installed on the system (shown by "Bootinfo–r" or "Lsattr-el sys0-a Realmem" For more such commands, see "AIX Commands you should Not leave home without ".Tools such as Topas and iostat can show the use of individual disks, but in most cas
application from the perspective of our work.1.3 Hard Drive View 1, view hard disk and partition information:fdisk -l2. Check the disk space usage of the file system:df -h3. Check the I/O performance of the hard disk (show once every second, show 5 times):iostat -x 1 5The Iostat is included in the package Systat and can be installed with the Yum-y install Systat.Parameters that are commonly followed:如%util
1)Cold and cold: Fever is the main symptomCold fear,Headache,Itchy throat, Poor health, too many sputum,Nose or streamQingting District, No sweat, thin white tongue coating, pulse float or float. We should choose anti-virus, xuanjicang, Mahuang zhixiao, xiao'er sizui and Shensu Lifei. Usage instructions or follow the doctor's advice. And take ginger, onion white Decoction as the reference. Note: Do not use sanjugan, yinqiao, lingqiao, and lianzhi.
(2)Wind and cold: Symptoms: mild to cold, seve
monitored. At the same time, make sure that the monitoring proxy can access the listening port 4949 of the munin-node service. Note: munin-node and Hardware monitoring only support MongoDB instances on the Linux platform. In Debian and Ubuntu systems:
sudo apt-get install munin-nodeIn centos, RedHat, and Fedora systems: you must first install the EPEL source.
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum install munin-node/etc/init.d/munin-node startchkco
, and these core tasks (i.e. processes) can be carried out only after the completion of disk IO or network IO. These processes use PS aux to view all in the "D" state, which is the non-disruptive sleep state.The discovery process is one thing to wait for IO to finish, and the reason for verifying high io Wait is another matter. Use "Iostat–x 1" to display the IO status of the physical storage device being used:[[Email protected]~]$
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.