Setting recordsize larger than 128KB

Status
Not open for further replies.

datnus

Contributor
Joined
Jan 25, 2013
Messages
102
Hi,
Is there a way to set recordsize larger than 128KB?
In Nimble FS, it's able to set the recordsize to 4.5MB.
I believe it's to make the write more sequential.

Thanks.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Nope. 128kb is the biggest you can do without zfs v32 which adds 1MB block support.
 

datnus

Contributor
Joined
Jan 25, 2013
Messages
102
I believe Freenas 9.1 use zfs v5000 not zfs 32.
Im unable to check if zfs v5000 support 1MB recordsize.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
I believe Freenas 9.1 use zfs v5000 not zfs 32.
Im unable to check if zfs v5000 support 1MB recordsize.

You are 100% correct. After v28 Oracle closed the source and everything after v28 is Oracle exclusive technology.

The opensource community superceeded v28 with v5000 (with 5000 being something Oracle isn't likely to ever get to).

Anyway, recordsizes are limited to 128Kbytes with all of the current open source versions of ZFS. If you want a larger block you will have to go to Oracle and buy one of their very fancy(and ultra expensive) systems.

I'm not sure what your intentions are with block sizes, but they aren't really all that important, especially for home users. If you had 200TB of storage then you could potentially see some benefits internally with ZFS. But aside from that the benefits are rather minute.
 

Waco

Explorer
Joined
Dec 29, 2014
Messages
53
Any idea when this changed? I tried Googling a bit but didn't see anything with regards to larger block sizes, yet my pool allowed me to set a 1 MB recordsize with nary a complaint, however larger sizes don't work:
[root@enterprise ~]# zfs set recordsize=8M EnterpriseD
cannot set property for 'EnterpriseD': 'recordsize' must be power of 2 from 512B to 1024KB

I've seen extremely good results (performance wise) with larger recordsizes on SMR drives in addition to better compression ratios at work. I'm surprised larger records made it in without any real announcement.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Block sizes >128KB was introduced with FreeNAS 9.3. The feature flag "feature@large_blocks" allows for block sizes up to 1MB. At present there are no code changes planned for ZFS for larger block sizes.

This does mean that anyone using versions prior to FreeNAS 9.3, or who are running FreeNAS 9.3 but haven't upgraded their zpool cannot use the larger block sizes.
 
Status
Not open for further replies.
Top