文件服务器缓存,文件服务器的性能优化

ConnectionCountPerNetworkInterface

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\ConnectionCountPerNetworkInterface

适用于 Windows 10、Windows 8.1、Windows 8、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2 和 Windows Server 2012

默认值为 1,强烈建议使用默认值。 有效范围为 1 - 16。 要与服务器建立的每个非 RSS 接口的连接数上限。

ConnectionCountPerRssNetworkInterface

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\ConnectionCountPerRssNetworkInterface

适用于 Windows 10、Windows 8.1、Windows 8、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2 和 Windows Server 2012

默认值为 4,强烈建议使用默认值。 有效范围为 1 - 16。 要与服务器建立的每个 RSS 接口的连接数上限。

ConnectionCountPerRdmaNetworkInterface

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\ConnectionCountPerRdmaNetworkInterface

适用于 Windows 10、Windows 8.1、Windows 8、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2 和 Windows Server 2012

默认值为 2,强烈建议使用默认值。 有效范围为 1 - 16。 要与服务器建立的每个 RDMA 接口的连接数上限。

MaximumConnectionCountPerServer

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\MaximumConnectionCountPerServer

适用于 Windows 10、Windows 8.1、Windows 8、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2 和 Windows Server 2012

默认值为 32,有效范围为 1 - 64。 要与运行 Windows Server 2012 的单个服务器建立的所有接口的连接数上限。

DormantDirectoryTimeout

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\DormantDirectoryTimeout

适用于 Windows 10、Windows 8.1、Windows 8、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2 和 Windows Server 2012

默认值为 600 秒。 服务器目录句柄通过目录租用保持打开状态的最长时间。

FileInfoCacheLifetime

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\FileInfoCacheLifetime

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 10 秒。 文件信息缓存超时时间。

DirectoryCacheLifetime

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\DirectoryCacheLifetime

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 10 秒。 这是目录缓存超时。

备注

此参数控制在缺少目录租约时的目录元数据缓存。

备注

Windows 10 版本 1803 中的一个已知问题会影响 Windows 10 缓存大型目录的能力。 将计算机升级到 Windows 10 版本 1803 后,请访问包含数千个文件和文件夹的网络共享,并打开位于该共享上的文档。 在这两个操作期间,均会遇到明显的延迟。

若要解决此问题,请安装 Windows 10 版本 1809 或更高版本。

若要解决此问题,请将 DirectoryCacheLifetime 设置为 0。

此问题会影响 Windows 10 的以下版本:

Windows 10 企业版版本 1803

Windows 10 专业工作站版版本 1803

Windows 10 专业教育版版本 1803

Windows 10 专业版版本 1803

Windows 10 教育版版本 1803

Windows 10 家庭版版本 1803

DirectoryCacheEntrySizeMax

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\DirectoryCacheEntrySizeMax

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 64 KB。 这是目录缓存条目的最大大小。

FileNotFoundCacheLifetime

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\FileNotFoundCacheLifetime

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 5 秒。 找不到文件缓存超时期限。

CacheFileTimeout

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\CacheFileTimeout

适用于 Windows 8.1、Windows 8、Windows Server 2012、Windows Server 2012 R2 和 Windows 7

默认值为 10 秒。 此设置控制应用程序关闭文件的最后一个句柄后,重定向程序保留文件缓存数据的时长(以秒为单位)。

DisableBandwidthThrottling

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\DisableBandwidthThrottling

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 0。 默认情况下,SMB 重定向程序会限制高延迟网络连接的吞吐量,在某些情况下可以避免与网络相关的超时。 将此注册表值设置为 1 可禁用此限制,从而在高延迟网络连接上实现更高的文件传输吞吐量。

DisableLargeMtu

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\DisableLargeMtu

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

仅 Windows 8 的默认值为 0。 在 Windows 8 中,SMB 重定向程序为每个请求传输高达 1 MB 的有效负载,可提高文件传输速度。 将此注册表值设置为 1 会将请求大小限制为 64 KB。 应在应用此设置之前评估其影响。

RequireSecuritySignature

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\RequireSecuritySignature

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 0,表示禁用 SMB 签名。 将此值更改为 1 可为所有 SMB 通信启用 SMB 签名,从而阻止 SMB 与禁用 SMB 签名的计算机进行通信。 SMB 签名虽然会增加 CPU 成本和网络往返次数,但有助于阻止中间人攻击。 如果不需要 SMB 签名,请确保所有客户端和服务器上的此注册表值均为 0。

有关详细信息,请参阅 SMB 签名的基础知识。

FileInfoCacheEntriesMax

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\FileInfoCacheEntriesMax

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 64,有效范围为 1 - 65536。 此值用于确定可以由客户端缓存的文件元数据量。 当访问大量文件时,增加该值可以减少网络流量并提高性能。

DirectoryCacheEntriesMax

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\DirectoryCacheEntriesMax

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 16,有效范围为 1 - 4096。 此值用于确定可以由客户端缓存的目录信息量。 在访问大量目录时,增加该值可以减少网络流量并提高性能。

FileNotFoundCacheEntriesMax

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\FileNotFoundCacheEntriesMax

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 128,有效范围为 1 - 65536。 此值用于确定可由客户端缓存的文件名信息量。 当访问大量文件名时,增加该值可以减少网络流量并提高性能。

MaxCmds

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\MaxCmds

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 15。 此参数限制会话上未完成的请求数。 增加该值会占用更多内存,但它可以通过启用更深层的请求管道来提高性能。  同时增加该值和 MaxMpxCt 的值还可以消除大量未完成的长期文件请求(例如 FindFirstChangeNotification 调用)所造成的错误。 此参数不会影响与 SMB 2.0 服务器的连接。

DormantFileLimit

HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\DormantFileLimit

适用于 Windows 10、Windows 8.1、Windows 8、Windows 7、Windows Vista、Windows Server 2022、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2 和 Windows Server 2008

默认值为 1023。 此参数指定应用程序关闭文件后应在共享资源上保持打开状态的文件的数量上限。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值