From owner-freebsd-arm@freebsd.org Wed Aug 28 14:18:51 2019 Return-Path: Delivered-To: freebsd-arm@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 57B90DDF5C for ; Wed, 28 Aug 2019 14:18:51 +0000 (UTC) (envelope-from 4250.10.freebsd-arm=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46JSXV30L4z4GY7 for ; Wed, 28 Aug 2019 14:18:50 +0000 (UTC) (envelope-from 4250.10.freebsd-arm=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1567001930; x=1569593930; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=BL2yf5wEbEeaxAZ8mZDLzOfJvTPsZRg9PFj1WT1B03A=; b=Q3V3K5dcPDPIp1vYeIFw63JuphWhEkFD89zoCAZwWe7pDEFZ5/uouxwDQ/SoFBpn16Vd3KDfol8Remrj+dkZKnfxWIZH6cf7/ltaUdRojwb61kqbbboPgVk/IRKnz51GWyUWjiO3RdNi7pA7qBnYgLvFcd440bIvKhOq7mbAkfE= X-Thread-Info: NDI1MC4xMi4xYzEwMDAwMDAwNjYyYWMuZnJlZWJzZC1hcm09ZnJlZWJzZC5vcmc= Received: from r4.h.in.socketlabs.com (s1-b40f.socketlabs.email-od.com [142.0.180.15]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Wed, 28 Aug 2019 10:18:44 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r4.h.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Wed, 28 Aug 2019 10:18:43 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1i2ymX-000HNp-M7; Wed, 28 Aug 2019 15:18:41 +0100 Date: Wed, 28 Aug 2019 15:18:41 +0100 From: Steve O'Hara-Smith To: Ricky Zhang Cc: Ronald Klop , freebsd-arm@freebsd.org Subject: Re: How to change rootfs from official RPI3 image Message-Id: <20190828151841.f17896e859aacbfb8eecf5fc@sohara.org> In-Reply-To: References: <0FC8815E-58D7-4196-BF7E-0D6B127B314D@gmail.com> <1668312327.7.1566381369480@localhost> <61580006.14.1566389702495@localhost> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 46JSXV30L4z4GY7 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=Q3V3K5dc; dmarc=none; spf=pass (mx1.freebsd.org: domain of 4250.10.freebsd-arm=freebsd.org@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.10.freebsd-arm=freebsd.org@email-od.com X-Spamd-Result: default: False [-3.06 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[email-od.com:+]; NEURAL_HAM_SHORT(-0.87)[-0.870,0]; FORGED_SENDER(0.00)[steve@sohara.org,4250.10.freebsd-arm=freebsd.org@email-od.com]; FREEMAIL_TO(0.00)[gmail.com]; IP_SCORE(-0.20)[ip: (-0.48), ipnet: 142.0.176.0/22(-0.26), asn: 7381(-0.19), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.10.freebsd-arm=freebsd.org@email-od.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.995,0]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; FORGED_SENDER_VERP_SRS(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[198.176.0.142.list.dnswl.org : 127.0.15.0]; ENVFROM_VERP(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2019 14:18:51 -0000 On Wed, 28 Aug 2019 05:55:41 -0400 Ricky Zhang wrote: > - The 1GB memory is too small for ZFS or running jail. I can’t even clone > FreeBSD port form Git repo due to OOM. With small memory it is worthwhile severely restricting the ARC allocation for ZFS by setting vfs.zfs.arc_max to match vfs.zfs.arc_min (I'm not sure if you can reduce both safely - worth experimenting). Ny default ZFS is configured too greedy to run much else unless you have a lot of memory. -- Steve O'Hara-Smith