From: Jens Axboe <axboe@kernel.dk>
To: Sitsofe Wheeler <sitsofe@gmail.com>
Cc: fio <fio@vger.kernel.org>
Subject: Re: server mode and verify_dump
Date: Fri, 14 Aug 2015 13:17:40 -0600 [thread overview]
Message-ID: <55CE3ED4.8020505@kernel.dk> (raw)
In-Reply-To: <CALjAwxjk6TG+UO6d3L_7Fq=Ucm5WBtkMLLQwSqx+F_J9f=gReg@mail.gmail.com>
On 08/14/2015 01:11 PM, Sitsofe Wheeler wrote:
> On 14 August 2015 at 16:58, Jens Axboe <axboe@kernel.dk> wrote:
>> On 08/14/2015 09:47 AM, Jens Axboe wrote:
>>>
>>> On 08/03/2015 03:12 PM, Sitsofe Wheeler wrote:
>>>>
>>>> Hi,
>>>>
>>>> I've noticed that when running fio in server mode it's not possible to
>>>> get a dump of using verify_dump when a verify mismatch occurs. Is it
>>>> possible to add a mode where the server process saves the mismatch
>>>> files to its current working directory for inspection later?
>>>
>>>
>>> That sounds like an oversight. To save time, can you let me know how you
>>> are invoking fio and with what job file? Should not be that hard to
>>> fixup, it should just work.
>>
>>
>> Just tested this, and the fio backend does dump the files if verify_dump=1
>> is set:
>>
>> [...]
>> <lenny> write3: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=sync,
>> iodepth=1
>> <lenny> Starting 1 process
>> <lenny> crc16: verify failed at file file offset 2023424, length 4096
>> <lenny> Expected CRC: 5b54
>> <lenny> Received CRC: c1aa
>> <lenny> received data dumped as file.2023424.received
>> <lenny> expected data dumped as file.2023424.expected
>
> You're absolutely right. I think I got fooled because of two things:
> 1. I was trying to use dd to stomp zeros while also using the sync
> ioengine on a file in /dev/shm and just getting a file I/O error.
> 2. If fio encounters an error while trying to read the header (even if
> the blocks are all of the same size) it doesn't dump anything at all
> (even in non-server circumstances)...
Right, I suspected that might have been the case. If the header isn't
valid, then fio doesn't dump any contents. One could argue that it would
be cleaner if the backend send the files to the frontend to store, since
that's where you are running fio from. But at least they are there, on
the backend side.
--
Jens Axboe
next prev parent reply other threads:[~2015-08-14 19:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 21:12 server mode and verify_dump Sitsofe Wheeler
2015-08-14 15:47 ` Jens Axboe
2015-08-14 15:58 ` Jens Axboe
2015-08-14 19:11 ` Sitsofe Wheeler
2015-08-14 19:17 ` Jens Axboe [this message]
2015-08-14 19:21 ` Sitsofe Wheeler
2015-08-14 19:22 ` Jens Axboe
2015-08-14 19:41 ` Sitsofe Wheeler
2015-08-14 19:50 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55CE3ED4.8020505@kernel.dk \
--to=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=sitsofe@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox