fio icon indicating copy to clipboard operation
fio copied to clipboard

Fio replay blktrace file failed when blktrace file is large than 3GB.

Open fwin opened this issue 11 years ago • 6 comments

Fio replay blktrace file failed when blktrace file is large than 3GB. cmd: fio --name=replay --filename=/dev/md1 --read_iolog=md1.bin --ioengine=libaio --iodepth=1

When md1.bin is large than 3GB,replay io will make the system dump,then dump reason is out of memory. But it works fine when the read_iolog is 100MB.

Does anyone help me? Thank you!

fwin avatar Oct 27 '14 07:10 fwin

@fwin : This might have been fixed by a6eaf6c9101cd3f2895376944e6425a43613dbf6 - do you still see this problem with the latest fio releases?

sitsofe avatar Jul 20 '16 18:07 sitsofe

Looks like this is still a problem. With fio 2.13 a file with 100 million I/Os to replay uses up enough memory on a 4GByte system to cause an OOM. What's really needed is some sort of streaming replay mode...

sitsofe avatar Aug 16 '16 16:08 sitsofe

Yes, that's exactly right, it should be made streaming somehow. We already have the infrastructure, in fact we stream the entries in at init time. We just stream all of them... Only complication here is that we need a helper to stream them in, we can't do it inline when we're running IO. At least not without potentially slowing down the replay.

axboe avatar Aug 16 '16 17:08 axboe

This is semi-addressed by https://github.com/axboe/fio/commit/98e7161cda6a1f5b0cbd8979c261db8eb3a4ab72 but it won't work for blktrace files - only fio's own iolog format...

sitsofe avatar Aug 12 '18 08:08 sitsofe

Indeed, the same kind of chunking could be done on blktrace replay. It should be trivial to do, since the input is an already sorted blktrace trace.

axboe avatar Aug 12 '18 16:08 axboe

Is the issue still on?

dpronin avatar Mar 09 '22 20:03 dpronin