Microsoft Windows 11 and Windows Server 2022 – SMB Caching is enabled by default

PS C:\> 1..1 | %{measure-command {Get-Item \\server\share}} | Measure-Object -AllStats -Property totalmilliseconds
Count : 1
Average : 30,2331
Sum : 30,2331
Maximum : 30,2331
Minimum : 30,2331
StandardDeviation : 0
Property : TotalMilliseconds
PS C:\> 1..100 | %{measure-command {Get-Item \\server\share}} | Measure-Object -AllStats -Property totalmilliseconds
Count : 100
Average : 1,515896
Sum : 151,5896
Maximum : 38,6184
Minimum : 0,6864
StandardDeviation : 4,35317630467453
Property : TotalMilliseconds
PS C:\> Get-SmbClientConfiguration | fl *cache*
DirectoryCacheEntriesMax : 16
DirectoryCacheEntrySizeMax : 65536
DirectoryCacheLifetime : 10
FileInfoCacheEntriesMax : 64
FileInfoCacheLifetime : 10
FileNotFoundCacheEntriesMax : 128
FileNotFoundCacheLifetime : 5

Leave a Reply

You must be logged in to post a comment.