From owner-freebsd-embedded@freebsd.org Tue Sep 10 14:02:26 2019 Return-Path: Delivered-To: freebsd-embedded@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 DAAECD74CD for ; Tue, 10 Sep 2019 14:02:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 46SRYZ1G5gz4TQs for ; Tue, 10 Sep 2019 14:02:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x733.google.com with SMTP id s18so17176170qkj.3 for ; Tue, 10 Sep 2019 07:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KVZmAagWafbnT7lOeo1U1N1iMzWDuEdqSR/7TrBFwuw=; b=bw+nDW1/E3BrxVUx6+yrZ1wwbT3AeTbh1GVEgilRC4hI1OpP42UGf9PsZdZeeW6HcT e9360AgPNrBaHJfBN0UprKLt1MzLchT+GqDDmpDMZpXGf6x7VKIg5D7bWXRoSYfi2/iP 4As32vQLWcyIT8vuPk9j3VIv5l6Z8hDWWzWSxUxnoId5hTS5v7KIMb6sh+jro4jGl33Y PkgCxdTUqgVHV6eBBHSHBGbNLg1aH/chNsuxGHKVnz1HesxbUUyxZrFtJU1Ys5xpQ7zJ PdFaCt/ypwqZYOLlPWYNTr4E55m9AnZdN6jii3ODBsz4Txa+84RWVAX4SVcLFeq+FjB1 B66Q== 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=KVZmAagWafbnT7lOeo1U1N1iMzWDuEdqSR/7TrBFwuw=; b=EMguDS7k8TeZqfVLtuac01PpAace9VCeu3NCesaqXpJAA+8H5MoE+NgAnaQB80JLKO Fq8Q6zVRKu2AOQyx3c1gQWSkyWnEelFLuHp8lShWiEOKrKeznyT7aDwRBBYXSCPw2yDf SPIn2VnLYJnX4T/u0WeNDin0+VwX9h8cBZIImy0JtAUNnFqDon3t94rJUMf16/Oth2Ze rH6efKZMxkxTf3DakURHOREQM4M3a7t3VvrwNudSQufcfdYrltpMAQ6qNn3kOZXSrXpz xCFKPvc8++IWfVrVNcwhjUVGkKRf0GdhAbouLhmKxgNwcL9DqUsCFVPBGuXIBXLEOLDH mWow== X-Gm-Message-State: APjAAAVKpR2b6o+PvWqriEgBtNCnxDelFjfbvlPxkpFH66Mcf18JxgXO i6cX17gKBZr17stEWC5YpGRQp8D9Q4h4Opgi37IaXwypWTM= X-Google-Smtp-Source: APXvYqwHXxBgQMFNYw8oRcvLGFJd3I5fi5STRauLnVF2BiRPN5Eh5uOcPa2qKpayVS2J0lm+yVP82jFUb97oumtqCi4= X-Received: by 2002:a05:620a:16af:: with SMTP id s15mr17054712qkj.380.1568124144476; Tue, 10 Sep 2019 07:02:24 -0700 (PDT) MIME-Version: 1.0 References: <70eb2817-31d6-5671-11c2-dc2c4cc21850@free.fr> <06cd90cd-cb9c-a91e-f8c7-3bcdd1e4a226@denninger.net> In-Reply-To: <06cd90cd-cb9c-a91e-f8c7-3bcdd1e4a226@denninger.net> From: Warner Losh Date: Tue, 10 Sep 2019 08:02:12 -0600 Message-ID: Subject: Re: Default parameters for NanoBSD To: Karl Denninger Cc: freebsd-embedded X-Rspamd-Queue-Id: 46SRYZ1G5gz4TQs X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=bw+nDW1/; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::733) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.87 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-embedded@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.87)[ip: (-9.32), ipnet: 2607:f8b0::/32(-2.73), asn: 15169(-2.26), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Sep 2019 14:02:26 -0000 On Tue, Sep 10, 2019, 7:59 AM Karl Denninger wrote: > On 9/10/2019 08:53, Warner Losh wrote: > > On Tue, Sep 10, 2019 at 3:28 AM Fabien Costard > > wrote: > > > >> Hello everyone, > >> > >> This is a question about the default values used for the nanobsd. > >> In the current default configuration (defaults.sh), the media size is > >> set to 2000000 (NANO_MEDIASIZE=2000000). > >> This size (1GB) does not allow to make an image when you follow the > >> documentation online. > >> > >> I know that the purpose of the nanobsd is to make "light" FreeBSD system > >> but would it be better to change the default media size when someone > >> (like me) try to use and understand it step by step ? > >> > >> I found the media size have to be 9600000 (around 4.8GB) (to work with 2 > >> images) > >> > >> What do you think about it ? > >> > > I built an image yesterday, and 1GB was still large enough. What arch > were > > you doing? What other things went onto the package? FreeBSD itself, > without > > compilers, should clock in around 300MB. > > > > I have no problem bumping the size. Today it's hard to buy something > > smaller than 16GB (though there's a lot of lots of 4GB and 8GB on amazon, > > the sweet spot for price has moved to 32GB). It's likely time. I like to > > keep it small because the images are copied around and that takes up > space. > > > > Warner > > "xz" is excellent at turning a "sparse" NanoBSD file into something > more-representative of the actual bits on the disk as opposed to the > allocated size.... > Dd that copies the partition still takes more time... Warner -- > Karl Denninger > karl@denninger.net > /The Market Ticker/ > /[S/MIME encrypted email preferred]/ >