News for hackers. Stuff that matters.
Re:FreeBSD on the raspberry pi by forinti on Sunday January 03, 2016 @03:41AM (#10829957)
Great job. How does it perform? I thought ZFS needed tons of RAM.
Re:FreeBSD on the raspberry pi by bespoke_engnr on Sunday January 03, 2016 @12:08PM (#10831269)
Aside from the "needs many gigs of RAM, even without deduplication turned on" angle, the lack of ECC memory would prevent me from using ZFS on raspi.

Sooner or later you will trash your data unless you're using ECC memory (which the Raspberry Pi RAM chips are not): http://louwrentius.com/please-use-zfs-with-ecc-memory.html

For the record, I also think it's cool to get this compiled and running on RasPi; just wanted to add the ECC info for anyone now thinking of doing something with this in production :-D.

Re:FreeBSD on the raspberry pi by jlgaddis on Sunday January 03, 2016 @06:46PM (#10833174)
ZFS without ECC is no worse than any other file system which doesn't do checksumming.
Re:FreeBSD on the raspberry pi by lorenzfx on Monday January 04, 2016 @07:11AM (#10835130)
See a quote from Matt(hew) Ahrens (zfs developer)[0]:

  There's nothing special about ZFS that requires/encourages the use
  of ECC RAM more so than any other filesystem. [...] I would simply
  say: if you love your data, use ECC RAM. Additionally, use a
  filesystem that checksums your data, such as ZFS.
[0] http://arstechnica.com/civis/viewtopic.php?f=2&t=1235679&p=2...
Re:FreeBSD on the raspberry pi by awqrre on Sunday January 03, 2016 @11:56AM (#10831220)
The Raspberry-Pi can't perform that good because it lacks USB-3 or something else with good performance (it only has USB-2)... It is not a very good choice for a file server. The ODROID-XU4 seems like a much better choice even if it is double the price.
Re:FreeBSD on the raspberry pi by jacquesm on Sunday January 03, 2016 @05:23AM (#10830149)
1G is not a lot of RAM?
Re:FreeBSD on the raspberry pi by forinti on Sunday January 03, 2016 @06:08AM (#10830237)
Apparently, ZFS needs 1GB of RAM per 1TB of storage.
Re:FreeBSD on the raspberry pi by masklinn on Sunday January 03, 2016 @07:37AM (#10830401)
You're probably thinking of deduplication (whose memory requirements is ~320 bytes per deduplicated block, and which generally requires way more than 1GB per TB, it's highly variable depending on storage load but I've seen quotes from 5 to 20GB/TB). Most users don't benefit from deduplication and it's usually recommended not to enable it unless you do demonstrably get large benefits from it (on FreeBSD, `zdb -S` will simulate and estimate deduplication benefits).

1GB is the recommended conf for ZFS on FreeBSD, it will benefit from more (and may need some tuning below 2GB) but even that's not a requirement, the FreeBSD wiki's ZFS tuning page quotes "ZFS running nicely on a laptop with 768 Megs of physical RAM" with tuning (and provides configuration values).

Re:FreeBSD on the raspberry pi by hengheng on Sunday January 03, 2016 @08:52AM (#10830577)
I've always been wondering if file system RAM caches couldn't be moved to a fast SSD nowadays. Do you think this would be possible with, say, an Intel 750?
Re:FreeBSD on the raspberry pi by masklinn on Sunday January 03, 2016 @11:58AM (#10831233)
ZFS (and probably others) let you do that, kinda: it always has a primary in-memory cache but you can add level 2 cache devices (L2ARC) to the pool. In fact you can extend two different caches to storage devices: L2ARC is a read cache, and you can add a separate set of Log Devices used by the ZFS Intent Log, where writes are cached.
Re:FreeBSD on the raspberry pi by woodman on Sunday January 03, 2016 @09:43AM (#10830732)
I'm pretty sure that is already a thing. Are you talking about something like L2ARC or swap disks?
Re:FreeBSD on the raspberry pi by anotherhue on Sunday January 03, 2016 @09:01AM (#10830611)
This model only has 512MB, minus 16MB for the video system.