LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   command to check disk I/O? (https://www.linuxquestions.org/questions/linux-software-2/command-to-check-disk-i-o-622926/)

i.you 02-21-2008 08:26 PM

command to check disk I/O?
 
Hi

I'd like to know whether there exists a basic command to check disk I/O:
just currently there is disk I/Os or disk requests in system or not?

Because of in order to run or not some program according to the result:

if there exist disk I/Os or requests
put off running the program
else
run the program

Thanks in advance.

taxtropel 02-21-2008 10:52 PM

you would use the /sys folder for the individual file system

i.you 02-21-2008 11:32 PM

Thanks taxtropel

I see.
I probably can do that by checking the 9th column in /sys/block/sda/stat.


All times are GMT -5. The time now is 01:14 PM.