[Samba] CIFS client mounts meta ops 30 times slow than server

Jeremy Allison jra at samba.org
Thu Mar 9 18:33:08 UTC 2023


On Thu, Mar 09, 2023 at 07:29:28PM +0100, Ralph Boehme via samba wrote:
>On 3/9/23 19:16, Shenyue Chen via samba wrote:
>>Also from my observation, based on network packets and time measurements,
>>it seems the CIFS clients haven't done any sort of cache.
>>
>>For example, doing a "ls" for 5 times on the same folder within a
>>short period of time. The network packet sizes are almost equal every time
>>and the time it takes is similar.
>>
>>Isn't there supposed to be some page cache or dentry cache that could
>>accelerate this, under the loose cache policy? Or is this the expected
>>behavior?
>not sure about how the client may cache directories on SMB mounts. 
>There's a protocol feature that deals with this, Directory Leases, but 
>unfortunately we don't implement this yet due to lack of funding.

I'm also not sure the cifsfs client implements this yet.
Maybe Steve or other cifsfs developers can chime in.



More information about the samba mailing list