-3

I'm using the blktrace tool to measure the input performance of the write and rewrite. The blktrace produces many files during the write. Do I need to merge all the files into a single file to give it to the blkparse to produce the readable format of the output.

Charles
  • 50,943
  • 13
  • 104
  • 142
Angus
  • 12,133
  • 29
  • 96
  • 151

1 Answers1

0

By running blktrace as root

blktrace /dev/sda

after pressing Cntrl+c, blktrace will generate a set of files

[sda.blktrace.0, sda.blktrace.1, ..., sda.blktrace.(Ncpus-1)]

according to the number of cpus your OS can see. To parse the files, you can use blkparse for all files simultaneously

blkparse sda.blktrace.0 sda.blktrace.1 ... sda.blktrace.(Ncpus-1)

or

blkparse sda.blktrace.*

Hope it helps.

mrcl
  • 2,130
  • 14
  • 29