All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sitsofe Wheeler <sitsofe@gmail.com>
To: Samuel Shapiro <samuel.sh79@gmail.com>
Cc: "fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: during fio scenario with verify=meta some jobs fails
Date: Sun, 12 Apr 2015 11:51:24 +0100	[thread overview]
Message-ID: <CALjAwxhJ7tGjJHNzHanWw02NTRJuvYcaEeiR6BOWrrjD8BYt1g@mail.gmail.com> (raw)
In-Reply-To: <CANt18PxZvp4LBDnXEujJc4GSogpsvhP+cu=j=VDPN4-=8+91+Q@mail.gmail.com>

On 12 April 2015 at 11:12, Samuel Shapiro <samuel.sh79@gmail.com> wrote:
> Thanks for the great answer Sitsofe :)
> Will stick to md5 verification while testing FS data integrity.

If fio is in any shape or form CPU bound during writing or
verification I'd probably hint to you that crc32c-intel might be
better tradeoff if fio is running on recent Intel hardware. If you
can't use that (because you aren't on that hardware) you could use
xxhash instead. Both crc32c-intel and xxhash will "detect" less
corruptions than md5 (their checksum is smaller) but they can be
dramatically faster and perhaps allow you to get more runs / more
concurrency in and will still detect common problems.

I failed to answer question 3. of your original mail:

> 3. How can I parse ".state" file so I could compare its data to
> original file on storage?

You only need to use this file if the writing pass is interrupted
before it could be fully completed (so you know when to stop
verifying). I don't think it records the contents of the data being
written but rather how starting parameters and how far along a given
data generation sequence you got (so you have enough to replay it
later)...

Generally speaking and assuming the verification header part of a
block isn't corrupt, verify_dump can be used to make fio dump the
expected and mismatched data into two files for later inspection when
a mismatch is found. If memory serves, non important parts of the
header section may not match between the expected and actual dumps
(e.g. padding between the real values might not match up).

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

  reply	other threads:[~2015-04-12 10:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08 10:37 during fio scenario with verify=meta some jobs fails Samuel Shapiro
2015-04-10 18:29 ` Sitsofe Wheeler
2015-04-11  3:04   ` Samuel Shapiro
2015-04-11  6:10     ` Sitsofe Wheeler
2015-04-11  6:15       ` Sitsofe Wheeler
     [not found]         ` <CANt18PzSgzy7zVOXuY26iz9gH=tnTLZiKSE=i=pGxAWrxgVq6g@mail.gmail.com>
2015-04-11 22:06           ` Sitsofe Wheeler
2015-04-12 10:12             ` Samuel Shapiro
2015-04-12 10:51               ` Sitsofe Wheeler [this message]
2015-04-13  8:21                 ` Samuel Shapiro

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=CALjAwxhJ7tGjJHNzHanWw02NTRJuvYcaEeiR6BOWrrjD8BYt1g@mail.gmail.com \
    --to=sitsofe@gmail.com \
    --cc=fio@vger.kernel.org \
    --cc=samuel.sh79@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 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.