Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 2015 03:41:47 -0400
From:      Brett Wynkoop <freebsd-arm@wynn.com>
To:        Peter Jeremy <peter@rulingia.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: ZFS on RPi (was: zfs on BeagleBone)
Message-ID:  <20150323034147.476a6f3f@ivory.wynn.com>
In-Reply-To: <20150321065346.GA64358@server.rulingia.com>
References:  <20150311130932.3493a938@ivory.wynn.com> <20150321065346.GA64358@server.rulingia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 21 Mar 2015 17:53:46 +1100
Peter Jeremy <peter@rulingia.com> wrote:


> panic: vm_fault: fault on nofault entry, addr: dd2f1000
> KDB: stack backtrace:
> Uptime: 11m46s
> Physical memory: 473 MB
> Dumping 36 MB:sdhci_bcm0: DMA in use
> 
> The tuning I did was:
> vfs.zfs.arc_max="24M"
> vfs.zfs.vdev.cache.size="5M"
> 

Sorry for the delay.  Other things have kept me from being as attentive
to the arm list as I might like.

It seems you did not tune vm.kmem_size.  In my experience with smallish
systems running FreeBSD with zfs that is mandatory.  My 256M BBone has
this:

vm.kmem_size="256M"

vm.kmem_size_max="256M"

#vfs.zfs.arc_max="40M"
#vfs.zfs.arc_max="64M"
vfs.zfs.arc_max="24M"

vfs.zfs.vdev.cache.size="5M"

I strongly suggest setting vm.kmem_size to your real memory and do the
same with vm.kmem_size_max.  I came up with this after doing loads of
reading for zfs on memory restricted systems.

Remember by default zfs really wants at least 1GB main memory, and that
is still tight, most references claim 2GB is the practical lower limit
on x86.  I have it running on an x86 box with 512MB, but could not make
it run on 384MB on FreeBSD x86.

-Brett

-- 

wynkoop@wynn.com               http://prd4.wynn.com/wynkoop/pgp-keys.txt
917-642-6925
929-272-0000

If cowardly and dishonorable men sometimes shoot unarmed men with army 
pistols or guns, the evil must be prevented by the penitentiary and 
gallows, and not by a general deprivation of a constitutional privilege.

-Honorable J. A. Williams, Circuit Judge - 
                  Wilson v. State, 33 Ark. 557, 34 Am. Rep. 52 (1878).




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