You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/windows-server/networking/slow-smb-file-transfer.md
+18-12Lines changed: 18 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Slow SMB files transfer speed
3
3
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
5
5
manager: dcscontentpm
6
6
audience: itpro
7
7
ms.topic: troubleshooting
@@ -15,12 +15,9 @@ Server Message Block (SMB) is the default Windows network file system feature an
15
15
## Slow transfer
16
16
17
17
> [!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.
19
19
>
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.
24
21
25
22
The following steps can be used to analyze, troubleshoot, and resolve common issues with slow SMB transfers.
26
23
@@ -30,11 +27,11 @@ The following steps can be used to analyze, troubleshoot, and resolve common iss
30
27
- Robocopy is optimized for IT administrators to create high-performance local and remote file copy tasks.
31
28
- File Explorer is convenient for basic use, but lacks the performance optimizations of robocopy that certain tasks require.
32
29
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.
34
31
- Enable and use [SMB compression](/windows-server/storage/file-server/smb-compression).
35
32
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.
38
35
- SMB compression is available starting with Windows 11 and Windows Server 2022.
39
36
40
37
- 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
62
59
63
60
- Transfers are slow only when using certain technologies or a [Scale-Out File Server (SOFS)](/windows-server/failover-clustering/sofs-overview).
64
61
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.
66
63
- Windows SOFS requires write-through, as does SQL backups.
67
64
- 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.
68
65
- 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
123
120
124
121
- Robocopy is built into Windows, and the `/MT` parameter enables multi-threaded file copies.
125
122
- 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.
127
124
- This increases the amount of in-flight network data and minimizes pauses in the network data stream.
128
125
- Writing to the console is another time-consuming operation, so redirecting the output to a log file speeds up the transfer job.
129
126
- By default, `/MT` copies eight files at a time. It supports up to 128 copies at a time.
130
127
- 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.
131
128
- For more information about usage details, see [robocopy](/windows-server/administration/windows-commands/robocopy).
132
129
133
130
- 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.
135
132
136
133
- Use file compression.
137
134
- 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
157
154
Set-SmbServerConfiguration -EnableLeasing $false
158
155
```
159
156
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.
2. This works immediately on a new SMB client connection. There's no need to restart the SMB server or client machines.
161
167
162
168
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