From owner-freebsd-current@freebsd.org Sat Sep 12 03:41:58 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 8BEE13F1A5B for ; Sat, 12 Sep 2020 03:41:58 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (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 4BpJMn3Ty2z4KrJ; Sat, 12 Sep 2020 03:41:57 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wr1-x443.google.com with SMTP id x14so13202995wrl.12; Fri, 11 Sep 2020 20:41:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ltQYZ1A30twyCShXqWBzjsYZFNDvlrCHWfeOc7G4pXY=; b=Sv1uvzjFAuD/0jbmLGZiILA+BhUme09tGiw5vv2PXZhEz065oqnlOvobgjGBjfveUO Xavupvitm1rqnMPObNsDOv+X9JdD7BiD/LSi1JlcAXeScsjrwVTaViDY9Mz87GuoW+Jo TqNZZcY7TpqOSdxRnehQBRFLmTEdqPheYpaWvLSwITDJ+PKTCSTbTkoQDtXpldFNLBzb U7HVQFYa4rTq2THNO2ijiTfDmPp4ZIRdbx3mS23Vu9a2/eM7wQfxNilYS7GQM7cc7GkO DMDr0+v66xPGfCGvnacGvOWFHv+wWxNDVeXtrVss+HZUQ30vnfUoMdhvC5HPK0mjIQMe 8qzg== X-Gm-Message-State: AOAM532aJiYEBo+eW07+wNkfPki0D77ikkv3zb2V/L4ODduP1p/7U5j+ iTqgeUjZd1r8Lhk0Mli0Z6MkF6ElsFbusMvi X-Google-Smtp-Source: ABdhPJwi4l5fU9m1cMrNwyQfXpY6TRq4Mfhbb3l+DiaZlLcWt7O04HKRR5zG0Z3K5RtRzb0AH7eaMA== X-Received: by 2002:adf:ce8e:: with SMTP id r14mr4870254wrn.257.1599882115910; Fri, 11 Sep 2020 20:41:55 -0700 (PDT) Received: from [192.168.1.12] (79-66-147-78.dynamic.dsl.as9105.com. [79.66.147.78]) by smtp.gmail.com with ESMTPSA id k22sm8286898wrd.29.2020.09.11.20.41.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 20:41:54 -0700 (PDT) From: Graham Perrin Subject: Re: suspend/resume versus OpenZFS on USB 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> <7ced4903-cf1f-19d1-f2b3-61336992ed11@gmail.com> Message-ID: <82bf782c-c848-66a5-ae52-433531d6dab9@gmail.com> Date: Sat, 12 Sep 2020 04:41:54 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <7ced4903-cf1f-19d1-f2b3-61336992ed11@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4BpJMn3Ty2z4KrJ X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.77 / 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(-0.82)[-0.823]; RECEIVED_SPAMHAUS_PBL(0.00)[79.66.147.78:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; 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(-0.96)[-0.958]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-0.99)[-0.986]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::443:from]; RCVD_TLS_ALL(0.00)[]; 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, 12 Sep 2020 03:41:58 -0000 On 12/09/2020 03:09, Graham Perrin wrote: > … If the pool is ONLINE and imported at suspend time – and if not > actively writing to the device at suspend time … Testing more aggressively (still with a low spec USB flash drive), attempting to suspend _immediately after_ writes to the file system. Second test: ---- root@momh167-gjp4-8570p:~ # date ; uptime ; uname -v ; zfs version Sat Sep 12 04:13:07 BST 2020  4:13AM  up 8 mins, 5 users, load averages: 0.95, 0.60, 0.30 FreeBSD 13.0-CURRENT #64 r365364: Sun Sep  6 01:38:18 BST 2020 root@momh167-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG zfs-0.8.0-1 zfs-kmod-0.8.0-1 root@momh167-gjp4-8570p:~ # zpool status usb ; zfs get mountpoint usb   pool: usb  state: ONLINE   scan: scrub repaired 0B in 00:00:01 with 0 errors on Sat Sep 12 03:20:51 2020 config:         NAME        STATE     READ WRITE CKSUM         usb         ONLINE       0     0     0           da0p1     ONLINE       0     0     0 errors: No known data errors NAME  PROPERTY    VALUE         SOURCE usb   mountpoint  /Volumes/usb  local root@momh167-gjp4-8570p:~ # du -hs /usr/home/grahamperrin/Videos/palmtree.mp4  68M    /usr/home/grahamperrin/Videos/palmtree.mp4 root@momh167-gjp4-8570p:~ # gdd status=progress bs=1M if="/usr/home/grahamperrin/Videos/palmtree.mp4" of="/Volumes/usb/palmtree.mp4" ; date ; acpiconf -s3 ---- In both tests: suspend failed, it was necessary to force off the computer. Photographs of the second test: