I did a measurement concerning ZFS. I was just interested in a small unscientific performance measurement. It's not really worthwile for a post, however, I just want to share my findings.
I bought a new machine and migrated my personal data to this new one. So I could do a fresh installation of FreeBSD on the old machine which was running Linux before. I then thought about not completely getting rid of Linux since KVM offers some nifty tricks I need for my work. I setup the old machine to dual-boot FreeBSD and Ubuntu 18.04 (Kernel 5.3.0) via rEFInd from my old SSD. For storage, I use 3x 8TB Seagate Archive HDDs. I wrote a little python script which reads all files, calculates md5sum + sha256sum and stores the filename + hashsums + size in a sqlite3 database which resides in memory (/dev/shm on Linux and using md(4) on FreeBSD). In total 672345 files (I guess 98% photos) use 5.21TB of space.
The underlying disks were encrypted with the default configuration of geli under FreeBSD and cryptsetup on Ubuntu, setup as RAIDZ1 (no cache, no log).
So how long does the python script run to accomplish the task?
*) FreeBSD 12.1-RELEASE, Python 3.7.6: 15 hours, 48 minutes, 46 seconds
*) Ubuntu 18.04 with ZFS (0.7.5) and Python (3.6.9) from the main repo: 20 hours, 43 minutes; I could not believe the difference, thus:
*) Ubuntu 18.04 with ZFS (0.7.5) from main repo, and Python 3.7.6: 14 hours, 45 minutes, 22 seconds
*) Ubuntu 18.04 with most recent ZFS (0.8.3) and Python 3.7.6: (did a "zpool upgrade"): 14 hours, 45 minutes, 17 seconds
so in my small and unimportant personal scenario for mostly having my data at rest ;-), depending on what you base it, Linux was roughly 7% faster (first Linux test was probably so much worse because Python gained some nice improvements in 3.7 compared to 3.6).
However, my subjective findings are - and this is what made me curious - that FreeBSD feels much snappier with ZFS compared to Linux. My workflow with personal data is however quite limited: editing and showing pictures to friends.
I used FreeBSD in the 4.X and 5.X days as desktop, then switched to Linux, and now I am back. Professionally I have used FreeBSD since 4.X but only on servers.
I bought a new machine and migrated my personal data to this new one. So I could do a fresh installation of FreeBSD on the old machine which was running Linux before. I then thought about not completely getting rid of Linux since KVM offers some nifty tricks I need for my work. I setup the old machine to dual-boot FreeBSD and Ubuntu 18.04 (Kernel 5.3.0) via rEFInd from my old SSD. For storage, I use 3x 8TB Seagate Archive HDDs. I wrote a little python script which reads all files, calculates md5sum + sha256sum and stores the filename + hashsums + size in a sqlite3 database which resides in memory (/dev/shm on Linux and using md(4) on FreeBSD). In total 672345 files (I guess 98% photos) use 5.21TB of space.
The underlying disks were encrypted with the default configuration of geli under FreeBSD and cryptsetup on Ubuntu, setup as RAIDZ1 (no cache, no log).
So how long does the python script run to accomplish the task?
*) FreeBSD 12.1-RELEASE, Python 3.7.6: 15 hours, 48 minutes, 46 seconds
*) Ubuntu 18.04 with ZFS (0.7.5) and Python (3.6.9) from the main repo: 20 hours, 43 minutes; I could not believe the difference, thus:
*) Ubuntu 18.04 with ZFS (0.7.5) from main repo, and Python 3.7.6: 14 hours, 45 minutes, 22 seconds
*) Ubuntu 18.04 with most recent ZFS (0.8.3) and Python 3.7.6: (did a "zpool upgrade"): 14 hours, 45 minutes, 17 seconds
so in my small and unimportant personal scenario for mostly having my data at rest ;-), depending on what you base it, Linux was roughly 7% faster (first Linux test was probably so much worse because Python gained some nice improvements in 3.7 compared to 3.6).
However, my subjective findings are - and this is what made me curious - that FreeBSD feels much snappier with ZFS compared to Linux. My workflow with personal data is however quite limited: editing and showing pictures to friends.
I used FreeBSD in the 4.X and 5.X days as desktop, then switched to Linux, and now I am back. Professionally I have used FreeBSD since 4.X but only on servers.