ZFS recordsize Property: Difference between revisions
(Created page with "The <code>recordsize</code> property of ZFS datasets is used to specify the maximum block size for files in the file system. Often, this property does not need to be changed,...") |
No edit summary |
||
Line 4: | Line 4: | ||
[[Category:ZFS OSD Tuning]] | [[Category:ZFS OSD Tuning]] | ||
[[Category:Lustre Systems Administration]] |
Revision as of 22:53, 30 August 2017
The recordsize
property of ZFS datasets is used to specify the maximum block size for files in the file system. Often, this property does not need to be changed, but for workloads that create very large files, increasing the value of recordsize
can deliver a performance benefit. The chosen size must be a power of 2 with the minimum allowed size being 512 bytes. For ZFS on Linux, the maximum value is 1MiB in version 0.6.5. Prior to this release, the maximum value was 128K (which is also the default setting).
The default setting is not sufficient to sustain the performance of the throughput oriented workloads that are typical of the I/O patterns for OSTs, and it is recommended to increase the recordsize
to 1MiB (1024K), in order to better match the Lustre IO transaction sizes for block I/O.