Skip to content

Commit 9149ac5

Browse files
author
Simonx Xu
authored
Merge pull request #8204 from MicrosoftDocs/v-lianna-patch-26
AB#3782 Update slow-smb-file-transfer.md
2 parents 8e91ffa + eeba4e6 commit 9149ac5

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

support/windows-server/networking/slow-smb-file-transfer.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Slow SMB files transfer speed
33
description: Learn how to resolve transfer performance issues with SMB files by using the provided troubleshooting steps.
4-
ms.date: 01/15/2025
4+
ms.date: 02/13/2025
55
manager: dcscontentpm
66
audience: itpro
77
ms.topic: troubleshooting
@@ -15,12 +15,9 @@ Server Message Block (SMB) is the default Windows network file system feature an
1515
## Slow transfer
1616

1717
> [!NOTE]
18-
> [SMB signing](https://techcommunity.microsoft.com/t5/storage-at-microsoft/configure-smb-signing-with-confidence/ba-p/2418102) and [SMB encryption](/windows-server/storage/file-server/smb-security) are known to slow down SMB transfers. The amount of the performance loss depends greatly on the capabilities of the hardware involved. The primary factors are the count and speed of the CPU core, and how much CPU time is dedicated to other workloads.
18+
> [SMB signing](https://techcommunity.microsoft.com/t5/storage-at-microsoft/configure-smb-signing-with-confidence/ba-p/2418102) and [SMB encryption](/windows-server/storage/file-server/smb-security) are known to slow down SMB transfers. The amount of the performance loss depends greatly on the capabilities of the hardware involved. The primary factors are the count and speed of the CPU cores, and how much CPU time is dedicated to other workloads.
1919
>
20-
> [SMB signing will be required by default](https://aka.ms/SmbSigningRequired) in Windows 11, version 24H2 (preview) and Windows Server 2025 (preview). We don't recommend turning off the SMB client and server signing requirement, as they provide significant protection against spoofing, tampering, and relay attacks.
21-
22-
> [!Important]
23-
> Windows 11, version 24H2 and Windows Server 2025 are in PREVIEW. This information relates to a prerelease product that may be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.
20+
> Starting with Windows 11, version 24H2 and Windows Server 2025, [SMB signing is required](https://aka.ms/SmbSigningRequired) by default. We don't recommend turning off the SMB client and server signing requirement, as they provide significant protection against spoofing, tampering, and relay attacks.
2421
2522
The following steps can be used to analyze, troubleshoot, and resolve common issues with slow SMB transfers.
2623

@@ -30,11 +27,11 @@ The following steps can be used to analyze, troubleshoot, and resolve common iss
3027
- Robocopy is optimized for IT administrators to create high-performance local and remote file copy tasks.
3128
- File Explorer is convenient for basic use, but lacks the performance optimizations of robocopy that certain tasks require.
3229

33-
- Try an unbuffered I/O copy for files larger than 1 GB by using the `robocopy /J` command from the command line.
30+
- Try an unbuffered I/O copy for files larger than 1 GB by using the `robocopy /J` command from Command Prompt or PowerShell.
3431
- Enable and use [SMB compression](/windows-server/storage/file-server/smb-compression).
3532

36-
- This greatly reduces transfer time and bandwidth utilization for large files containing significant whitespace, such as virtual machine disks, `.iso`, and `.dmp`.
37-
- Non-compressible data, like archive files (`.zip`, `.7z`, and `.rar`), `.mp4` videos, and `.mp3` files won't see significant performance improvements with SMB compression.
33+
- This greatly reduces transfer time and bandwidth utilization for large files containing significant whitespace, such as virtual machine disks (`.vhd`, `.vhdx`, `.vmdk`, and `.ovf`), `.iso`, and `.dmp` files.
34+
- Non-compressible data, like archive (`.zip`, `.7z`, and `.rar`), video (`.mp4` and `.mkv`), and audio (`.mp3` and `.flac`) files won't see significant performance improvements with SMB compression.
3835
- SMB compression is available starting with Windows 11 and Windows Server 2022.
3936

4037
- SMB speeds can be limited by storage performance.
@@ -62,7 +59,7 @@ The following steps can be used to analyze, troubleshoot, and resolve common iss
6259

6360
- Transfers are slow only when using certain technologies or a [Scale-Out File Server (SOFS)](/windows-server/failover-clustering/sofs-overview).
6461

65-
- Some technologies, typically backup or database-based, require disk write-through to maintain data integrity.
62+
- Some technologies, typically backups and databases, require disk write-through to maintain data integrity.
6663
- Windows SOFS requires write-through, as does SQL backups.
6764
- Disk write-through requires that the storage operation bypasses all storage caches and buffers and must be committed directly to the storage medium for the operation to complete.
6865
- In these cases, a storage system that lacks high write-through performance can't provide performant SMB transfers.
@@ -123,15 +120,15 @@ Network latency, SMB `create` commands, and antivirus programs contribute to a s
123120

124121
- Robocopy is built into Windows, and the `/MT` parameter enables multi-threaded file copies.
125122
- Multi-threaded copies help by running many data transfers in parallel.
126-
- While one or two files are being created, multiple files can be transferred.
123+
- While one or two files are being created, the data of multiple files can be transferred.
127124
- This increases the amount of in-flight network data and minimizes pauses in the network data stream.
128125
- Writing to the console is another time-consuming operation, so redirecting the output to a log file speeds up the transfer job.
129126
- By default, `/MT` copies eight files at a time. It supports up to 128 copies at a time.
130127
- Too many threads may harm performance. Two threads per CPU core is generally safe, but testing is highly advised to find the optimal performance number.
131128
- For more information about usage details, see [robocopy](/windows-server/administration/windows-commands/robocopy).
132129

133130
- Use `AzCopy` when moving data to/from Azure.
134-
- [AzCopy](https://aka.ms/azcopy) has concurrency (multi-threading) capabilities and several [performance optimizations](/azure/storage/common/storage-use-azcopy-optimize).
131+
- [AzCopy](https://aka.ms/azcopy) has concurrency (multi-threading) capabilities and several [performance optimizations](/azure/storage/common/storage-use-azcopy-optimize) for cloud workloads.
135132

136133
- Use file compression.
137134
- Compress the small files into a large archive file (`.zip`, `.7z`, `.rar`, `.tar`, and `.gz`).
@@ -157,6 +154,15 @@ You should verify that the Office and SMB binaries are up-to-date, and then test
157154
Set-SmbServerConfiguration -EnableLeasing $false
158155
```
159156

157+
Alternatively, to disable leasing on a per-share basis in Windows Server 2019 and later versions, run the following cmdlet:
158+
159+
> [!IMPORTANT]
160+
> We recommend testing with `LeasingMode` set to `Shared` first. This allows some leasing while disabling the portions that typically cause slowness. Use `None` only as a final option.
161+
162+
```powershell
163+
Set-SmbShare -Name <ShareName> -LeasingMode [Shared|None]
164+
```
165+
160166
2. This works immediately on a new SMB client connection. There's no need to restart the SMB server or client machines.
161167

162168
To avoid this issue, you can also replicate the file to a local file server. For more information, see [saving Office documents to a network server is slow when using EFS](/office/troubleshoot/office/saving-file-to-network-server-slow).

0 commit comments

Comments
 (0)