zfs-recordsize · shipping · also recordsize, recsize

ZFS recordsize

ZFS recordsize is the suggested data-block size for files in a ZFS filesystem dataset.

Related Observatory article: Read on hesela.com

The property applies to files, not zvols; recsize is its shortened name. Changing it affects newly created files, leaving existing files unchanged. It does not prescribe the size of every application I/O request. [1]

Updating part of an existing record can require its prior contents from ARC or disk. A smaller record may reduce that work but change metadata and compression costs; no single setting is best for every workload. [2]

The logical record size is separate from the vdev's sector allocation unit, controlled by ashift. Neither a recordsize setting nor a guest block size alone determines physical RAIDZ allocation. [3]

For a 16 KiB record with 4 KiB allocation units, compression must save at least one 4 KiB unit: a 25% reduction. A smaller compressed byte count alone does not guarantee sector savings. [1]

Relations

related
ZFS, ZFS volblocksize, Copy-on-write (storage), RAIDZ, ZFS embedded data

Citations

  1. OpenZFS 2.3: zfsprops(7), recordsize and volblocksize (accessed 2026-11-30)
  2. OpenZFS Workload Tuning: dataset records, zvol blocks and compression (accessed 2026-11-30)
  3. OpenZFS 2.3: zpoolprops(7), ashift and allocation accounting (accessed 2026-11-30)
Sources & caveats
  • Property semantics follow the OpenZFS 2.3 manual; the unversioned tuning guide supports qualitative tradeoffs, not a universal size recommendation.
  • Source review only; no pool experiment, performance result or file-migration procedure is claimed.

JSON: /data/terms/zfs-recordsize.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. ZFS recordsize. Hesela. 2026-11-30. https://hesela.dev/terms/zfs-recordsize/