From owner-freebsd-current@freebsd.org Sat Oct 5 09:31:11 2019 Return-Path: Delivered-To: freebsd-current@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 8BB9412DB75 for ; Sat, 5 Oct 2019 09:31:11 +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 46lhM20rRtz4WgV for ; Sat, 5 Oct 2019 09:31:09 +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 x959ViTc052083 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 5 Oct 2019 11:31:45 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1570267905; bh=aKmuHwPGoiehElfv/BP9iFZXcvnuVOSfCk61krdFjXA=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=TIoCLO7zeR6alTZfimTztCqTVzGDRrtJtWDjSufIepJXSvpcP7aosQ44jwIKwRA4/ ORUorIOyHdTdxaenqAc/bjokZwS6k7ppgG5zqO0gqZ1pU+6kHSRSHtV8CRPfPYodGB YPJ5DlxvrlmXy3Sz1OqwKACA8MfN/DBaH8bhCgzU= 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 x959V1xS051762 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Oct 2019 11:31:02 +0200 (CEST) (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 x959V1UU075877; Sat, 5 Oct 2019 11:31:01 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id x959UwPn075876; Sat, 5 Oct 2019 11:30:58 +0200 (CEST) (envelope-from ticso) Date: Sat, 5 Oct 2019 11:30:58 +0200 From: Bernd Walter To: Marek Zarychta Cc: freebsd-current@freebsd.org Subject: Re: ZFS with 32-bit, non-x86 kernel Message-ID: <20191005093058.GJ31607@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <2264fde0-d386-518f-2bdb-2b86afe1faf3@blastwave.org> <095a72fe-c3d8-5c10-447a-659ed6b9f5ff@plan-b.pwste.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <095a72fe-c3d8-5c10-447a-659ed6b9f5ff@plan-b.pwste.edu.pl> 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: 46lhM20rRtz4WgV X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=TIoCLO7z; 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.98)[-0.977,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cicely.de:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.99.149.195.list.dnswl.org : 127.0.20.0]; 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)[]; IP_SCORE(-0.00)[country: DE(-0.01)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Oct 2019 09:31:11 -0000 On Fri, Oct 04, 2019 at 09:53:07PM +0200, Marek Zarychta wrote: > On 04.10.2019 21:37, Ian Lepore wrote: > > On Fri, 2019-10-04 at 13:27 -0600, Warner Losh wrote: > >> On Fri, Oct 4, 2019, 1:07 PM Dennis Clarke wrote: > >> > >>> On 10/4/19 10:05 AM, Andriy Gapon wrote: > >>>> > >>>> Does anyone use ZFS with a 32-bit kernel, that is also not i386 ? > >>>> If you do, could you please let me know? Along with uname -rmp output. > >>>> Thank you! > >>>> > >>> > >>> I don't know if that has even been attempted by anyone. The ZIL and ZFS > >>> log comonents require substantial amounts of memory and I am not aware > >>> of anyone with arm devices that have 8GB+ of memory. I have had FreeBSD > >>> current on RISC-V running fairly well with ZFS however that was a purely > >>> rv64imafdc architecture. > >>> > >> > >> In the FreeBSD 10 time frame I know people were running ZFS on arm7 boards. > >> Iirc, there was a long list of tweaks needed to size of the ZIL. A quick > >> google didn't find it. > >> > >> Otoh, I looked at ZFS for NanoBSD when it first came out. I gave up because > >> the 256MB boards at the time made any kind of storage traffic ran things > >> out of memory. > >> > >> Warner > >> > >> > >> I will watch this thread with curiosity. > > > > There have been several threads about using zfs on armv7 over the > > years. Some of them are from 2013 and indicate little sucess. Others, > > from 2015, indicate it works... > > > > https://lists.freebsd.org/pipermail/freebsd-arm/2015-March/010607.html > > https://lists.freebsd.org/pipermail/freebsd-arm/2015-March/010649.html > > > > There have also been some bug reports as recently as 2017 indicating > > that people are still doing this on small armv7 systems. > > > > -- Ian > > Following this thread, where Bernd Walter wrote small howto: > > https://lists.freebsd.org/pipermail/freebsd-arm/2019-February/019455.html > > I had converted root filesystem to ZFS on SD card used with > RaspberryPi2, then used it with no issues running 13-CURRENT for 6 > months until that old SD card got worn. Yes, a system with 1G RAM works fine. I use it mostly on 64 bit systems, like Pi3, Pine64, Pinebook, ... All of them are 1G-2G RAM. But I also have a lot of 2GB Wandboards, which are 32bit, have two uSD slots and work great. I also have some 1GB Allwinner A20 boards with 1GB RAM and two uSD slots on which I might do it as well to give those boards a purpose. SD cards are notorious for problems after power failure. ZFS works great with flash based media and can handle such media errors just fine. I'm running two wandboards in such a zroot mirror setup to programm microcontrollers with avrdude, openocd, run TTL-UART, ... A lot of missuse and since they are running headless I often just powercycle them if something with USB hangs again. I also found out that reversing an A-Plug can produce a short circuit on the host 5V rail and zroot survided those spontanous reboots just fine. Would be a shame if I couldn't use the wandboards anymore. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.