[Samba] long delays with file enumeration & listing in large data storage environment

Matthias Kühne | Ellerhold Aktiengesellschaft matthias.kuehne at ellerhold.de
Wed Feb 8 08:29:24 UTC 2023

Hey samba-people,

just our anecdotal findings and advice:

Directory listings from our MacOS clients took a big hit when we 
switched from AFP shares and SMB shares from our old Mac OS Server to 
the new debian fileserver with samba shares.

Especially opening big directories with AFP is blazingly fast, while in 
samba it takes forever. E. g. we have a directory with 37k 
subdirectories and 245k files in one level. Opening this dir on a Mac 
via a samba share take approx. 9 minutes. Our advice was to reduce the 
amount of files in a single directory and create cronjobs that 
automatically moves files into subdirectories.

Any improvement on samba server would be greatly appreciated!

Thanks, Matthias Kühne.

Am 08.02.23 um 07:04 schrieb Ralph Boehme via samba:
> On 2/8/23 02:42, Jeremy Allison via samba wrote:
>> I would suggest you try with Samba 4.17.latest to see if you
>> find an improvement.
> while this is generally a good advice :) I don't think this will help 
> in this case. Directory enumeration didn't really see any changes and 
> the OP mentions that enumeration was fast before joining to the 
> domain. This is quite unexpected and this is the point where I would 
> start investigating.
> -slow
Senior Webentwickler

Ellerhold Aktiengesellschaft
Friedrich-List-Str. 4
01445 Radebeul

Telefon: +49 (0) 351 83933-61
Web: www.ellerhold.de
Facebook: www.facebook.com/ellerhold.gruppe
Instagram: www.instagram.com/ellerhold.gruppe
Twitter: https://twitter.com/EllerholdGruppe

Amtsgericht Dresden / HRB 23769
Vorstand: Stephan Ellerhold, Maximilian Ellerhold
Vorsitzender des Aufsichtsrates: Frank Ellerhold

---Diese E-Mail und Ihre Anlagen enthalten vertrauliche Mitteilungen. Sollten Sie nicht der beabsichtigte Adressat sein, so bitten wir Sie um Mitteilung und um sofortiges löschen dieser E-Mail und der Anlagen.

Unsere Hinweise zum Datenschutz finden Sie hier: http://www.ellerhold.de/datenschutz/

This e-mail and its attachments are privileged and confidential. If you are not the intended recipient, please notify us and immediately delete this e-mail and its attachments.

You can find our privacy policy here: http://www.ellerhold.de/datenschutz/

More information about the samba mailing list