The speed of copy is very very slow when much files in the folder

Zhangxiaoxu zhang.xiaoxu at
Fri Apr 28 12:36:27 UTC 2017


100,000 files in my share.
When I copy some little files to the folder, the speed is very very slow.

I add some logs in the smbd, the “get_real_filename_full_scan” function cast about 1s. It’s too slow.
I think the function is used for comparing the dest name to the exist files to check whether the dest file is exist.

When I add “case sensitive = yes” to the configuration file, the speed is much quickly.

So, I think whether we has some method to improve the performance?
Could you give us some suggestion about the case.

       Ubuntu 14.04
       Samba 4.3.11

       Windows 7

       clustering = yes
       ctdbd socket = /var/run/ctdb/ctdbd.socket
   max protocol = SMB3
   large readwrite = yes
   idmap config *:range = 1000000-1999999
   log level = 2
   use sendfile = yes
   store dos attributes = yes
   acl_xattr:ignore system acls = yes
   aio read size = 1024
   deadtime = 10
   aio write behind = true

Could you add my bugzilla account to the samba domain.
Email: zhang.xiaoxu at<mailto:zhang.xiaoxu at>

Zhang Xiaoxu.

This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!

More information about the samba-technical mailing list