From owner-freebsd-cloud@freebsd.org Wed Jan 20 13:21:38 2021 Return-Path: Delivered-To: freebsd-cloud@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 846C34F5D34 for ; Wed, 20 Jan 2021 13:21:38 +0000 (UTC) (envelope-from raf+GX=5764484d@rafal.net) Received: from smtp-out-4.mxes.net (smtp-out-4.mxes.net [IPv6:2605:d100:2f:10::315]) (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 4DLR4d4kVBz4jVR for ; Wed, 20 Jan 2021 13:21:37 +0000 (UTC) (envelope-from raf+GX=5764484d@rafal.net) Received: from Customer-MUA (mua.mxes.net [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 3ECAF75981; Wed, 20 Jan 2021 08:21:29 -0500 (EST) From: Rafal Lukawiecki Message-Id: <430D4E7C-7D3A-4A86-ADC2-D323F8C3FDB3@rafal.net> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: FreeBSD on AWS Graviton (t4g) Date: Wed, 20 Jan 2021 13:21:27 +0000 In-Reply-To: <30C35A29-17E2-481D-A335-5B1FBB9FB22C@rafal.net> Cc: Colin Percival , freebsd-cloud@freebsd.org To: Rafal Lukawiecki References: <01000176816d1718-26a08928-e08c-466a-8550-552bc746d81f-000000@email.amazonses.com> <30C35A29-17E2-481D-A335-5B1FBB9FB22C@rafal.net> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Sent-To: X-Rspamd-Queue-Id: 4DLR4d4kVBz4jVR X-Spamd-Bar: - X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[mxes.net:s=mta,rafal.net:s=tm]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2605:d100:2f:10::/112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_SPAM_SHORT(1.00)[1.000]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; SPAMHAUS_ZRD(0.00)[2605:d100:2f:10::315:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[mxes.net:+,rafal.net:+]; DMARC_POLICY_ALLOW(-0.50)[rafal.net,reject]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2605:d100:2f:10::315:from]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:19844, ipnet:2605:d100::/32, country:US]; TAGGED_FROM(0.00)[GX=5764484d]; MAILMAN_DEST(0.00)[freebsd-cloud] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2021 13:21:38 -0000 > On 20 Jan 2021, at 13:12, Rafal Lukawiecki via freebsd-cloud = wrote: >=20 > Colin, I am only slowly realising the impact of the points you have = made. :) >=20 >>> On 20 Dec 2020, at 18:33, Colin Percival = wrote: >>>=20 >>> * The EC2 API "shutdown" / "reboot" message is sent via a pl061 GPIO = device >>> and we're dropping it on the floor; consequently "reboot" does = nothing at >>> all, while "shutdown" does nothing until EC2 times out and does a = hard >>> poweroff (without filesystems being unmounted etc). >=20 > I have noticed a bunch of artefacts left over from unclean shutdowns, = which I assume are caused by the above not calling the shutdown rc.d = scripts. Do you know if this is likely to get implemented any time soon, = or are you aware of a simple workaround? Ah, I just noticed a commit from Sept 2020 = https://github.com/freebsd/freebsd-src/commit/1fc1a22868264f3a59074fe90cb2= ac39309d63d5 = that mentions pl061 use on EC2. I suppose that is likely = to end up in 13.0, am I right? Perhaps there is more work that needs to = happen before this leads to a shutdown and in turn rc.d running scripts. Rafal -- Rafal Lukawiecki Data Scientist=20 Project Botticelli Ltd=