today I had a linux system with 100% wait in the vmstat wait Column.
My question here is: What exactly does a processor do when it's waiting for I/O?
To my understanding a cpu can't really wait - it has to run some code! So is it running some tight "wait until the disk interrupt comes" code? Why is it not running other code and returning when the interrupt from the disk arrives?
To my knowledge a disk is soo slow that a cpu can do many, many cycles until the disk is ready.
Why does linux let the cpu wait until the I/O is done instead of giving it some work to do?
Thomas