Slow file write from Windows 2000 or Windows Server 2003 to Windows NT 4.0 Server (279282)



The information in this article applies to:

  • Microsoft Windows Server 2003, Standard Edition
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows NT Server 4.0

This article was previously published under Q279282
Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SYMPTOMS

The file-copy write process from a Microsoft Windows 2000 Professional-based computer or a Microsoft Windows Server 2003-based computer to a Microsoft Windows NT 4.0 Server-based computer may take up to four times longer than reading the same files from Windows NT Server.

CAUSE

The workstation redirector in Windows 2000 and Windows Server 2003 does not support RAW SMB mode. Instead, Windows 2000 and Windows Server 2003 use Large File (CAP_LARGE_FILE) support, which is just as fast. However, not all earlier operating systems implement Large File support. For example, Windows NT 4.0 has Large File Read support, but not Large File Write support.

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 work around this performance issue, make the following registry change on the Windows NT 4.0-based server:
  1. Start Registry Editor (Regedt32.exe).
  2. Locate and click the following key in the registry:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters

  3. On the Edit menu, click Add Value, and then add the following registry value:

    Value Name: SizReqBuf
    Data Type: DWORD Value
    Radix: Decimal
    Value: 65535

  4. Quit Registry Editor.
  5. Restart the server.
After you make this change, the performance of the write process is approximately the same as a read operation between the two computers.

Note that the SizReqBuf value controls the buffer size for CORE SMB requests. Setting it to 64 KB has approximately the same effect as Large Write support, which uses 60-KB buffers.

NOTE: This adjustment causes the server services to use more memory.

MORE INFORMATION

Windows 2000 and Windows Server 2003 read operations are fast because they use the SMB Large Read capability of Windows NT Server (CAP_LARGE_READX). Windows NT Server does not support CAP_LARGE_WRITEX. For more information, see the "Common Internet File System (CIFS)" specification at the following Microsoft Web site: File-copy operations from Windows 2000 and Windows Server 2003 to Windows 2000 or Windows Server 2003 work quickly. They use CAP_LARGE_READX and CAP_LARGE_WRITEX capabilities to send files in 60-KB portions. Also, file-copy operations from Windows NT to Windows NT work quickly. They use CAP_RAW_MODE to send files in 64-KB portions. For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

99234 History of SizeReqBuf changes

223140 SMB block size negotiation when copying files with Windows NT Explorer


Modification Type:MajorLast Reviewed:8/30/2004
Keywords:kbenv kbprb KB279282