跳转到主内容

更改maxdirsize的大小会对性能产生什么影响?

Views:
97
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的目录创建索引文件、以帮助消除执行大量查找的需求并避免缓存未命中。

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

注意:maxdirsize的值采用硬编码、不 超过4 GB。但是、如果 由于可能的 性能问题而将maxdirsize设置为大于1 GB、请务必谨慎。有关详细信息、请参见追加信息。

 

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.