Increased CPU usage when you access a SQL Server FileTable share from Windows Explorer

Symptoms
Consider the following scenario:
  • You have implemented a SQL Server FileTable.
  • The FileTable exposes an SMB share.
  • You access the SMB share through Windows Explorer (explorer.exe) by using a mapped drive or UNC path.
In this scenario, you may notice increased CPU usage in explorer.exe and also in the SQL Server and System processes. This symptom reflects an increase in SMB directory change notify traffic.
Cause
SQL Server FileTable shares do not support directory change notifications. Therefore, the server that's running SQL Server responds to these requests with a STATUS_NOT_SUPPORTED value. Because explorer.exe cannot handle this response value synchronously, it continues to try to register directory change notifications while the FileTable SMB share is open in one or more explorer.exe windows. After these windows are closed, the change notification behavior should stop. Third-party file servers that don't support directory change notifications may also expose this behavior.
Resolution
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. 

To prevent this issue, disable SMB directory change notifications by using the NoRemoteChangeNotify registry value. Do this on any systems that will be accessing the FileTable share through Windows Explorer.
  • To apply the setting to the user who is currently logged on, add the NoRemoteChangeNotify registry entry to the following registry key:

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
  • To apply the setting to all users who log on to the computer, add the NoRemoteChangeNotify registry entry to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
When you set the value of the NoRemoteChangeNotify registry entry to 1, you turn off remote Change Notify requests for file and folder changes that occur in folders of a mapped network share. To turn on remote Change Notify requests, set the NoRemoteChangeNotify registry entry to 0 (zero).
Make sure that you turn off Change Notify requests for only the user who is currently logged on, as follows:
  1. Click Start, click Run, type regedit in the Open box, and then click OK.
  2. Locate and click the following registry key:

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type NoRemoteChangeNotify, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. Exit Registry Editor.
Turn off Change Notify requests for all users
  1. Click Start, click Run, type regedit in the Open box, and then click OK.
  2. Locate and click the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type NoRemoteChangeNotify, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. Exit Registry Editor.
Properties

Article ID: 3092936 - Last Review: 09/17/2015 20:52:00 - Revision: 1.0

Microsoft SQL Server 2012 Enterprise, Microsoft SQL Server 2014 Enterprise, Microsoft SQL Server 2016 Enterprise, Windows Vista Business, Windows 7 Enterprise, Windows 8 Enterprise, Windows 8.1 Enterprise, Windows Server 2008 R2 Enterprise, Windows Server 2012 Datacenter, Windows Server 2012 R2 Datacenter

  • kbexpertiseadvanced kbsurveynew kbtshoot KB3092936
Feedback