Slow Data Copy in Windows Compared to Copy of Same Data in Linux

Copying many files or directories to or within File Storage and a Windows instance takes more time than a copy of the same files using the same resources and a Linux instance.

Cause: The Windows NFS client calls for a directory scan for each file creation. The directory scan, a READDIR NFS call, increases overall copy time. This is expected Windows NFS behavior and doesn't occur when using a Linux NFS client.

Solution: Edit the NFSReaddir registry setting to avoid the READDIR call and increase the efficiency of the copy command.

  1. Click Windows Search.
  2. Enter regedit in the Search field and press Enter.
  3. Click Yes to allow changes to the device.
  4. Click HKEY_LOCAL_MACHINE.
  5. Browse to SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Users\Default\Defaults\NFSReaddir.
  6. Set the value for NFSReaddir to 0.
  7. Restart the instance.
Caution

Because this is an OS level registry setting change, test to ensure that applications continue to work normally after the update.