How to get the ioWait system

How can I get ioWait systems? This would be preferable using the info / proc interface (I'm assuming it's written somewhere there) so the application can detect this, but an external exec () call from my application would be acceptable.

+2


source to share


1 answer


It's available in /proc/stat

.

From the documentation in the kernel source:



The earliest aggregates of "cpu" strings are numbers in all other "cpuN" strings. These numbers identify the amount of time spent by the CPU performing various types of work. Time units are in USER_HZ (usually hundredths of a second). Column values: from left to right:

  • user: normal processes running in user mode
  • nice: niced processes running in user mode
  • system: processes running in kernel mode
  • idle: twiddling thumbs
  • iowait: waiting for I / O to complete
  • irq: interrupt service
  • softirq: service softirqs
  • steal: involuntary waiting
+6


source







All Articles