From nobody Sat Mar 19 04:07:57 2022 X-Original-To: freebsd-stable@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 CC9421A37AFC for ; Sat, 19 Mar 2022 04:08:10 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KL6mp4tLgz4dpx; Sat, 19 Mar 2022 04:08:10 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647662890; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Y7gN7jrD42/y+otUe1+6KNMUmlIOqLNFOwZ16RhD1zs=; b=vGwTZafMhFq699CABqtApzSxFI89aIKLMqyxcb1HsH3f4w2U4QJClXj30ucF++lXGlEroW WCZEvWNJqRecl6aNP9fDq/gz06tTNYHFVOEqlOEj3HqxPAZzNlVgboZ961qJXrS4jCH4/e U5noVodG6QP6RbQL4QIdn5xFtGTn6VTaaVnjAR9sbQ7vY+9zslhNC3DbE2wiNQeBQkhSmV yqxQp31h/84dMsS74Lv91kRk69dxkHCYDpZ3qTEwV4lWu4st1GvmTNEzv9E94liIFuy7gH y/yAKkdoBNhtW3js2E0IELWuxxVz7O3RuKd9CHFrfNRo0fT02blAOCjXu/I6/w== Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 80CA82C328; Sat, 19 Mar 2022 04:08:10 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lf1-f42.google.com with SMTP id w27so16895587lfa.5; Fri, 18 Mar 2022 21:08:10 -0700 (PDT) X-Gm-Message-State: AOAM530KPkH0b2d8+3pEW9zowBZMYpmZCJkPF75XvEq2tFKrOx3lNWOp 1my1HbpY3qycBv4T/zSsOnkLNP761/0nLZKbJeA= X-Google-Smtp-Source: ABdhPJzsvuYEOEzXAAVjTRSP0777LjEk0yXKYibmQRYCuETA6B06+a48s5n112Yb5LGi6ZtQv5ThC/IGx1fxXXN29AA= X-Received: by 2002:ac2:4a61:0:b0:448:1d0b:b6fb with SMTP id q1-20020ac24a61000000b004481d0bb6fbmr7671374lfp.321.1647662889041; Fri, 18 Mar 2022 21:08:09 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: <72d30fc3-0ce4-51f8-ac7f-1b8eff63f3a9@grosbein.net> <373722bf-8f1d-7400-f639-83abdcd9fa10@grosbein.net> <20220319120900.3bca186fab063731706cbd65@dec.sakura.ne.jp> In-Reply-To: From: Kyle Evans Date: Fri, 18 Mar 2022 23:07:57 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: 13.1 mini-memstick installation image size To: Warner Losh Cc: Tomoaki AOKI , Eugene Grosbein , FreeBSD stable , FreeBSD Release Engineering Team Content-Type: text/plain; charset="UTF-8" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647662890; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Y7gN7jrD42/y+otUe1+6KNMUmlIOqLNFOwZ16RhD1zs=; b=cGkKOFOBcTHcoMfqRsVOjm/JYLEFdfYjPIq01qnQsaXmZgxK5G8dtNAUzsBr7F0mnajQy1 DZACQ822lEPIEIhObYywJI22npwY4aipawrlV3IFVeQVB2DrXj1mrUGJ6WCrIP+oGYMD7Y 95s3EFZbNRGQzVQ6nTNs4ogi7LW4nwxzbTCLiONKqm/KqMdf+64g718UTZ7G4vbbRQgG4d oSCeEnE746MEH0p0+wLmBoUaAvgJ5QRLTACgNmYq4owHS0hHtvMWE2Fc9ncOZ4iA+25p55 OUlZbTxv2rZ8uxSuuaFAdJ7iT1i028oMDP6rNigOhXRfhyHZWo+kHHDV87dUbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647662890; a=rsa-sha256; cv=none; b=Bl5CLIJnSV6BvXB6BnyKgUCVUVy7jbG/mVGO83yue0RQ5hsigYICLtjo/kqk3r5D8crM+0 2PmI+4nmMvzR+47SHHKwsIKBtpedctAIBR3sOD0VOUuks3H8Mot8YlA7OQuYRQk7Wk6EjA sjUeQqHy9AfOPxTHM9Qy7QesTqD2i5OzikR7Nn2jv3/7lFP2HuTAqmFOQRGF7pV0x3ugIX Pp8d5a72WU15VvPRX45W4lRJsYInHlXN8bFIJbvsrBh8B/vMhEFiy+pWLTqz6Mtb85Ko41 CBbGCNzmlb8Jh4ueuA+Wip0Vqbdb9QLsyd9BSUFW+nqEGqNWtZJYZJgQhXrOGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On Fri, Mar 18, 2022 at 10:11 PM Warner Losh wrote: > > On Fri, Mar 18, 2022, 9:09 PM Tomoaki AOKI wrote: >> >> On Sat, 19 Mar 2022 08:54:45 +0700 >> Eugene Grosbein wrote: >> >> > 19.03.2022 3:58, Warner Losh wrote: >> > >> > > On Fri, Mar 18, 2022 at 8:12 AM Eugene Grosbein > wrote: >> > > >> > > Hi! >> > > >> > > I wonder if we really need /usr/share to be over 106MB in FreeBSD-13.1-BETA1-amd64-mini-memstick.img >> > > increasing its uncompressed size upto 434MB ? Same for bootonly image that is somewhat less >> > > but it's still pretty large to be used for network booting some hoster's virtual machine, for example. >> > > >> > > Isn't it time to use GEOM_UZIP, move kernel modules to /boot/modules out of /boot/kernel >> > > and compress /boot/modules (141MB) and /usr (165MB) to reduce size of "mini" installatiom media drastically? >> > > >> > > >> > > Or we could just compress the modules. We've supported loading compressed modules for a long time.... >> > >> > AFAIK, kldload cannot load compressed modules, only loader can. >> >> If so, kldload should support it as loader does. > > > I thought I'd added it years ago by uncomptessing to /tmp and loading it from there.. > The kldload(2) interface feels kind of ugly for this... I find myself often referencing `kldstat- v` to quickly figure out exactly which module I've loaded by path, but we don't really have a way of aliasing these back to the compressed source.