Iostat and top command

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Iostat and top command
# 1  
Old 06-05-2016
Iostat and top command

I am facing strange behaviour of iostat command and top command. where initially it is showing high utilization and after it is showing low utilization.

iostat command

Code:
avg-cpu: %user %nice %system %iowait %steal %idle
 73.60 0.01 23.93 0.92 0.00 1.54

 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
 sda 0.00 0.35 0.09 0.50 2.04 10.50 21.30 0.00 1.29 0.19 0.01
 sdb 0.04 3.07 0.27 4.12 8.20 73.39 18.62 0.00 0.69 0.18 0.08
 sdc 0.26 0.46 0.31 7.42 155.19 850.85 130.10 0.07 9.00 0.40 0.31
 sdd 0.00 0.00 2.40 1.00 5.73 1.01 1.98 0.00 0.38 0.37 0.13
 sdf 0.00 0.00 2.40 1.00 5.74 1.01 1.98 0.00 0.38 0.37 0.13
 sde 0.00 0.00 2.40 1.00 5.74 1.01 1.98 0.00 0.38 0.37 0.13
 sdg 0.00 0.01 10.20 4.58 529.39 159.60 46.63 0.01 0.84 0.45 0.67
 sdh 0.08 0.16 63.83 63.13 4792.88 1946.14 53.08 0.15 1.17 0.23 2.92
 sdi 0.00 0.01 0.93 0.26 236.48 260.57 420.04 0.03 25.61 0.67 0.08

 avg-cpu: %user %nice %system %iowait %steal %idle
 0.89 0.00 0.76 0.00 0.00 98.35

 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
 sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdc 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdd 0.00 0.00 2.00 1.00 2.00 1.00 1.00 0.00 0.33 0.33 0.10
 sdf 0.00 0.00 2.00 1.00 2.00 1.00 1.00 0.00 0.33 0.33 0.10
 sde 0.00 0.00 2.00 1.00 2.00 1.00 1.00 0.00 0.33 0.33 0.10
 sdg 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdh 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdi 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

 avg-cpu: %user %nice %system %iowait %steal %idle
 2.15 0.00 0.63 0.00 0.00 97.22

 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
 sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdc 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdd 0.00 0.00 2.00 1.00 2.00 1.00 1.00 0.00 0.67 0.67 0.20
 sdf 0.00 0.00 2.00 1.00 2.00 1.00 1.00 0.00 0.33 0.33 0.10
 sde 0.00 0.00 2.00 1.00 2.00 1.00 1.00 0.00 0.33 0.33 0.10
 sdg 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdh 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
 sdi 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00



top
Code:
 top - 11:15:06 up 16 days, 19:04, 3 users, load average: 0.18, 0.24, 0.23
 Tasks: 260 total, 1 running, 259 sleeping, 0 stopped, 0 zombie
 Cpu(s): 51.1%us, 34.6%sy, 0.3%ni, 11.5%id, 2.1%wa, 0.0%hi, 0.5

but after a while it is showing low.

Code:
top - 11:15:59 up 16 days, 19:05, 3 users, load average: 0.26, 0.25, 0.23
 Tasks: 259 total, 1 running, 258 sleeping, 0 stopped, 0 zombie
 Cpu(s): 0.5%us, 0.3%sy, 0.0%ni, 99.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st

I have checked /var/log/messages, can not found any issues.

using oracle Linux 6.7

Last edited by jim mcnamara; 06-05-2016 at 03:52 PM.. Reason: code tags! please
# 2  
Old 06-05-2016
There appears to be one or a group of processes - maybe a service - that run and then stop periodically. What process(es) writes to the sdh drive?
# 3  
Old 06-05-2016
As the load averages (short to mid time) are all around some 25%, there doesn't seem to be reason for concern. The node is busy, but not too busy, and there's enough headroom, cpu-wise.
# 4  
Old 06-05-2016
The first report of iostat (and vmstat and sar) is the average since the system boot.
After that each report is the average since the last report.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help to parse iostat command output

Hi, I got the code below is one of the threads from this forum. lineCount=$(iostat | wc -l) numDevices=$(expr $lineCount - 7); iostat $interval -x -t | awk -v awkCpuFile=$cpuFile -v awkDeviceFile=$deviceFile -v awkNumDevices=$numDevices ' BEGIN { print... (2 Replies)
Discussion started by: gopivallabha
2 Replies

2. Shell Programming and Scripting

Need help to get the parsed output of "iostat" command

Hi, I have a requirement where parsed output from various linux commands like top, netstat, iostat, etc. will be the input for one javascript with the parsed output from these commands converted to JSON format For "iostat" command, since there are two outputs - one w.r.t CPU utilization and... (2 Replies)
Discussion started by: gopivallabha
2 Replies

3. SuSE

Is this iostat pipe to sort service request command correct?

Hi, my os is SLES 10 from sort iostat as my output does not include rkB/s and wkB/s I probably have to adjust the key position, so is the following iostat pipe to sort service request command correct? oracle@vmc_stallite:~> iostat -x | sort -nrk11 sda 0.96 ... (4 Replies)
Discussion started by: jediwannabe
4 Replies

4. Solaris

Problem in getting total Disk space using iostat -En command

Hi Everyone, I try to calculate the total hard disk space of a solaris machine using iostat -En command. Iterating the output and summing up all the number present near the Size: will give the exact size of the harddisk. But it is not working for a machine. This command works in many flavors... (2 Replies)
Discussion started by: prasankn
2 Replies

5. Solaris

How to use IOSTAT command

Hello everyone, Can you please explain me what kind of information do IOSTAT show ? iostat -xnz 3 show me those informations: The I/O of the c0t0d0 disk is normal ? extended device statistics r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device 0.0 ... (3 Replies)
Discussion started by: adilyos
3 Replies

6. Solaris

iostat command question

Iostat inquiry;# iostat -e ---- errors --- device s/w h/w trn tot fd0 0 0 0 0 md0 0 0 0 0 md1 0 0 0 0 md2 0 0 0 0 md10 0 0 0 0 md11 0 0 0 0 md12 0 0 0 0 md30 0 0 0 0 md31 0 0 0 0 md32 0 0 0 0 md40 0 0 0 0 md41 0 0 0 0 md42 0 0 0 0 md50 0 0 0 0 md51 0 0 0 0 md52 0 0 0 0 md60 0 0 0... (2 Replies)
Discussion started by: pepi
2 Replies

7. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

Hi all, I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command. Thanks in advance. Thanks, Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies

8. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

9. SCO

HP-UX top command

Is there a command in SCO Unix that does the same as the top command in HPUX. The command displays the jobs using the most system resources. Thanks You (0 Replies)
Discussion started by: joestrosser
0 Replies

10. UNIX for Dummies Questions & Answers

top command

hi guys, i am having a dual cpu xeon machine. i came to know that i can view the performance by giving top command. but top command shows only the usage of one cpu in percentage while the process are using more than 100% usage in the list . can i know separately the usage of cpus. can you... (5 Replies)
Discussion started by: bijuhpd
5 Replies
Login or Register to Ask a Question