LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2018, 07:23 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
iowait for linux !


Dear Friends ,
I am confused about iowait in linux system . Is this iowait is for Disk or CPU ?

For the below output :

output-1
---------------------
avg-cpu: %user %nice %system %iowait %steal %idle
0.27 0.00 0.83 1.51 0.00 97.39

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 0.08 10.68 0.26 2.60 10.90 106.27 40.87 -------------------------

output-2:
------------------------------
07:31:25 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
07:31:25 PM all 0.27 0.00 0.33 1.51 0.47 0.03 -------------------------------

Is the above 2 output , I found %iowait for CPU , but is this iowait related with Disk ?
 
Old 07-03-2018, 08:11 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
%iowait is the percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request."

https://support.hpe.com/hpsc/doc/pub...ocId=c02783994
 
1 members found this post helpful.
Old 07-03-2018, 08:35 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Which means it is basically useless - especially on a multicore (hyperthreaded) environment.
There are situations where it can be useful when used in conjunction with other metrics, but as a stand-alone indicator, use with care.
 
Old 07-04-2018, 01:05 AM   #4
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Original Poster
Rep: Reputation: 31
Appropriate Doc ...Thanks a lot..

Here I understand that CPU wait time actually interrelated with Disk IO Time .But I am confused with the below points :

1) In top command , wait% event means overall system wait time or only disk io wait time ?

2)From above redhat site :
---------------
"So, %iowait means that from the CPU point of view, no tasks were runnable, but at least one i/o was in progress. iowait is simply a form of idle time when nothing could be scheduled. The value may or may not be useful in indicating a performance problem, but it does tell us that the system is idle and could have taken more work."
---------------

would you please clarify about the above sentence ? Does it mean , when Disk %iowait is increasing then CPU has no new tasks for execution or, schedule to execute .CPU goes to IDLE then ?

Last edited by shipon_97; 07-04-2018 at 01:16 AM.
 
Old 07-04-2018, 07:18 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
It is not CPU wait time, nor is it disk IO time.
Quote:
iowait is simply a form of idle time when nothing could be scheduled.
It was probably invented to help determine why a system was idle - back in the days of uni-processor systems. As I said above, it is largely pointless in multi-processor systems.

1). see the manpage.
2). the system is idle - iowait% is a time percentage when IO is outstanding. May, or may not, be related to the tasks not running.

Why do you care ?.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iowait indication c0m4r Linux - Server 4 08-20-2010 10:24 AM
What is iowait? mynameisjohnny Linux - Newbie 2 07-27-2010 05:23 AM
Oracle - IOwait on Linux 2.6 connected to Clariion bchain Linux - Server 3 02-11-2009 01:21 PM
What is iowait, exactly? exscape Linux - Server 2 02-24-2008 05:18 AM
Iowait ashley75 Linux - General 25 02-11-2006 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration