I am a relatively new user of FreeBSD. For the past 15 years I have been managing a small server farm all running Debian or Ubuntu. Not thrilled with the way these distributions have been progressing, so thought I would give FreeBSD a whirl. Some things in particular that piqued my interest are jails and bhyve. Disclaimer, I am running RELEASE 12.2 on Dell r710 server with a few 72k rpm SAS drives and 72Gib of RAM.
Needed to make some decisions about storage including ZFS vs UFS filesystems. I made some inquiries and was generally pushed in the direction of ZFS. I installed UFS as root directory and another drive with ZFS. I did some side by side tests using "fio" a benchmarking tool. Generally ZFS outperformed UFS on reads due mainly to ARC outperforming the UFS kernel buffer. BTW ARC uses just about all 72Gb of ram on my Dell r710 test machine. Writes to disk were about the same for each. Next, I focused on my backup strategy. I have always used dump to backup to tape either directly or indirectly through a hard drive cache. No dump for ZFS. Did some side by side testing of /usr/bin/tar, star ( Schily tar ), and dump.
Here are my results for backing up a 7.75 Gb partition ( I copied /usr/ports to a test partition ).
/usr/bin/tar ( ie the native Freebsd tar ) failed with errors on first try. It refused to back up a file with an umlaut in the file name ( you know the u with the two dots overhead used in German ). I changed the file name to remove the umlaut and then tried again. This time it completed in 9 minutes and 30 seconds.
star (aka Schily tar) claims it is faster than dump. No complaint about umlaut and took 7 minutes and 17 seconds to complete.
/sbin/dump took 5 minutes and 14 seconds and no problem with umlaut. Also, dump provides more feedback during backup process and restore is super easy to use as well.
Over the course of several weeks running various tests and exploring the system I noticed my console was noticeably slower than at time of initial install. I thought this might be do to ARC using so much memory. I set sysctl vfs.zfs.arc_max to 12Gb. System became less slow and also crashed several times a day.
I unloaded the ZFS module and commented "ZFS_enable" out of my rc.conf file.
Now server is running snappy and backups are fast. I am sure ZFS is fantastic for certain use cases. It certainly has no shortage of fans. I am grateful to Pawel Jakub Dawidek, Marshall Kirk McKusick, and Poul-Henning Kamp, for their work on GEOM and UFS2. Indeed I am grateful to the whole team of people that have worked on developing FreeBSD during the past couple of decades.
In my opinion, UFS remains a great filesystem choice in 2021. If you are interested in UFS you may want to see man pages for gjournal, gmirror, gpart, fsck, and dump.
Needed to make some decisions about storage including ZFS vs UFS filesystems. I made some inquiries and was generally pushed in the direction of ZFS. I installed UFS as root directory and another drive with ZFS. I did some side by side tests using "fio" a benchmarking tool. Generally ZFS outperformed UFS on reads due mainly to ARC outperforming the UFS kernel buffer. BTW ARC uses just about all 72Gb of ram on my Dell r710 test machine. Writes to disk were about the same for each. Next, I focused on my backup strategy. I have always used dump to backup to tape either directly or indirectly through a hard drive cache. No dump for ZFS. Did some side by side testing of /usr/bin/tar, star ( Schily tar ), and dump.
Here are my results for backing up a 7.75 Gb partition ( I copied /usr/ports to a test partition ).
/usr/bin/tar ( ie the native Freebsd tar ) failed with errors on first try. It refused to back up a file with an umlaut in the file name ( you know the u with the two dots overhead used in German ). I changed the file name to remove the umlaut and then tried again. This time it completed in 9 minutes and 30 seconds.
star (aka Schily tar) claims it is faster than dump. No complaint about umlaut and took 7 minutes and 17 seconds to complete.
/sbin/dump took 5 minutes and 14 seconds and no problem with umlaut. Also, dump provides more feedback during backup process and restore is super easy to use as well.
Over the course of several weeks running various tests and exploring the system I noticed my console was noticeably slower than at time of initial install. I thought this might be do to ARC using so much memory. I set sysctl vfs.zfs.arc_max to 12Gb. System became less slow and also crashed several times a day.
I unloaded the ZFS module and commented "ZFS_enable" out of my rc.conf file.
Now server is running snappy and backups are fast. I am sure ZFS is fantastic for certain use cases. It certainly has no shortage of fans. I am grateful to Pawel Jakub Dawidek, Marshall Kirk McKusick, and Poul-Henning Kamp, for their work on GEOM and UFS2. Indeed I am grateful to the whole team of people that have worked on developing FreeBSD during the past couple of decades.
In my opinion, UFS remains a great filesystem choice in 2021. If you are interested in UFS you may want to see man pages for gjournal, gmirror, gpart, fsck, and dump.