To measure disk I/O, it is usually important to drain file-system cache. This ensure that data will be read from the disk and not access (at very high rate) from the memory. The following two ways can be helpful for this purpose on a Linux machine. Note: Method 2 requires root privileges.