Flexible I/O Tester development
 help / color / mirror / Atom feed
* fio server/client disconnect bug
@ 2018-02-16  0:32 Jeff Furlong
  2018-03-21  0:16 ` Jeff Furlong
  0 siblings, 1 reply; 21+ messages in thread
From: Jeff Furlong @ 2018-02-16  0:32 UTC (permalink / raw)
  To: fio@vger.kernel.org

Hi All,
With the near latest fio version (fio-3.3-51-gf2cd) using server/client mode, I occasionally see one client get disconnected early.  Hence, the client's IO summary output does not get reported at the end of the job.  The issue seems to occur between 100 and 300 iterations of a job file.  Worse, the conditions for the early disconnect may be tied to the complexity of the job file (such as numjobs or IOPs of device).  Even worse, when using debug mode, the failure seems to reduce to around 1000 iterations of a job file.

When running with

fio --client=host1 test_job_a --client=host2 test_job_b --debug=process,net

...
net      5027  client: handle host2
net      5027  client: got cmd op IOLOG from host2 (pdu=446)
net      5027  client: handle host2
client: host=host2 disconnected
net      5027  client: removed <host2>
net      5027  client: request eta (1)
net      5027  client: requested eta tag 0x1b52c20
net      5027  client: handle host1
net      5027  client: got cmd op TEXT from host1 (pdu=85)
<host1> net      5028  server: got op [SEND_ETA], pdu=0, tag=1b4a970
net      5027  client: handle host1
net      5027  client: got cmd op TEXT from host1 (pdu=61)
<host1> net      5028  server sending status
...

Then the normal output summary only shows the statistics from host1.  The host2 throughput, latency, etc. are never displayed.  However, the iops, bw, and lat logs all seem to have been updated properly.  Sometimes host2 is disconnected early; sometimes host1 is disconnected early.

Why might host2 be disconnected?  I see disconnects when using a switch with one hop and also with directly connecting host1 to host2.  So dropping network packets seems unlikely.  Could the ETA update not be accurate?  Or is it possible host2 finishes the job faster than host1 and closes the connection too early?

In the event host2's job file finishes early, should we still summarize the IO traffic in the output?  How is that condition handled?

If you have suggestions on other debug options, I would appreciate.  Thanks.

Regards,
Jeff



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2018-03-21 21:58 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2018-03-21 21:51                                 ` Jens Axboe
2018-03-21 21:58                                   ` Jeff Furlong
2018-03-21 19:23                     ` Jeff Furlong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox