Purpose: Import the data of the iostat instruction into the file Iostat.dat , and then pour the iostat data into the database by SqlldrStep one:u1/tiger The user to build the table IostatCREATE TABLE Iostat (device varchar), TPS float (mb_read_s), mb_wrtn_s float (), Mb_read float, mb_ Wrtn Float (20));Step Two: Create a source data fileIostat–md/dev/sda2 >/oracl
When I see the CPU time of I/O waiting time is very high, the first thing to check is whether the machine is using a lot of swap space, because the speed of hard disk operation is much lower than RAM. So when the system is running out of memory, start using swap space. The performance of the system can be severely impacted.No matter what you want to access the hard disk operation is finished with the hard disk I/O exchange. So, the first step in troubleshooting is to see if the memory is exhaust
Iostat is an abbreviation for I/O statistics (input/output statistics) to dynamically monitor the system's disk operation activityiostat[parameters [TIME] [number]With Iostat, it is convenient to view the activity of CPU, network card, TTY device, disk, CD-ROM and so on, load information
-C Display of CPU usage
-D Display disk usage
-K displays in kilobytes
-m displays in units of M.
There is a performance problem with the Linux system. In general, we can check the initial location problem by Top.iostat,vmstat and other commands. Among them, Iostat can provide us with rich IO status data.$ iostat-x-1AVG-CPU:%user%nice%system%iowait%steal%idle10.43 0.00 1.51 1.51 0.00 86.56device:rrqm/s wrqm/s r/s w/s rkb/s wkb/s avgrq-sz avgqu-sz await r_await w_await SVCTM%utilSDA 4477.00 9.00 951.00 1
Before summarizing uptime and the free command, continue today to summarize the iostat. Leave a note for yourself. At the same time also want to be useful to everyone.Version number information:Sysstat version 9.0.4(C) Sebastien Godard (Sysstat Basic use: Iostat [-c] [-d] [-n] [-n] [-h] [-K |-m] [-t] [-v] [-X] [-z] [device [...] | ALL] [-p [device [,...] | ALL] [Inter-val [Count]]
[-c]: Output CPU stati
Iostat: For output CPU and disk I/O-related statisticsFirst, the command format:iostat[parameters [TIME] [number][[Email Protected]_a ~]# iostat 2 4 displays CPU and disk usage information 4 times every two seconds.]Linux 2.6.32-573.el6.x86_64 (nginx_a) January 06, 2018 _x86 -(4 CPU)AVG-CPU:%user%nice%system%iowait%steal%idle0.03 0.00 0.13 0.03 0.00 99.81Device:tps blk_read/s blk_wrtn/s Blk_read Blk_wrtnSCD
Linux system has a performance problem, generally we can use top, iostat, free, vmstat and other commands to view the initial positioning problems. Iostat can provide us with rich IO status data.1. Basic use1 TenThe parameter-D indicates that the device (disk) usage status is displayed; k Some columns that use block are forced to use kilobytes; 1 10 indicates that the data is refreshed every 1 seconds and i
Original Address:CentOS Monitoring Tools Sar,iostat
Author:Every day down
Yum-y Install Sysstat
Whereis SAR
Whereis Iostat
You can see the relevant commands
If you install with RPM package under Redhat, you can go to http://rpmfind.net/to find the Sysstat RPM package.
Also attached: Linux disk IO View related commands and instructions
From:http://blog.chinaunix.net/u3/93062/showart_1934431.html
############
Http://www.php-oa.com/2009/02/03/iostat.html
I've never used this parameter before. Now seriously study the Iostat, because there is just one important server pressure high, so put it up to analyze. The next one is IO, a server with too much pressure.
1 2 3 4 5 6 7 8
$iostat-X 1 Linux 2.6.33-fukai (fukai-laptop) _i686_ (2 CPU) avg-cpu:%user% nice%system%iowait%steal%idle nbsp; 5.47 0.50 8
After a long period of monitoring, found Iostat in the%util high, has been in 98% up and down, indicating that the bandwidth occupancy rate is highly, encountered a bottleneck.and read and write speed is very slow, after troubleshooting, found that the HBA card problems, after replacement, with the DD if command test, the disk read and write speed has been more than 10 times times the promotion.But after replacing the HBA card, although read and write
Install sysstat using iostat and sar. The main Commands provided by the linux sysstat toolkit are as follows: the last two parameters of iostat mpstat sarsar are generally the statistical information of the CPU usage output by interval count1 and sar-u 1 5, which is output once per second, total output 100 times 17: 06 minutes 01 seconds CPU % user % nice % system % iowait % idle 17:06:02 all 1.27 0.00 0.51
of data written to the device (drive expressed) per second, Kb_read: Total amount of data read, KB_WRTN: Total amount of data written ; These units are kilobytes.The initial value is large because the cumulative read and write volume is displayed.2,iostat-x parameters, viewing device usage (%util), Response time (await)650) this.width=650; "height=" 332 "src=" http://b378.photo.store.qq.com/psb?/V11JpMrT3dJHqc/ qudmzgyomo8fwxdo8hqlwmmmkmcffo89mkuvvbm
.
2, Iostat
As with Vmstat, the first line of reports shows the average since the system started. rrqm/s and wrqm/s Merge read and write requests per second. "Merged" means how many logical requests the operating system takes from the queue to merge into a single request to the actual disk. r/s and w/s Read and write requests sent to the device per second. The number of slices read and written by Rsec/s and wsec/s per second. Game systems are
displaying CPU and I/O statisticsIostat statistics for all partitions showing CPU and I/O without parameters-C Display The CPU Utilization report.-D Display The device utilization reportLinux4.10.0- +-generic (Ubuntu) ,/ to/ ._x86_64_ (2CPU) Avg-CPU:%user% Nice%system%iowait%steal%Idle0.50 0.04 0.38 0.44 0.00 98.64Device:tps Kb_read/s kb_wrtn/s Kb_read kb_wrtnsda1.07 11.15 23.80 1007641 2150292AVG-CPU segment:%user: The percentage of CPU that is used to run at t
#define DISKSTATS "/proc/diskstats"By accessing the diskstats virtual file, get the IO read and write data for the current period, and then countvoid Read_diskstats_stat (int curr){FILE *FP;Char line[256], Dev_name[max_name_len];Char *dm_name;struct
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.