[Samba] Fruit/AAPL behavior

Ryan Bair ryandbair at gmail.com
Fri Jan 29 03:40:32 UTC 2016


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.

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. 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?

The details:
Server: CentOS 6
Samba 4.3.4
Client: OS X 10.9.5
smb.conf:
[global]
        workgroup = EXAMPLE
        realm = ad.example.com
        netbios name = SERVER
        server role = active directory domain controller
        wins support = yes
        idmap_ldb:use rfc2307 = yes
        winbind nss info = rfc2307
        winbind expand groups = 10
        template shell = /bin/sh
        dns forwarder = 192.168.1.1
        log level = 0 vfs:10 fruit:10
        unix extensions = no
        tls enabled = yes
        tls keyfile = tls/server_AD_DC.key
        tls certfile = tls/server_AD_DC.crt
        tls cafile = tls/home_CA.crt
        vfs objects = catia fruit streams_xattr

[netlogon]
        path = /var/lib/samba/sysvol/ad.example.com/scripts
        read only = No

[sysvol]
        path = /var/lib/samba/sysvol
        read only = No

[Share]
        path = /srv/share
        read only = no

Thanks


More information about the samba mailing list