[Samba] Performance optimizations for small files and case sensitive-option
krienke at uni-koblenz.de
Wed Jan 10 08:04:06 UTC 2018
thank you very much for your link. Unfortunately I cannot make all files
of all our users upper case. This is because all files that are stored
on our fileservers for all our about 12000 accounts can be accessed via
Samba but also via NFS from linux. Moreover even Users that usually work
with Windows, sometimes log in on a Linux machine and want to access
their files as well.
What I am unable to understand is why the efficient behaviour of "case
sensitive = True" cannot be achieved by a cache that learns all existing
files in the current directory so samba would have simply to look into
this cache and things should be as efficient like in the "case sensitive
= True" case without the disadvantages like the need to convert all
files to eg upper case?
>> Copy testdir 70MB with 5500 single files via smb: 180 sec (3min)
>> using "case sensitive= yes"
>> This is about 1/3 faster compared to the 300sec without the case
>> sensitive option. Unfortunately case sensitive files and windows leads
>> to strange effects that many users will not understand and thus is not a
>> real option for productive use (think of creating a file hellO.txt and
>> another hello.txt and a user deleting the only one he sees in explorer).
>> So I thought if for copying one file samba has to check if this file
>> already exists in all sorts of upper/lower spellings which takes a lot
>> of time with NFS it might help to use bigger caches. So I set
>> smb max stat cache size and directory name cache size to a higher value
>> (see config below). But unfortunately it did not help (~300sec).
> You must canonicalize the filenames on the NFS server. Make them
> all upper case, then:
> See this (old) page for details:
> case sensitive = True
> default case = upper
> preserve case = no
> short preserve case = no
Rainer Krienke, Uni Koblenz, Rechenzentrum, A22, Universitaetsstrasse 1
56070 Koblenz, Tel: +49261287 1312 Fax +49261287 100 1312
More information about the samba