All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alireza Haghdoost <haghdoost@gmail.com>
To: Sitsofe Wheeler <sitsofe@gmail.com>
Cc: fio <fio@vger.kernel.org>, "آرش خاوری راد" <arash.khavary@gmail.com>
Subject: Re: get err 5
Date: Wed, 1 Aug 2018 04:18:58 -0500	[thread overview]
Message-ID: <CAB-428=uXP5L5AMrEq0ERRdOwFsRsnVw_vzJve8=S2VndgpCDg@mail.gmail.com> (raw)
In-Reply-To: <CALjAwxhYwwTZwb25uo6g8WZmQO3zTprjQr4ztvmdpKei-NEVRA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1568 bytes --]

On Wed, Aug 1, 2018 at 1:51 AM Sitsofe Wheeler <sitsofe@gmail.com> wrote:

> On 1 August 2018 at 07:39, Alireza Haghdoost <haghdoost@gmail.com> wrote:
> > Your jobs step on the foot of each other. You can’t write with multiple
> > process on the same LBA of a LUN on the same time. That is why you get
> error
> > 5 because one thread is writting an LBA and another thread modify if at
> the
> > same time. In this case either one can get unknown result.
>
> I agree with part of this statement (unknown result in the LBA) but
> I'm doubtful it would cause an error message of "I/O error". Disks
> definitely do accept simultaneous write I/Os against the same LBA but
> the problem becomes that in most cases the end result as to which data
> the LBA will contain is undefined. It's not illegal (in the sense that
> nothing prevents and nothing will error) it's just bad from a data
> integrity perspective (and since this wasn't a verify job...).



> I agree that it is not is not a felony two write on the same lba with
multiple threads.

Not sure what kind of storage device is used in this experience but some
storage devices *do* Lock a sector/chunk while it is being written. It
means the second in-inflight write hitting the same LBA/chunk will wait for
the first one.
Do the math to find out in this job file how many of these big in-flight
write the system can handle before it times-out the last one in the queue.

Now, does it cause err 5? I don’t know for sure. However. This is yet
another reason that might cause it.

[-- Attachment #2: Type: text/html, Size: 2243 bytes --]

  reply	other threads:[~2018-08-01 11:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-01  5:31 get err 5 آرش خاوری راد
2018-08-01  6:33 ` Sitsofe Wheeler
2018-08-01  6:39 ` Alireza Haghdoost
2018-08-01  6:51   ` Sitsofe Wheeler
2018-08-01  9:18     ` Alireza Haghdoost [this message]
     [not found]       ` <CAKTzs3TsUT4y7X9gEAExwg3yVLL5eLrYS0S9tZtgO7P75ZV9Bw@mail.gmail.com>
2018-08-07  5:28         ` Sitsofe Wheeler
2018-08-07  6:17           ` آرش خاوری راد
2018-08-07  9:26           ` آرش خاوری راد
2018-08-07 14:42             ` Michael Green
2018-08-07 16:30               ` آرش خاوری راد
     [not found]           ` <CAKTzs3QfN1FTrBuedprcw-TfAoHrgo8552VKWSOY=3K1p2WgHw@mail.gmail.com>
2018-08-07  9:29             ` Sitsofe Wheeler
2018-08-14  4:23           ` آرش خاوری راد
2018-08-14  8:11             ` Sitsofe Wheeler
2018-08-14 14:36             ` Alireza Haghdoost

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='CAB-428=uXP5L5AMrEq0ERRdOwFsRsnVw_vzJve8=S2VndgpCDg@mail.gmail.com' \
    --to=haghdoost@gmail.com \
    --cc=arash.khavary@gmail.com \
    --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 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.