跳转到主内容

更改maxdirsize的大小会对性能产生哪些影响?

Views:
51
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

适用场景

  • ONTAP 9
  • Cloud Volumes ONTAP
  • Data ONTAP 8
  • 目录大小

问题解答

性能问题难以量化。如果一个目录包含许多文件、则查找(例如在查找操作中)可能会占用大量CPU和内存。

  • 在大型目录中进行查找会占用大量CPU和内存。
  • 将大型目录从仅 NFS 转换为 CIFS 会在很长一段时间内占用大量资源。
  • 将目录加载到内存中时、将加载整个目录树。
  • 部分内存可能由于不使用而从内存中耗尽、但从磁盘读取数据和在内存中查找要存储的目录的空间会对性能产生影响。

从ONTAP 9.2开始、目录索引创建一个目录大小超过2 MB的索引文件、以帮助消除执行如此多查找的需求并避免缓存未命中。

  • 通常、这有助于提高大型目录的性能。但是、对于通配符搜索和readdir操作、索引编制没有太大的用途。
  • 如果可能、请在文件数量较多的环境中使用最新版本的ONTAP 、以便从WAFL 改进中获益。

 

注意: maxdirsize的值已硬编码、不能超过4 GB。为了避免性能问题、NetApp建议将maxdirsize值设置为不高于1GB的值。

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.