From owner-freebsd-arm@freebsd.org Tue Oct 29 15:12:03 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 6A3B415990F for ; Tue, 29 Oct 2019 15:12:03 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [195.149.99.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 472ZnG1zJfz4cXT for ; Tue, 29 Oct 2019 15:12:01 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id x9TFCgSJ015432 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 29 Oct 2019 16:12:43 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1572361963; bh=bWiIaF0IHyIu04SkDi57oBAoQI7888thDZ6vLx4OWqw=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=tRbuK9sqP8QbvxiShl2j7mNpfT7/9FAEANDORBiQivMgkUjbPMiuRvEFf4cj2gWt/ BPPRiUevfkyItJ6+2QJrLkVviei8VsAHVjqpBG1G2AVEa23BfHaliFtTqpvf8pT0uj frwuw47bFKz+VHFsVsQJL4jFhvUKRDlWM74Mu4u0= Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id x9TFBmDW008829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 Oct 2019 16:11:48 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTP id x9TFBm4V096231; Tue, 29 Oct 2019 16:11:48 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id x9TFBkfa096230; Tue, 29 Oct 2019 16:11:46 +0100 (CET) (envelope-from ticso) Date: Tue, 29 Oct 2019 16:11:46 +0100 From: Bernd Walter To: John Kennedy Cc: ro Ze , freebsd-arm@freebsd.org Subject: Re: Is it possible to build a ZFS Raspberry Pi 3B/3B+/4 image? with other questions. Message-ID: <20191029151126.GV321@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20191028151043.GA2664@phouka1.phouka.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191028151043.GA2664@phouka1.phouka.net> X-Operating-System: FreeBSD cicely7.cicely.de 12.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-Rspamd-Queue-Id: 472ZnG1zJfz4cXT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=tRbuK9sq; dmarc=none; spf=none (mx1.freebsd.org: domain of ticso@cicely7.cicely.de has no SPF policy when checking 195.149.99.3) smtp.mailfrom=ticso@cicely7.cicely.de X-Spamd-Result: default: False [-1.78 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[ticso@cicely.de]; R_DKIM_ALLOW(-0.20)[cicely.de:s=default]; NEURAL_HAM_MEDIUM(-0.99)[-0.985,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.997,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cicely.de:+]; RCVD_IN_DNSWL_NONE(0.00)[3.99.149.195.list.dnswl.org : 127.0.20.0]; IP_SCORE(-0.00)[country: DE(-0.01)]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:21461, ipnet:195.149.99.0/24, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; FREEMAIL_CC(0.00)[gmail.com] 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: Tue, 29 Oct 2019 15:12:03 -0000 On Mon, Oct 28, 2019 at 08:10:43AM -0700, John Kennedy wrote: > On Sat, Oct 26, 2019 at 07:58:37PM +0900, ro Ze wrote: > > Hi everyone, it is my first FreeBSD post. I am using FreeBSD 12.1-RC2 RPI3 > > image in my Raspberry Pi 3B+. ... > > > > I have a few experience on FreeNAS and I know the two system are not the > > same. On FreeNAS, there is a tool named iocage which is a FreeBSD Jail > > manager. Using the iocage, I am allowed to pass a dedicated network > > interface to the Jail via the vnet feature which is default supported in > > FreeBSD 12.0. With that feature, I have a idea of using FreeBSD Jail in my > > Raspberry Pi and I start to do this. > > FYI, the only jails I use on my RPI is for poudriere. It's a very memory > constrained platform, obviously. > > > Before flashing the image to SD card, I had downloaded x86 DVD and > > installed as a VM to learn the basic command in FreeBSD. Since the > > installation process allowed me to use ZFS as the root file system, I only > > had few trouble in installing the iocage and using the Jail with vnet. > > However, I found that the root file system of FreeBSD RPI3 image is UFS, > > which is not supported by iocage. This means that I will have to use > > another storage device to create a new zpool for iocage. > > > > Since Raspberry Pi doesn't have native SATA port and all it's USB ports are > > come from USB Hub, I believe that using iocage inside the USB will have a > > huge performance drop. However, to try the feature, I adopt this situation, > > create a USB zpool for iocage. I have build a zpool for Jail storage in > > another USB stick in my FreeNAS and I am now import the pool to my > > Raspberry Pi, and mount to the Jail. > > I've het to find a good enough SD card that I thought it IO-overpowered my > USB-attached drive, probably made worse by throwing ZFS on top of it with > my workloads (I'm specifically thinking about available RAM for disk cache). SanDisk extreme cards work perfect for me. I use them for ZFS root in a mirrored setup, one card in slot and if the board has no second uSD slot, then I use an SD reader. 1GB RAM works fine for that. Compiling llvm is my RAM issue these days, even on 2GB boards a buildworld is problematic. I really like to have a system with more memory, just to compile. I've just ordered some RockPro64-4GB for that reason. Unfortunately AFAIK we don't support the RPI4 yet. I'm open for other suggestions on affordable boards with 4-8GB RAM. So far I have an iMX6 system with 4GB, but havn't tried FreeBSD on it yet and it is 32bit. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.