All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sitsofe Wheeler <sitsofe@gmail.com>
To: Udi-Yehuda Tamar <udi@excelero.com>
Cc: "fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: FIO distinguish data corruption and io errors
Date: Mon, 11 Sep 2017 20:43:55 +0100	[thread overview]
Message-ID: <CALjAwxid3Bs-6bH+nk2wziLoZ0NeOARzh=TNpYK6Ej7uof-XQg@mail.gmail.com> (raw)
In-Reply-To: <CAOfm_=XN7r7h-_epT6OFGzGYvjYekChLk5k+pSQr4LYuN+O64g@mail.gmail.com>

Hi,

On 11 September 2017 at 18:24, Udi-Yehuda Tamar <udi@excelero.com> wrote:
> I guess this question answers it's self but I'll give it a try ,
> Can Fio tell for sure the IO err is a data corruption ? say the drive
> is busy and the read failed
> but not necessarily on data corruption can Fio tell that?
> I guess not! because every IO failure can be a data corruption , but I
> prefer a pro answer - thx in adv.

This depends on how the ioengine and the layers beneath handle it. For
example the psync ioengine talks to a filesystem or block device and
in Linux there's typically some sort of error handling that happens
below the block layer (see
http://events.linuxfoundation.org/sites/events/files/slides/SCSI-EH.pdf
for how this happens for SCSI) so if the kernel (or the disk itself!)
has handled the error by retrying then all userspace (and thus fio)
will see is success but the latency for I/Os that get caught up might
look abnormally high or the I/O will return with an error like EIO.
fio can be made to abort if an I/O returns with high latency (see the
max_latency option -
http://fio.readthedocs.io/en/latest/fio_doc.html#cmdoption-arg-max-latency).

Different I/O engines may be able to return different types of error
depending on what they are talking to and what level they operate at.
For example the sg ioengine sets a timeout of 30 seconds but it looks
like this still makes error handling kick in (see
http://sg.danny.cz/sg/p/sg_v3_ho.html#id2495241 ).

I don't know if this answer is "pro" enough for you though...

-- 
Sitsofe | http://sucs.org/~sits/

  reply	other threads:[~2017-09-11 19:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAOfm_=Vbf8fbusKvMQ+_2B7qpvUoCaYFEnoBnNa8Bwpdh__Zgg@mail.gmail.com>
2017-09-11 17:24 ` Fwd: FIO distinguish data corruption and io errors Udi-Yehuda Tamar
2017-09-11 19:43   ` Sitsofe Wheeler [this message]
2017-09-12  5:42     ` Udi-Yehuda Tamar
2017-09-12 22:03       ` Sitsofe Wheeler

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='CALjAwxid3Bs-6bH+nk2wziLoZ0NeOARzh=TNpYK6Ej7uof-XQg@mail.gmail.com' \
    --to=sitsofe@gmail.com \
    --cc=fio@vger.kernel.org \
    --cc=udi@excelero.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.