[Samba] Friendly Reminder: Would you please comment on my findings?

Jeremy Allison jra at samba.org
Fri Aug 18 21:42:37 UTC 2017


On Fri, Aug 18, 2017 at 11:35:04PM +0200, awl1 wrote:
> Am 18.08.2017 um 23:17 schrieb Jeremy Allison via samba:
> >This might be hidden against Windows due to directory handle
> >leases, which we don't yet support.
> Are you saying that when I replace the Samba server by a Windows
> SMB2 share server, I should see better performance? I can perfectly
> test that out and record a Wireshark trace for this if you like...

Yes, that would be my guess.

> Layperson question: Would such a "directory handle lease" be
> something like a cache for SMB2 Find responses?
>
> This would have to be a client-side cache in order to avoid sending
> back all 1000 file names in the directory from server to client over
> the network with every single response.
> 
> Also, in case it indeed were a client-side cache, this cache would
> also need to be silently concurrently updated with every Create
> request/response cycle, because the number of files in the
> server-side directory always grows by the one file just written
> between one call to SMB2_FIND_ID_BOTH_DIRECTORY_INFO and the next...

That's exactly what directory handle leases are. They're
oplocks for directories.



More information about the samba mailing list