Project

General

Profile

Bug #10006

zfs receive crashes when writing to USB memory stick -- possibly a software timing loop bug

Added by John Bowers 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2018-11-23
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

When trying to install Omniosce to a USB memory stick, zfs receive crashes with the following errors: "SCSI transport failed; reason 'timeout'; retrying command", and "SCSI transport failed; reason 'timeout'; giving up". The failure appears to occur when the installer is running /kayak/lib/install_help.sh.

This reproduces on every memory stick that I've got in my possession. On a slower (Atom based) machine, the process completes successfully, but on a newer n3160 based machine, it fails. It fails at different percentages of the zfs receive process, depending upon the specific memory stick that I use. My guess is that this is dependent upon the size of the internal cache of the memory stick. The reason for this guess is that the transfer process begins relatively rapidly and then pauses before the errors are emitted.

I'd also guess that there is a fixed number of timeouts that are being used in the SCSI driver, but that timeout periods are a function of the CPU speed.

I hope that this information is useful.

Also available in: Atom PDF