0

I am using STXXL, can somebody help me in finding the no. of I/O's(or blocks transferred) done by my program(or algorithm or process)? I know how to restrict the memory usage by any particular process, but don't know how to restrict the block size in STXXL and how to count no. of blocks transferred.

2 Answers2

2

The STXXL provides an I/O Performance Counter, see here which stores various measured I/O data (including the number of blocks transferred).

Daniel F
  • 283
  • 3
  • 11
0

If you are on Linux, blktrace will keep track of block I/O for you. I don't know about other systems.

Nick Garvey
  • 2,980
  • 24
  • 31