- SystoLOCK in review: Logging in to Active Directory with multi-factor authentication without passwords - Tue, Dec 5 2023
- New Group Policy settings in Windows 11 23H2 - Mon, Nov 20 2023
- Windows Server 2025 will support SMB over QUIC in all editions - Fri, Nov 17 2023
The ability to compress files has apparently been part of the SMB specification for a while now and has been included in Windows 10 for some time. So far, however, it could not be used in practice because it was lacking tools support. When it was announced last year, it was not yet clear when and how it would be available.
In the meantime, files can be explicitly compressed when copying to or from a file share under Windows 10 20H2. The preview of Server 2022 also includes the option. Contrary to reports, it was not added to Server 2019 via a cumulative update.
It is already clear that SMB compression is not intended for end users who, for example, load Office files from a file server. Rather, the target group is admins who need to transfer large files to other computers.
Hyper-V and Cloud as use cases
On the one hand, this affects the live migration of virtual machines since Hyper-V also supports SMB shares as storage for VHDs. A major motivation for SMB compression, however, has likely been services such as Azure files. In most cases, users connect to the cloud via relatively slow networks; hence, the greatest benefit can be achieved here by reducing the amount of data transferred.
At the moment, the usage scenarios for SMB compression are limited because it is primarily intended for Windows Server but is not yet available there. Larger client-to-client copy operations are the exception rather than the rule.
Usage depends on the type of data
The tools Microsoft has chosen to explicitly enable compression are robocopy.exe and xcopy.exe. Both offer the new /compress switch in Windows 10 20H2 and Server 2022 Preview.
It is obvious that the gain in performance depends primarily on the type of data being copied. Microsoft supports several algorithms, but of course they won't deliver any benefit with ZIP archives, JPGs, or other already compressed data. To prevent the copying process from slowing down in this case, the compression automatically turns itself off.
In my experiments, compressing an ISO file that primarily contained .cab files resulted in only a minor advantage. As expected, similar results emerged when copying a folder structure with many relatively small files.
Subscribe to 4sysops newsletter!
Significant differences were found when transferring an 11 GB VHDX with robocopy. However, these were not as impressive as in Microsoft's example, when the vendor announced SMB compression.
Read the latest IT news and community updates!
Join our IT community and read articles without ads!
Do you want to write for 4sysops? We are looking for new authors.
Even if I will activate SMB , I would use a copy tools like Carbonite or Gs Richcopy 360 to speedup the transfer over network
Great idea, Thanks