Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Vasily Tarasov <tarasov@vasily.name>
Cc: Michael Mattsson <michael.mattsson@gmail.com>,
	"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: fio hangs with --status-interval
Date: Mon, 28 Jul 2014 21:49:47 +0200	[thread overview]
Message-ID: <53D6A95B.8020307@kernel.dk> (raw)
In-Reply-To: <CAFTzLMMP1tWNQ0tHj62enk-emhtX9sHv5wq+UCJpXO71RhB_NQ@mail.gmail.com>

On 2014-07-28 18:05, Vasily Tarasov wrote:
> Hi Jens,
>
> Thanks for looking into this. Here is the information you've requested:
>
> 1. Workload I'm running:
>
> <snip starts>
>
> [global]
> rw=write
> bs=8m
> direct=0
> thread=1
> size=4g
>
> [sdaa]
> filename=/dev/sdaa
>
> <snip ends>
>
> 2. That's what I see on the screen:
>
> <snip starts>
>
> # fio --status-interval 10 1.fio
> sdaa: (g=0): rw=write, bs=8M-8M/8M-8M/8M-8M, ioengine=sync, iodepth=1
> fio-2.1.11-10-gae7e
> Starting 1 thread
> Jobs: 1 (f=1): [W(1)] [-.-% done] [0KB/0KB/0KB /s] [0/0/0 iops] [eta 00m:00s]
> sdaa: (groupid=0, jobs=1): err= 0: pid=18849: Mon Jul 28 08:50:47 2014
>    write: io=4096.0MB, bw=367567KB/s, iops=44, runt= 11411msec
>      clat (usec): min=2400, max=3657, avg=2677.80, stdev=234.68
>       lat (usec): min=2674, max=3968, avg=2948.69, stdev=269.71
>      clat percentiles (usec):
>       |  1.00th=[ 2448],  5.00th=[ 2480], 10.00th=[ 2512], 20.00th=[ 2544],
>       | 30.00th=[ 2544], 40.00th=[ 2576], 50.00th=[ 2576], 60.00th=[ 2576],
>       | 70.00th=[ 2608], 80.00th=[ 3024], 90.00th=[ 3120], 95.00th=[ 3152],
>       | 99.00th=[ 3248], 99.50th=[ 3312], 99.90th=[ 3664], 99.95th=[ 3664],
>       | 99.99th=[ 3664]
>      bw (MB  /s): min= 2464, max= 2842, per=100.00%, avg=2712.77, stdev=215.50
>      lat (msec) : 4=100.00%
>    cpu          : usr=1.31%, sys=13.92%, ctx=161, majf=0, minf=6
>    IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
>       submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
>       complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
>       issued    : total=r=0/w=512/d=0, short=r=0/w=0/d=0
>       latency   : target=0, window=0, percentile=100.00%, depth=1
>
> Run status group 0 (all jobs):
>    WRITE: io=4096.0MB, aggrb=367566KB/s, minb=367566KB/s,
> maxb=367566KB/s, mint=11411msec, maxt=11411msec
>
> Disk stats (read/write):
>    sdaa: ios=84/0, merge=0/0, ticks=43/0, in_queue=35, util=2.36%
>
> <snip ends>
>
> At this point fio does not exit. Below are the gdb backtraces. There
> are three threads in the run. When I attach to one thread, get
> backtrace, and then detach fio crashes with Segfault. So, to collect 3
> backtraces, I ran the experiment 3 times and attached to a different
> thread every time. Below, I change the PIDs so that they match the ps
> output.
>
> # ps -eLf | grep fio
> root     18844 10064 18844  0    3 08:50 pts/1    00:00:00 fio
> --status-interval 10 1.fio
> root     18844 10064 18862  0    3 08:50 pts/1    00:00:00 fio
> --status-interval 10 1.fio
> root     18844 10064 18863  0    3 08:50 pts/1    00:00:00 fio
> --status-interval 10 1.fio
> root     18902 18805 18902  0    1 08:53 pts/0    00:00:00 grep fio
> # gdb
> (gdb) attach 18844
> (gdb) bt
> #0  0x000000376f60b5bc in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib64/libpthread.so.0
> #1  0x0000000000430419 in fio_mutex_down (mutex=0x7ffff7ff6000) at mutex.c:155
> #2  0x0000000000411bc0 in stat_exit () at stat.c:1905
> #3  0x000000000044c1d6 in fio_backend () at backend.c:2094
> #4  0x000000376ee1ed1d in __libc_start_main () from /lib64/libc.so.6
> #5  0x000000000040a679 in _start ()
> (gdb) attach 1862
> (gdb) bt
> #0  0x000000376f60b5bc in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib64/libpthread.so.0
> #1  0x0000000000430419 in fio_mutex_down (mutex=0x7ffff7ff2000) at mutex.c:155
> #2  0x000000000041c717 in __show_running_run_stats (arg=0x72a330) at stat.c:1445
> #3  0x000000376f6079d1 in start_thread () from /lib64/libpthread.so.0
> #4  0x000000376eee8b6d in clone () from /lib64/libc.so.6
> (gdb) attach 1863
> (gdb) bt
> #0  0x000000376f60b5bc in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib64/libpthread.so.0
> #1  0x0000000000430419 in fio_mutex_down (mutex=0x7ffff7ff6000) at mutex.c:155
> #2  0x000000000041c5cd in __show_running_run_stats (arg=0x72a490) at stat.c:1421
> #3  0x000000376f6079d1 in start_thread () from /lib64/libpthread.so.0
> #4  0x000000376eee8b6d in clone () from /lib64/libc.so.6
>
> Let me know if you need any additional information.

This is perfect, makes a lot more sense. Progress on this may be a 
little slow, I'm on vacation this week... But expect something next 
week, at least.


-- 
Jens Axboe



  reply	other threads:[~2014-07-28 19:49 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09 22:56 fio hangs with --status-interval Michael Mattsson
2014-07-10  8:44 ` Jens Axboe
2014-07-10 14:55   ` Michael Mattsson
2014-07-10 20:07     ` Jens Axboe
2014-07-10 21:27       ` Michael Mattsson
2014-07-11 11:48         ` Jens Axboe
2014-07-11 16:19           ` Michael Mattsson
2014-07-12  8:42             ` Jens Axboe
2014-07-16 16:58               ` Vasily Tarasov
2014-07-21  8:08                 ` Jens Axboe
2014-07-21 20:25                   ` Vasily Tarasov
2014-07-21 20:54                     ` Jens Axboe
2014-07-25  7:43                     ` Jens Axboe
2014-07-25  7:56                       ` Jens Axboe
2014-07-25 16:34                         ` Vasily Tarasov
2014-07-28  8:56                           ` Jens Axboe
2014-07-28 16:05                             ` Vasily Tarasov
2014-07-28 19:49                               ` Jens Axboe [this message]
2014-10-23 15:57                                 ` Michael Mattsson
2014-10-23 16:01                                   ` Jens Axboe
2014-10-23 21:58                                     ` Michael Mattsson
2014-10-24  5:17                                       ` Jens Axboe
2014-10-24 15:33                                         ` Michael Mattsson
2014-10-24 15:50                                           ` Jens Axboe
2014-11-04 15:46                                             ` Vasily Tarasov

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=53D6A95B.8020307@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=michael.mattsson@gmail.com \
    --cc=tarasov@vasily.name \
    /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