github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/microbenchmarks/disk/compare/README.md (about) 1 This script provides a way to benchmark polling diskstats from [/proc/diskstats](https://www.kernel.org/doc/Documentation/iostats.txt) against using linux application `iostat`. 2 3 For a detailed analysis of the experiment results, please refer to this [PDF](experiments.pdf). 4 5 ## How to run benchmark? 6 7 First, build the script: `go build` 8 9 Next, run the `lsblk` command to get a list of all disks, the value under the `NAME` column is used in the next step. 10 11 Finally, run the script using the disks you want use in the benchmark. 12 13 ```console 14 $ ./compare <disk1> ... <diskN> > /path/to/results.csv 15 ``` 16 17 This continuously writes the benchmark data to `/path/to/results.csv`. 18 19 During this time, load can be generated on the disks by using [`loadgen.sh`](/bench/disk/loadgen) in a different terminal. Note that the corresponding mount points corresponding to the disks need to be passed. This can be obtained with the `lsblk` command, the value under the `MOUNTPOINT` column is the corresponding mount point. 20 21 The benchmark can be stopped at any time by pressing `ctrl+c` in the controlling terminal.