[Samba] Friendly Reminder: Huge number of small files performance regression from 3.5.16 to 4.6.5 with identical smb.conf

awl1 awl1 at mnet-online.de
Fri Jul 14 21:02:40 UTC 2017


... and something else is even more strange here:

Even though the parameter "pattern" to SMB2_FIND_NAME_INFO seems to 
iterate through definitely existing file names, each and every one of 
the 552 "SMB2_FIND_NAME_INFO" requests has the following response:

Find Response, Error: STATUS_NO_SUCH_FILE

which on the other hand, when looking at the packet details, maps to 
"ErrorData: 00" which might mean that this is not a Samba error "no such 
file", but maybe rather a Wireshark error in translating Error Data to 
plain text!?):

SMB2 (Server Message Block Protocol version 2)
     SMB2 Header
     Find Response (0x0e)
         [Info Level: SMB2_FIND_NAME_INFO (12)]
         StructureSize: 0x0009
         Reserved: 0x0000
         Byte Count: 0
         Error Data: 00

Best,
Andreas


Am 14.07.2017 um 22:47 schrieb awl1:
> (1)
>
> Using the most recent smb.conf with Samba 4.6.5 / SMB2, for 1020 files 
> written, we have:
>
> Find                    14   1588     0.001458     0.275006 
> 0.052488    83.351477
>
> There are 2140 packets with smb2.cmd == 14 (Find) of which are 1070 
> find requests ((smb2.cmd == 14) && (smb2.flags.response == 0)) and 
> 1070 find responses ((smb2.cmd == 14) && (smb2.flags.response == 1))
> (NOTE: why is there a difference to the number of 1588 Find calls as 
> shown in the service response time statistics???)
>
> 518 of these 1070 Find Requests do have the following type:
> Find Request File: RFP_files SMB2_FIND_ID_BOTH_DIRECTORY_INFO Pattern: 
> *;Find Request File: RFP_files SMB2_FIND_ID_BOTH_DIRECTORY_INFO 
> Pattern: *
> Info Level: SMB2_FIND_ID_BOTH_DIRECTORY_INFO (37)
>
> and 552 are of type (note the value for "pattern" of course does 
> change with each call):
>
> Find Request File: RFP_files SMB2_FIND_NAME_INFO Pattern: RFP2372.htm
> Info Level: SMB2_FIND_NAME_INFO (12) 





More information about the samba mailing list