From owner-freebsd-cloud@freebsd.org Mon Sep 14 15:36:09 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 B85493D9F58 for ; Mon, 14 Sep 2020 15:36:09 +0000 (UTC) (envelope-from ric.lombardi@gmail.com) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (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 4Bqr6w31JJz3cDl for ; Mon, 14 Sep 2020 15:36:08 +0000 (UTC) (envelope-from ric.lombardi@gmail.com) Received: by mail-oi1-x22c.google.com with SMTP id x69so296588oia.8 for ; Mon, 14 Sep 2020 08:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=BsC1iGlOz6LlxOHJp1Fa620D27ebcoh5U1w0boGsE7o=; b=bezOcaMtNJ/twQTszB0IqTKY68Wjr8XuTyr+I3Gx/9IkSEkKnVhBqcSvR1n1Qz3C2l ZF9HQkKhx2orw0uJF6cuslGfadLJbATPdoRLNfsJNi+x0cWd4pYjlUty4m+/qX1gNzQI taFB/z9O5ewHg/AJRdp+8u/Ox78A5tDF2lRy0dqGzJtRkjEK/BNbkZ9JZlvd0qi0nRip srIUCaHDBguXW5xJZZrTI91fjTYWoBrhX0S2gGCQ37Ebhrgqi7K8o1Y99oJLDz3Jzo84 107zCQEatMh0Qt24R0ZUtGqW+xX2dWBNhlvnwjDziBAOpOFKak6QheXt7GhO4Vo3hPTQ sIqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BsC1iGlOz6LlxOHJp1Fa620D27ebcoh5U1w0boGsE7o=; b=ZhMN3b6LPBNqzmuwQbOud5IdbGlnFGdJEwzm1VN4TKUCtijl8sACBRCf+8bMXGyKv8 DVX3+Vw6sf0da9LJrTReGWhwlBWJMCnEfFyA9TmBZvj0iA+WMA1L30eATEjO1LfuG7PV P4KwmwuIz9n59aqkaproBAyvtG1jdjYVObZU16VWx38XXZ+pU3W+4UCFceHc49JRrXjW juOXVywIlpy5u9vrmgCZ0GAIr9IJDUm4VGoAJ4fonm/pSBNcxcianL/hxG+VLPHn1IfB MhOWPgmXCb+sLMZutcVPqjz4jiXtMmhrPRiqCaXQhaTmhJdkTweScWGQc1KCKWlSC0z7 BwOg== X-Gm-Message-State: AOAM533b0Nkxo3rz6CmjpQb6f0Q8I5xXz0ZxgGI9pZ2nf8rBjRfkapWn MUvHcaNSamrI/bwG5RTcYyDWFctgQGqRr75Amejoy+CE5+4hRw== X-Google-Smtp-Source: ABdhPJxlGDz9p43XGLLZMO/R/TZrXznIxeqYE1KUbD1H7RYq6KtA6+wqAKI5VOBqxK2gkIao8SzHwSmb60LiorHHMqo= X-Received: by 2002:aca:f302:: with SMTP id r2mr8598369oih.151.1600097766960; Mon, 14 Sep 2020 08:36:06 -0700 (PDT) MIME-Version: 1.0 From: Riccardo Lombardi Date: Mon, 14 Sep 2020 17:35:31 +0200 Message-ID: Subject: EC2 AMI size of Freebsd 12 (and maybe a feature request) To: freebsd-cloud@freebsd.org X-Rspamd-Queue-Id: 4Bqr6w31JJz3cDl X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=bezOcaMt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of riclombardi@gmail.com designates 2607:f8b0:4864:20::22c as permitted sender) smtp.mailfrom=riclombardi@gmail.com X-Spamd-Result: default: False [-3.46 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-cloud@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.01)[-1.014]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22c:from]; NEURAL_HAM_SHORT(-0.44)[-0.445]; 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" 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: Mon, 14 Sep 2020 15:36:09 -0000 Hi all and hi Colin, First of all, thank you for all your efforts for making FreeBSD usable in EC2 environments, and sorry for my english. 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 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 custom 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. - Reduce the minimum EBS volume size from the current 10G to 8 or maybe 5 (accordingly with the final size of the new AMI) Thanks and best regards. Riccardo Lombardi