From owner-freebsd-cloud@freebsd.org Thu Sep 17 22:22:44 2020 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 7C1613EF46D for ; Thu, 17 Sep 2020 22:22:44 +0000 (UTC) (envelope-from ric.lombardi@gmail.com) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 4Bss0g4Sm9z3Ssv for ; Thu, 17 Sep 2020 22:22:43 +0000 (UTC) (envelope-from ric.lombardi@gmail.com) Received: by mail-oi1-x22a.google.com with SMTP id n2so4445791oij.1 for ; Thu, 17 Sep 2020 15:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=doQOGoVdY6E44jiFxNgz30mw7Xzv19XweALWB99zOTY=; b=TtzRB9wSLsPgFVwV+Edu65fb04yB/E4R0lQ9L0gZbl7mY/38SlxYkBy7mle+pomsmc 0WeKF8v5u1Ka2/hT+u8Dh0PjTIRyBgIkVBnreHE68ultBoO/nCMd/RQj6W7uOKboTxBO mmHh3FW+TUGIkvXf6eHAfXA7zqHI5kjot/XnBMDj6ufCWLu9lU9DQMfvDPlPzp2hU40y kTntg1mMsWiCzwhvKBW3eoToz+cTdpPfqgatpkCq69e3ryeIHpYs4hm1bVX+4tjVZ8FF LuPzJidNfchMLdg9xn6UGzr4rvMVwo63xWGL4ZNmZKk8nP95F37prgtQPS3SWlPAIQ7B 7CfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=doQOGoVdY6E44jiFxNgz30mw7Xzv19XweALWB99zOTY=; b=JYgIuf0OFKfFqvERZSwmd7WeQG+jOfl8EMMgtVhehAPJdFaPiEcjlM1yeFDsaLFptW aODn0pemDcOCw4WZeFli7Ve+UZ4MFXgm+tWDczJIBIh5B0Se91+yOKH6gaSdHv1fmtHD h7IsUccUunOO4NjM4pdV8W1eehcQI0P7Bj6CU2xzui+kcHAsLfdYQTBCx8wNPpCR+ftI ZuEQ8VaPWMlBt6IGtKJCS4CK4BTIUj4UXgCvtEY5tbMmajQcHhTu+zR8UkCajoHhKrKU Gi02eEexRZQOkkFCEhJ3DFP3s910psbBSbuTe6iWTdx2hub8/Jc14E3NVohWovoUvn4H /qGA== X-Gm-Message-State: AOAM533OnPDV3iRK0zBUbdDbgcOX0Nrc0IqMSWQ5a74qYA06xQf8x387 aZTE9se0iCuDrsUgKWRWBl1+emwwlKuiP/JEj4NAzFDfoykhzg== X-Google-Smtp-Source: ABdhPJxv0kX/Su1BdIsnbdbaLuDt/cERppGXaTOHToGlzVqwAaZbmDzuNj5UknrNXigQONcmFU4vuA88Lhu+xph9fgc= X-Received: by 2002:aca:4e03:: with SMTP id c3mr7155030oib.169.1600381362329; Thu, 17 Sep 2020 15:22:42 -0700 (PDT) MIME-Version: 1.0 References: <010001748ea604b7-3edaf425-d677-4a88-90fd-791d869c9a20-000000@email.amazonses.com> In-Reply-To: <010001748ea604b7-3edaf425-d677-4a88-90fd-791d869c9a20-000000@email.amazonses.com> From: Riccardo Lombardi Date: Fri, 18 Sep 2020 00:22:06 +0200 Message-ID: Subject: Re: EC2 AMI size of Freebsd 12 (and maybe a feature request) To: Colin Percival Cc: freebsd-cloud@freebsd.org X-Rspamd-Queue-Id: 4Bss0g4Sm9z3Ssv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=TtzRB9wS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of riclombardi@gmail.com designates 2607:f8b0:4864:20::22a as permitted sender) smtp.mailfrom=riclombardi@gmail.com X-Spamd-Result: default: False [-3.31 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.02)[-1.024]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-cloud@freebsd.org]; NEURAL_HAM_LONG(-1.04)[-1.039]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22a:from]; NEURAL_HAM_SHORT(-0.25)[-0.247]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-cloud]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.33 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: Thu, 17 Sep 2020 22:22:44 -0000 El mar., 15 sept. 2020 a las 0:04, Colin Percival () escribi=C3=B3: > On 2020-09-14 08:35, Riccardo Lombardi wrote: > > First of all, thank you for all your efforts for making FreeBSD usable = in > > EC2 environments, and sorry for my english. > > Your English seems fine to me! > Thanks! > > > I'm mainly a hobby web developer, with limited (end-user) experience in > > Unix systems. > > I recently switched to FreeBSD for my web server and noticed that the > > "out-of-the-box" FreeBSD 12 AMI in AWS uses a lot of disk space (3.8Gb > > using the df -h command) in comparison with other Linux distributions, > > which usually start with 1-1.5Gb disk space. > > I also wanted to point out that the size of the FreeBSD 11 AMI is > strangely > > quite smaller (2.4G). > > The largest directories I could find in FreeBSD 12 are: > > /usr/lib/debug: 1.5G > > /var/db/freebsd-update: 508M > > You're seeing two things here: > 1. FreeBSD 12 has far more space used for debug symbols than FreeBSD 11 > (and > FreeBSD 13 has even more -- over 2 GB). > 2. When you launched FreeBSD 12 it downloaded updates -- including kernel > updates and the associated updated debug symbols. Assuming the FreeBSD 1= 1 > you launched was 11.4, it didn't have nearly as many updates to download. > Yes, this is probably what happened, since I tried it a few weeks ago, these should be the last versions. > > > My aim (and I suppose this could be useful for many developers and EC2 > > users) was originally to shrink the AMI size by eliminating things that > are > > not necessary in a production environment (maybe the kernel-debug tools= ). > > Unfortunately I don't think i have enough knowledge to make my own cust= om > > light AMI. > > > > So, if this could be useful for the community, and I think so, it would > be > > very nice to see some of the following things / features: > > - First of all check it there's some problem with the disk size of the > > FreeBSD 12 (compared with the 11, maybe there are old unused libraries > from > > the update), and eventually publish a new, "clean", AMI > > - OR/AND maybe implement a "lightweight" version of the FreeBSD AMI, > > without some non essential components. > > I'm seriously considering providing "minimal" AMIs without debug symbols > (and > maybe other stuff; I'm not sure if there's anything else worth excluding)= . > Right now this and other "flavoured FreeBSDs" is blocked by Amazon not > enabling the SSM Parameter Store for FreeBSD to register AMIs. > > Thank you, this is really great news. May I suggest, if Amazon's reaction time is still too slow or tending to infinity, the "CentOS" way. I don't know the actual reason, but their AMIs are not listed on the official Marketplace, they just publish the AMI-IDs on their website, just like any community AMI. Thanks again and best regards. > > > -- > Colin Percival > Security Officer Emeritus, FreeBSD | The power to serve > Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoi= d >