NFS rwsize testing

aufalien

Patron
Joined
Jul 25, 2013
Messages
374
Does any one know of a way to have FreeNAS/TrueNAS support NFS read/write sizes of 1M?

I wish to do some testing as my Linux clients to Linux Servers work very well at 1M in my environment.

Hoping to have similar results with Linux clients to FreeNAS/TrueNAS servers as well.

I'm running a mix of the latest FreeNAS and the latest TrueNAS.

Thanks in advance.
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Maybe there are some clues here for you:
 

aufalien

Patron
Joined
Jul 25, 2013
Messages
374
Thanks for the reply.

It seems that FreeNAS/TrueNAS servers only support a max read/write size of 131072. I'd like to see if it's possible vis a sysctl etc.. to increase that to 1048576. But I can't seem to find much info on this.
 
Last edited:

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399

aufalien

Patron
Joined
Jul 25, 2013
Messages
374
Ah thanks Sam. Yep bingo, that looks to be it. My goal to match ZFS record size with NFS read/write size and see if any serving improvements occur.

Is this case, I should work within the lowest common denominator and set my ZFS record size to 131072.

I've read some Oracle ZFS docs that suggest this.
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
If you're working with very large files, keep your ZFS recordsize at the current 1M because you'll gain benefits in the internal housekeeping/metadata aspects of ZFS. It'll still have to fragment them down to 128K to ship them over NFS but you'll at least have the internal benefits of recordsize=1M.
 

aufalien

Patron
Joined
Jul 25, 2013
Messages
374
Ah thanks HoneyBadger. Will do.

I've a feeling that FreeBSD is it what is in terms of NFS r/w sizes.

How flexible and willing do you think the TrueNAS team is in terms of fielding a feature request to roll out a custom kernel that supports 1048576 NFS r/w sizes?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
You're welcome to submit a feature request, although I think they'll be busy with getting U3 out.
 

aufalien

Patron
Joined
Jul 25, 2013
Messages
374
Thanks Sam. Agreed, I'd hate to burden with use cases which may only be niché. I recall asking about RDMA support a while back which was also not something in large acceptance. I imagine any submission may be met with a bit of stress, sorta like piling on. At any rate I'll mull it over.
 
Top