I'm putting together a filesystem crawler for SMB/CIFS file shares. One of the requirements is that file ownership is captured. Adding a call to GetFileSecurity()
for every file to the basic folder traversal logic increases the scan time tenfold.
Any way to that speed up? As outlined here, one can gain some performance by plugging into a lower level API. Is there one for the Lanman redirector? Maybe there are some redirector settings I could tweak?
EDIT: some SMB tuning parameters listed here: https://www.monitis.com/blog/2013/05/31/tuning-windows-2012-file-system-part-3
RSS stands for Receive Side Scaling, RDMA stands for Remote Direct Memory Access. Some more info here: https://technet.microsoft.com/en-us/library/hh831795.aspx
EDIT2: the server only supports SMB2. It's a Netapp Vfiler.