I am currently performing various development tasks that are slow on my current system because of IO performance.
Is there a way to record disk operations while performing IO consuming tasks, including performance info (writes/second, reads/second, etc) and then replay them on a new system to see which would the performance be there (without having to re-run the same command over the same set of data)?
Would blktrace, blkparse or fio help me in this case?
For example: Let's say on my system I want to benchmark a
find -name "*.php" | xargs grep -r "test_string"
inside a folder containing 50 000 files (on multiple levels, of course)
I'd like to capture all the disk operations, including statistics, and then replay them on another system that does not have the 50 000 files folder. Basically, just simulating the operations and checking out if they are done any faster.
I've tried capture the disk samples by using
blktrace -d /dev/sda -o myfile.blk
but I do not know how I can try and replay them with fio.
Is this possible?