ZFS recordsize
ZFS recordsize is the suggested data-block size for files in a ZFS filesystem dataset.
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
Citations
- OpenZFS 2.3: zfsprops(7), recordsize and volblocksize
- OpenZFS Workload Tuning: dataset records, zvol blocks and compression
- OpenZFS 2.3: zpoolprops(7), ashift and allocation accounting
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.