mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sebastian Ott <sebott@linux.vnet.ibm.com>
To: Benjamin LaHaise <bcrl@kvack.org>
Cc: Anatol Pomozov <anatol.pomozov@gmail.com>,
	linux-aio@kvack.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: hanging aio process
Date: Wed, 21 May 2014 16:12:19 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.11.1405211552350.1579@denkbrett> (raw)
In-Reply-To: <20140521132038.GL2915@kvack.org>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1155 bytes --]

Hi,

On Wed, 21 May 2014, Benjamin LaHaise wrote:
> On Wed, May 21, 2014 at 10:48:55AM +0200, Sebastian Ott wrote:
> > > 
> > > I already did that and it didn't change, always 1 + (1UL << 31) in all
> > > cases, before and after percpu_ref_kill(&ctx->reqs). I'm not really
> > > familiar with this percpu_ref stuff but it looks like the initial
> > > reference is dropped asynchronous.
> > 
> > 
> > cat /sys/kernel/debug/tracing/trace
> 
> Your trace still isn't monitoring aio_complete().  You need to check if 
> aio_complete() is getting called in order to determine if the bug is in 
> the core aio code or not.

Yes, sry about that there were just too many of them. But I was able to
reproduce the problem with fio writing a little less data. Sadly it's
still much tracing data - a compressed archive is attached.

The number of aio_complete invocations is the same for the good and the
bad case:

for T in trace.bad trace.good  ;do wc $T ;done
  49156  294920 3735651 trace.bad
  49159  294939 3735901 trace.good

for T in trace.bad trace.good  ;do grep aio_complete $T | wc ;done
  49120  294720 3733120
  49120  294720 3733120

Regards,
Sebastian

[-- Attachment #2: Type: APPLICATION/x-xz, Size: 295128 bytes --]

  reply	other threads:[~2014-05-21 14:12 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19 17:38 Sebastian Ott
2014-05-19 18:08 ` Benjamin LaHaise
2014-05-20  8:08   ` Sebastian Ott
2014-05-20 13:16     ` Sebastian Ott
2014-05-20 14:26       ` Benjamin LaHaise
2014-05-20 16:12       ` Anatol Pomozov
2014-05-20 18:09         ` Sebastian Ott
2014-05-20 18:39           ` Anatol Pomozov
2014-05-21  8:07             ` Sebastian Ott
2014-05-21  8:48               ` Sebastian Ott
2014-05-21 13:20                 ` Benjamin LaHaise
2014-05-21 14:12                   ` Sebastian Ott [this message]
2014-05-21 14:18                 ` Anatol Pomozov
2014-05-21 14:57                   ` Sebastian Ott
2014-06-04  5:24                     ` Gu Zheng
2014-06-11  8:47                       ` Ming Lei
2014-06-04 13:58                   ` [PATCH] percpu-refcount: fix usage of this_cpu_ops (was Re: hanging aio process) Sebastian Ott
2014-06-04 16:11                     ` Tejun Heo
2014-06-04 16:56                       ` Sebastian Ott
2014-06-04 17:02                         ` Tejun Heo
2014-06-04 16:41                     ` Tejun Heo
2014-06-04 17:17                       ` Christoph Lameter
2014-05-19 18:31 ` hanging aio process Anatol Pomozov

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=alpine.LFD.2.11.1405211552350.1579@denkbrett \
    --to=sebott@linux.vnet.ibm.com \
    --cc=anatol.pomozov@gmail.com \
    --cc=bcrl@kvack.org \
    --cc=linux-aio@kvack.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®