[Samba] Fruit/AAPL behavior

Ralph Boehme rb at sernet.de
Fri Jan 29 16:09:58 UTC 2016


On Thu, Jan 28, 2016 at 10:40:32PM -0500, Ryan Bair wrote:
> I have a share with approximately 5000 folders in the base directory. The
> performance on an OS X client is somewhat less than exciting. I compiled
> the latest Samba 4.3 tarball and enabled fruit per the modules man page,
> however directory listing performance still takes a few seconds.

sounds reasonable for 5000 elements in a folder. How long does it take
without fruit?

You may be able to squeeze some more out of it by adding:

  readdir_attr:aapl_max_access = false

This results in the clients incorrect view of effective permissions
though, but if everything is eg 0777 anyway than why care?

> I've cranked the fruit debug level up to 10 and can see that it is getting
> used ("fruit_stat called for files", for instance). I've also looked
> through Wireshark and it appears to appropriately negotiate the AAPL
> extension with the client.
> In wireshark I'm still seeing a GetInfo Request for every file and
> directory which hammers my poor server.

Possibly, but the client should already display the folder content
after doing the initial find.

> I was under the impression the aapl protocol extension was supposed
> to make these requests unnecessary. Am I misunderstanding the
> functionality or is something wrong?

Slightly inaccurate. It will still make the requests (the exact
behaviour depends on OS/Finder version), but should display folder
content after initial find, because the find response is enriched with
the Apple relevant metadata (FinderInfo, resource fork lenght,
effective permissions).


SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

More information about the samba mailing list