Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2019 14:05:20 -0700
From:      John Kennedy <warlock@phouka.net>
To:        Ricky Zhang <zhangchaowang@gmail.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: How to change rootfs from official RPI3 image
Message-ID:  <20190905210520.GA43216@phouka1.phouka.net>
In-Reply-To: <A8C596BB-AC79-4CD2-B70B-E1B3CD36743D@gmail.com>
References:  <0FC8815E-58D7-4196-BF7E-0D6B127B314D@gmail.com> <1668312327.7.1566381369480@localhost> <C5D66D8B-05F2-445A-92A5-CD463B393EEA@gmail.com> <61580006.14.1566389702495@localhost> <D815D0C1-E17A-412F-AEF0-772E7B1DE857@gmail.com> <op.z662cwh9kndu52@sjakie> <A8C596BB-AC79-4CD2-B70B-E1B3CD36743D@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 28, 2019 at 05:55:41AM -0400, Ricky Zhang wrote:
> PS: TBH, there are so many hardware limitations on RPI 3B+. 
> 
> - The 1GB memory is too small for ZFS or running jail. I can???t even clone FreeBSD port form Git repo due to OOM. 
> - The Ethernet is built on USB 2.0. The network speed is slow. 
> - USB 2.0 is slow when do disk I/O. 
> 
> In addition, ARM64 is still 2nd tier support from FreeBSD. The port security update may be out of date.
> 
> Based on my observations, RPI 3B+ is not suitable for my experiment purpose where I want to deploy a word press jail. I may keep it to do some security experiments, instead.

  For what it is worth and to establish my stubborn/crazy credentials, I've got
my RPI3B+ running on ZFS and currently using poudriere jail to build my flavor
of ports.  It's grinding on llvm80 for the 2nd time (took more than 24 hours
the first time so got killed by the stock timeout), working towards X11 with
firefox (although I'll have to go to 12-stable to get around the rust problem).

  Along with ZFS, one of the first things I did was give myself ~8G of swap
as a native partition.  Anything more than straight paging-to-disk seemed to
cause too many problems during a memory crunch, which as you noticed is
quite easy to do.

  Using FreeBSD-sourced packages, I could certainly pull down the kernel
source and compile it (~31 hours), as well as the ports source via git.  You
may need to tweak some git settings (via .gitconfig; threads, memory size).
I know you'll need to tweak them to git garbage collect on those repos.

  It is slow with the USB disk.  Memory is an issue.  Swap space is an issue,
and if you're not careful your /tmp (via tmpfs) will get you too.

  4GB on a RPI4 with USB3-speed disks (or better?) would be a nice boost,
once that port gets working.  4GB RPI4s seem to be scarce.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190905210520.GA43216>