From: Dave Chinner <david@fromorbit.com>
To: Zach Brown <zab@zabbo.net>
Cc: Jeff Moyer <jmoyer@redhat.com>, Benjamin LaHaise <bcrl@kvack.org>,
fstests@vger.kernel.org
Subject: Re: [patch, v3] add an aio test which closes the fd before destroying the ioctx
Date: Wed, 27 Aug 2014 20:08:51 +1000 [thread overview]
Message-ID: <20140827100851.GC26465@dastard> (raw)
In-Reply-To: <20140827084922.GB26465@dastard>
On Wed, Aug 27, 2014 at 06:49:22PM +1000, Dave Chinner wrote:
> On Tue, Aug 26, 2014 at 10:27:40AM -0700, Zach Brown wrote:
> > On Tue, Aug 26, 2014 at 12:05:11PM -0400, Jeff Moyer wrote:
> > > Benjamin LaHaise <bcrl@kvack.org> writes:
> > >
> > > > Does someone already have a simple test case we can add to the libaio test
> > > > suite to verify this behaviour?
> > >
> > > I can't reproduce this problem using a loop device, which is what the
> > > libaio test suite uses. Even when using real hardware, you have to have
> > > disks that are slow enough in order for this to trigger reliably (or
> > > at all).
> >
> > I wonder if you could use something like dm suspend to abuse indefinite
> > latencies.
> >
> > > I could write a more targeted test within xfstests, but I don't think
> > > that's strictly necessary (it would just make it more clear what the
> > > expectations are, and maybe bump the hit rate percentage up).
> >
> > I think it'd be worth it (he says, not commiting *his* time). It would
> > have been nice if a targeted test helped Dave raise the alarm
> > immediately rather than gnaw away at his brain with inconsistent mostly
> > unrelated failures for months.
>
> I'm not sure it's worth the effort. now we have two tests that have
> triggered the same problem, I've been easily able to reproduce it
> with 2 VMs with test/scratch image files sharing the same spindle.
> i.e. run xfstests in one VM, run generic/323 in the other VM, and
> it reproduces fairly easily.
>
> I'm just running it in a loop now to measure how successfully I'm
> reproducing the problem, then I'll apply the fix and see if it gets
> better. If it does get better, then I'll keep the patch around
> locally until it is upstream, and then I'll shout whenever I see
> this problem occur again....
Ok, so of 32 executions in a tight loop of generic/323, only 5
executions passed while 27 failed.
With the patch suggested, it failed the first 5 executions, so I
don't think it fixes the problem.
BTW, generic/323 is pulling 8,000 read IOPS and 500MB/s from my
single spindle. Methinks that the test file is resident in the BBWC
on the RAID controller, which may be why nobody else is reproducing
this problem....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
prev parent reply other threads:[~2014-08-27 10:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-24 19:34 [patch, v3] add an aio test which closes the fd before destroying the ioctx Jeff Moyer
2014-06-26 12:55 ` Brian Foster
2014-08-20 22:57 ` Dave Chinner
2014-08-20 23:43 ` Jeff Moyer
2014-08-21 9:16 ` Dave Chinner
2014-08-21 16:57 ` Zach Brown
2014-08-25 16:50 ` Benjamin LaHaise
2014-08-25 17:55 ` Jeff Moyer
2014-08-25 23:12 ` Dave Chinner
2014-08-26 16:05 ` Jeff Moyer
2014-08-26 17:27 ` Zach Brown
2014-08-26 17:32 ` Jeff Moyer
2014-08-27 8:49 ` Dave Chinner
2014-08-27 10:08 ` Dave Chinner [this message]
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=20140827100851.GC26465@dastard \
--to=david@fromorbit.com \
--cc=bcrl@kvack.org \
--cc=fstests@vger.kernel.org \
--cc=jmoyer@redhat.com \
--cc=zab@zabbo.net \
/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