From owner-freebsd-current@freebsd.org Sat Sep 5 09:27:13 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 69C093E604C for ; Sat, 5 Sep 2020 09:27:13 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bk8MN2vfjz49dp; Sat, 5 Sep 2020 09:27:11 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 99660260974; Sat, 5 Sep 2020 11:27:09 +0200 (CEST) Subject: Re: suspend/resume versus OpenZFS on USB To: Graham Perrin Cc: FreeBSD Current , Matthew Macy , Ryan Moeller References: <6824e9f5-0496-a9ba-9cf2-01a6c8b34a4e@selasky.org> <24c4f60d-d937-7763-9cea-697de75109a6@gmail.com> From: Hans Petter Selasky Message-ID: <7cd8c682-0c4b-c332-c6de-d17dccbd9672@selasky.org> Date: Sat, 5 Sep 2020 11:26:41 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <24c4f60d-d937-7763-9cea-697de75109a6@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Bk8MN2vfjz49dp X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.40 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-0.98)[-0.981]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.08)[-0.079]; NEURAL_HAM_MEDIUM(-1.04)[-1.042]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Sep 2020 09:27:13 -0000 On 2020-09-05 11:00, Graham Perrin wrote: > On 04/09/2020 09:01, Hans Petter Selasky wrote: >> On 2020-09-04 01:42, Graham Perrin wrote: >>> This week for the first time I toyed with OpenZFS on a USB device: a >>> mobile hard disk drive connected to the dock of an HP EliteBook 8570p. >>> >>> A light test, with the pool imported but not writing to the dataset >>> at suspend time. >>> >>> At resume time (22:31), the device was still physically connected but >>> the pool suffered an I/O failure (and the keyboard and trackball on >>> USB were unusable). > … >> We need output from "procstat -akk" to see where ZFS/USB is hanging. >> >> --HPS > > For test purposes I reproduced the behaviour with a different device, a > USB flash drive (connected to the same dock). > > Attached: > > 2020-09-05 09:27:55 procstat -akk.txt > > – output from procstat -akk > > 2020-09-05 09:17:59 suspend 09:26:49 resume.txt > > – the output in context. > > Thank you > > Graham > > Hi, USB is not hanging. It looks like a problem with USB resume, that no devices are recognized, until you re-plug them ... --HPS