Skip to main content
NetApp Knowledge Base

What is the Directory Indexing Scanner and what does directory indexing accomplish?

Views:
1,602
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
perf
Last Updated:

 

Applies to

  • Data ONTAP 9.2 and higher
  • Storage System Performance

Answer

As datasets have gotten larger and larger, performance can become a concern on those larger datasets. ONTAP has scaled to meet these needs as it has evolved, and one of those features is directory indexing.

  • Starting with ONTAP 9.2, a feature was introduced which will index directory sizes 2MB or larger .
  • Directory lookup will only read required blocks in the directory instead of entire directory.
  • Loading 100 10MB directory file prior to ONTAP 9.2 would require 1.25 GB of RAM.
  • Indexing the same 100 files in 9.2+ reduces this to around 200 MB of RAM.

This will be noticed in a few ways:

  • ONTAP upgrade. You will notice in "wafl scan status" a "directory index creation" scan.
  • Reboot may trigger a "directory index creation" scan as well.
  • A frontend call (lookup/create generally) will cause ONTAP to notice that the directory is greater than 2 MB and index it.
  • You may see in waffinity stats/wafl suspend data the WAFL messages related to indexing.

Additional Information

 

 

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.