Samba: Default allocation roundup size is set to 1048576, should be 131072 (and user adjustable)
This is a followup to defect https://redmine.ixsystems.com/issues/36508 . Currently, the default allocation roundup size as configured in FreeNAS in the SMB configuration file is the Samba default of 1048576, or 1MB. This is causing Windows shares to report that even a small file takes up 1MB of storage space, causing user confusion. By changing allocation roundup size to 131072, this reports a somewhat more accurate space taken on the FreeNAS server.
1. Change the default allocation roundup size to 131072
2. Modify the settings screen for SMB for a pull-down menu specifying the default allocation roundup size.
This is a default performance optimization in samba for windows clients. You're welcome to modify it via auxiliary parameters or turn it entirely off.
There are currently about 400 existing configurable parameters for just the [global] portion of the smb.conf file. We ultimately have to make decisions about which ones become UI fields and which ones have to be auxiliary parameters. I'll discuss it further with other members of the services team, but I'm inclined to leave the default allocation roundup size.