Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Jeff Furlong <jeff.furlong@wdc.com>,
	"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: fio server/client disconnect bug
Date: Wed, 21 Mar 2018 15:47:19 -0600	[thread overview]
Message-ID: <edd3e654-56fb-bb87-af68-0853c8ab003a@kernel.dk> (raw)
In-Reply-To: <SN6PR04MB406466E455A80B33C8F6B1958FAA0@SN6PR04MB4064.namprd04.prod.outlook.com>

OK good, I will commit the fix.

The summary is not to do those commands inline. Usually we don't have
issues with inline vs out-of-line ordering, since we don't queue
deeply or depend on ordering. But for this specific case, it's pretty
unfortunate if commands we already queued up are not processed, before
the client sends a stop/quit and finishes.


On 3/21/18 3:45 PM, Jeff Furlong wrote:
> Ran over 600 iterations so far without issue.  Will keep running to get a higher confidence.  That way this issue will be fresh in our minds, given the fun sequence we just traced through.
> 
> So the summary is to not add the QUIT command to the inline queue, and just process it like most other typical commands?  The only thing that gets processed separately are errors or triggers?
> 
> Regards,
> Jeff
> 
> 
> -----Original Message-----
> From: Jens Axboe [mailto:axboe@kernel.dk] 
> Sent: Wednesday, March 21, 2018 12:50 PM
> To: Jeff Furlong <jeff.furlong@wdc.com>; fio@vger.kernel.org
> Subject: Re: fio server/client disconnect bug
> 
> On 3/21/18 1:45 PM, Jeff Furlong wrote:
>> There is noticeable slowdown with this patch.  Seems some iterations (even successful) are taking several seconds of usleep().  Eventually hit a new issue:
>>
>> fio: client host1, timeout on cmd SEND_ETA
>> fio: client host1 timed out
>>
>> But host1 still logged the iops/bw/lat logs, but did not send summary to output.
> 
> Can you try this one?
> 
> 
> diff --git a/server.c b/server.c
> index 65d4484edae5..6064d8172a3b 100644
> --- a/server.c
> +++ b/server.c
> @@ -616,7 +616,7 @@ static int fio_net_queue_quit(void)  {
>  	dprint(FD_NET, "server: sending quit\n");
>  
> -	return fio_net_queue_cmd(FIO_NET_CMD_QUIT, NULL, 0, NULL, SK_F_SIMPLE | SK_F_INLINE);
> +	return fio_net_queue_cmd(FIO_NET_CMD_QUIT, NULL, 0, NULL, 
> +SK_F_SIMPLE);
>  }
>  
>  int fio_net_send_quit(int sk)
> @@ -636,7 +636,7 @@ static int fio_net_send_ack(struct fio_net_cmd *cmd, int error, int signal)
>  
>  	epdu.error = __cpu_to_le32(error);
>  	epdu.signal = __cpu_to_le32(signal);
> -	return fio_net_queue_cmd(FIO_NET_CMD_STOP, &epdu, sizeof(epdu), &tag, SK_F_COPY | SK_F_INLINE);
> +	return fio_net_queue_cmd(FIO_NET_CMD_STOP, &epdu, sizeof(epdu), &tag, 
> +SK_F_COPY);
>  }
>  
>  static int fio_net_queue_stop(int error, int signal)
> 
> --
> Jens Axboe
> 


-- 
Jens Axboe



  reply	other threads:[~2018-03-21 21:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-16  0:32 fio server/client disconnect bug Jeff Furlong
2018-03-21  0:16 ` Jeff Furlong
2018-03-21 15:19   ` Jens Axboe
2018-03-21 16:19     ` Jens Axboe
2018-03-21 16:27       ` Jens Axboe
2018-03-21 16:35         ` Jeff Furlong
2018-03-21 16:38           ` Jens Axboe
2018-03-21 16:58             ` Jeff Furlong
2018-03-21 17:12               ` Jens Axboe
2018-03-21 18:16                 ` Jeff Furlong
2018-03-21 18:38                   ` Jens Axboe
2018-03-21 19:03                     ` Jens Axboe
2018-03-21 19:10                       ` Jens Axboe
2018-03-21 19:44                         ` Jens Axboe
2018-03-21 19:45                         ` Jeff Furlong
2018-03-21 19:49                           ` Jens Axboe
2018-03-21 21:45                             ` Jeff Furlong
2018-03-21 21:47                               ` Jens Axboe [this message]
2018-03-21 21:51                                 ` Jens Axboe
2018-03-21 21:58                                   ` Jeff Furlong
2018-03-21 19:23                     ` Jeff Furlong

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=edd3e654-56fb-bb87-af68-0853c8ab003a@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=jeff.furlong@wdc.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox