From owner-freebsd-current@freebsd.org Fri Nov 27 18:19:49 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 B41694ADEAE for ; Fri, 27 Nov 2020 18:19:49 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CjNFc6w7pz3qnT; Fri, 27 Nov 2020 18:19:48 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm1-x32f.google.com with SMTP id 10so5854407wml.2; Fri, 27 Nov 2020 10:19:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=/0tsIRa22Jxk4ATMRJfHxhgTiOIf6JPbBSXs+qSIqyg=; b=nac1dP6RM4xjQt1O/l/87pgG+jFlTwtZIIz8Ii4rgD3Gr2J4R/ugoRU6/tumhm+eis VQvMZci+4lGf3nTBeh95ZacsZ+vuJSpI8jtyZdMQdqLKamV1l4cMatur3oxA1hQUE29+ pU6H/pZfRA+nalfnbWC5X9P/Sgk4RGra130msAcDodS8pFXwSfq208cNgJDvtabDvin7 dHVtc97CX+ZgsBJX2Qy/RDt9dKE5Qb/GWoArEHhknxao+UJr3uqIAN5h+xrVnY0SbHrN LvgryboRi4V8OKqmbGKUdTghlbpsgjwRe+gblUYSAWX0WY403qogKcMPxg5JlU7hE7K/ WOIQ== X-Gm-Message-State: AOAM530a7Fl6uUSCbbXYM+v74aV93RCmmfqz/do2RMsloqdDUCI8d3Rr HZe58J2HTnlmq11ncvKAuslebpMras3C/Q== X-Google-Smtp-Source: ABdhPJxJEK60jZ7RrBaqjRg5t2vDgXzZ3Or01GY23Q3DdRccMnOm4e6C7eBwjfBS8I2YoGWmlZCKJw== X-Received: by 2002:a1c:2e48:: with SMTP id u69mr10551508wmu.30.1606501187205; Fri, 27 Nov 2020 10:19:47 -0800 (PST) Received: from [192.168.1.11] (79-66-147-78.dynamic.dsl.as9105.com. [79.66.147.78]) by smtp.gmail.com with ESMTPSA id l11sm13350680wmh.46.2020.11.27.10.19.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Nov 2020 10:19:46 -0800 (PST) Subject: Re: suspend/resume versus OpenZFS on USB From: Graham Perrin To: FreeBSD Current , Matthew Macy , Ryan Moeller Cc: Hans Petter Selasky References: <6824e9f5-0496-a9ba-9cf2-01a6c8b34a4e@selasky.org> <24c4f60d-d937-7763-9cea-697de75109a6@gmail.com> <7cd8c682-0c4b-c332-c6de-d17dccbd9672@selasky.org> Message-ID: Date: Fri, 27 Nov 2020 18:19:45 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4CjNFc6w7pz3qnT X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[79.66.147.78:received]; FROM_EQ_ENVFROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::32f:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::32f:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32f:from]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Fri, 27 Nov 2020 18:19:49 -0000 On 05/09/2020 18:18, Graham Perrin wrote: > On 05/09/2020 10:26, Hans Petter Selasky wrote: >> 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 > > Hi > > If I export the pool before suspend, no problem at resume time. > > … Please Is there any way to avoid the need to export before suspending the computer? Might there be a future improvement to support for USB? Thanks