nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

What is I/O wait under PS command?

This is a discussion on What is I/O wait under PS command? within the Linux software forums, part of the Linux Getting Started category; Hai, Anyone know what is I/O wait .. many commands related to CPU and Disk use the term I/O wait ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 06-20-2006, 05:59 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default What is I/O wait under PS command?

Hai,

Anyone know what is I/O wait .. many commands related to CPU and Disk use the term I/O wait under Linux or UNIX oses.

Especially when I use ps command talks about i/o wait… It talks about
Uninterruptible sleep
Rnning or runnabl
Interruptible sleep
And so on…
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-21-2006, 10:43 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

I/O waits are associated with process states. For example state D indicates Uninterruptible sleep generally related to IO (indicated by the STAT column in top command).

SO I/O wait is related to process Uninterruptible sleep. For example if process waiting for disk I/O or any other I/O, process is put in in D state.

Hope this helps.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 06-21-2006, 11:06 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

Can you provide elaborate info
Reply With Quote
  #4 (permalink)  
Old 06-22-2006, 09:31 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

Ok my friend had given me some info. I am sharing same with all of you:
Generally, a process is put into D state when waiting for some sort of I/O to complete. The process has made a call into the kernel and is waiting for the result. During this period, it is unable to be interrupted, as doing so might jeopardize the state of the driver and hardware.

It is important to note that from a CPU standpoint, I/O wait is equivalent to idle time. A process in I/O wait will not block a process that is ready to run (R state).
Reply With Quote
  #5 (permalink)  
Old 06-22-2006, 09:35 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

High I/O does not mean you have a problem.

If you are running MySQL or Oracle server or I/O intensive apps, then you should see high I/O load. In other words, you should expect to see high I/O for I/O bound applications :P
Reply With Quote
  #6 (permalink)  
Old 06-22-2006, 09:38 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default

Good info about I/O wait.

Just in case if anyone need PROCESS STATE CODES (from man p:
Here are the different values that the s, stat and state output specifiers
(header "STAT" or "S") will display to describe the state of a process:

D : Uninterruptible sleep (usually IO)
R : Running or runnable (on run queue)
S : Interruptible sleep (waiting for an event to complete)
T : Stopped, either by a job control signal or because it is being traced.
W : paging (not valid since the 2.6.xx kernel)
X : dead (should never be seen)
Z : Defunct ("zombie") process, terminated but not reaped by its parent.

For BSD formats and when the stat keyword is used, additional characters may
be displayed:
< : high-priority (not nice to other user
N : low-priority (nice to other user
L : has pages locked into memory (for real-time and custom IO)
s : is a session leader
l : is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
+ : is in the foreground process group
__________________
Friends - v-nessa - missyAdmin - LinuxChix
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
System bootup in progress - please wait error Rob Linux software 1 12-18-2005 01:29 AM


All times are GMT +5.5. The time now is 12:55 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36