From nobody Mon Sep 02 15:19:12 2024 X-Original-To: freebsd-cloud@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WyC8w0vxBz5TZf3 for ; Mon, 02 Sep 2024 15:19:28 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (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 4WyC8t6LSDz4mjH for ; Mon, 2 Sep 2024 15:19:26 +0000 (UTC) (envelope-from pete@nomadlogic.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nomadlogic.org header.s=04242021 header.b=O5zytUOE; dmarc=pass (policy=quarantine) header.from=nomadlogic.org; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 66.165.241.226 as permitted sender) smtp.mailfrom=pete@nomadlogic.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomadlogic.org; s=04242021; t=1725290349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LXSJ14kNEcokcmuKJr7j6msoOGdkj03Y/zweSJMv+ag=; b=O5zytUOE+PlOZsri8iRtszg5m/YFyjgBTnM6pZw+DlXvGhhF7iCcvWFrSFId2iH0h44/a3 4+ggmHHM7t5IeXRGPwIUc01aOX5zoWyidlEXKlrGEK1OfScYIiHucuJfLR86aXAx+kpHYB v8jCtFHozeglPlpD9XiaKtp1RCH6qF4= Received: from [192.168.1.160] ( [47.154.20.141]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 6747a196 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 2 Sep 2024 15:19:08 +0000 (UTC) Message-ID: <89fab9d3-1ace-4444-aafb-cbdd9a5b0f52@nomadlogic.org> Date: Mon, 2 Sep 2024 08:19:12 -0700 List-Id: FreeBSD on cloud platforms (EC2, GCE, Azure, etc.) List-Archive: https://lists.freebsd.org/archives/freebsd-cloud List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-cloud@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: New FreeBSD/EC2 AMIs: "small" flavour To: freebsd-cloud@freebsd.org References: <66e66b9b-084b-47e4-862e-98141c47a856@app.fastmail.com> <01000191afb2427e-8bb3eb6e-81f7-48a9-bc10-d7e4e8865dd2-000000@email.amazonses.com> <6d44f095-d137-456f-8194-e3430647810f@app.fastmail.com> Content-Language: en-US From: Pete Wright In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.979]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-cloud@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-cloud@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[nomadlogic.org:+] X-Rspamd-Queue-Id: 4WyC8t6LSDz4mjH On 9/1/24 17:08, Colin Percival wrote: > On 9/1/24 16:46, Dan Langille wrote: >> On Sun, Sep 1, 2024, at 6:26 PM, Colin Percival wrote: >>> On 9/1/24 12:09, Dan Langille wrote: >>>> On Sun, Sep 1, 2024, at 2:46 PM, Colin Percival wrote: >>>>> I'm planning on adding a new flavour of FreeBSD/EC2 AMIs: "Small" >>>>> AMIs, >>>>> which are the standard FreeBSD "base" images minus some bits which >>>>> are >>>>> optional or generally less likely to be useful for production >>>>> systems: >>>>> [...] >>>> >>>> I’m going to guess the main benefit is lower memory usage. Which >>>> means smaller instances can be used. >>> >>> This should have no effect on memory usage aside from the fact that >>> getting rid of some of the large debug files will make freebsd-update >>> use less memory.  These are all bits which are never loaded from disk >>> aside from that. >> >> The goal is to improve freebsd-update? > > No, the goal is to avoid wasted disk space.  A t4g.nano instance costs > $3/month and gp3 EBS volumes cost $0.08/GB/month, so if you shave off > 4 GB of disk usage and make your EBS volumes 4 GB smaller you've reduced > your instance cost by 10%. > this seems like a good idea from my POV as an admin.  Although I think it may be helpful to keep the AWS CLI install on boot step in some use-cases.  My general workflow is to use packer to build a site specific AMI where I install our specific configs and run freebsd-update then disable it on subsequent boots.  My goal in those scenarios is to improve first-boot time for auto-scaling. When I do use "vanilla" AMI's its usually for a research/testing/debugging task so having the awscli get installed on firstboot would save me some hassle of having to do that by hand.  It's certainly not a deal breaker though, just my two bits. -pete -- Pete Wright pete@nomadlogic.org