I were benchmarking performance of UFS vs ZFS for a single USB 3.1 SSD. UFS seems to be a clear winner with more efficient handling of small files. Too bad TRIM cannot be enabled with a solid state drive inside a USB enclosure? At least camcontrol secure erase works well to clear memory cells to restore factory default write performance. This is with FreeBSD 11.1-RELEASE-p1.
When playing around with ZFS record size I noticed it is possible to go over 1M by adjusting vfs.zfs.max_recordsize. By trial and error I found that maximum ZFS record size is 16M:
But then I noticed something weird. Directories cannot be created if the record size is larger than 4M:
I found related error on FreeBSD filesystems mailing list: ZFS: mkdir: File too large.
I even tried disabling compression and checksumming but result is the same. It seems that these larger record sizes 8M and 16M should be supported but there are errors?
When playing around with ZFS record size I noticed it is possible to go over 1M by adjusting vfs.zfs.max_recordsize. By trial and error I found that maximum ZFS record size is 16M:
'recordsize' must be power of 2 from 512B to 16384KB
. It can be set like this: sysctl vfs.zfs.max_recordsize=16777216
zfs set recordsize=16M pool
But then I noticed something weird. Directories cannot be created if the record size is larger than 4M:
# mkdir x
mkdir: x: File too large
I found related error on FreeBSD filesystems mailing list: ZFS: mkdir: File too large.
I even tried disabling compression and checksumming but result is the same. It seems that these larger record sizes 8M and 16M should be supported but there are errors?