[Samba] NFSv4 acls inheritance flags

Christian Stüllenberg sambaml at condor-edv.com
Thu May 8 01:18:55 MDT 2014


Am 07.05.2014 23:19, schrieb Jeremy Allison:
> On Wed, May 07, 2014 at 05:11:58PM -0300, Dante Colo wrote:
>> NFSv4 acls works nice on UFS except the inheritance flags, ,
>> i was planning to use vfs_acl_xattr and posix acls (XFS
>> and ext4 on Linux) before, it works fine but when i set
>> some permissions on shares from a Windows machine it takes
>> too much time , on a share with around 30GB and 100000
>> files it takes around 20 minutes too apply permissions, is this normal ? 
> 
> Hmmm. Sounds like a long time, but remember
> that's the client reading/modify/writing the
> meta-data on every single file - so that's
> only 0.012 seconds per file (probably not
> including directories), so that doesn't
> seem too bad.
> 
> Not sure how long it would take against a Windows
> file server...
> 

...I do not have exact measures, but I have encountered a 30% slower
samba than win2012 (both accessed from win7 with protocol level SMB3),
especially with many small files. I did not find out what the exact
problem was on large files, but even there throughput was slower on
samba than on windows. Both server (samba/win) are backed against same
SAN with same HBAs, NICs and mostly identically hardware, but I did not
find a way, to get samba as fast as win2012 (at least with turned on
vfs_acl_xattr).


More information about the samba mailing list