Performance Impact of Windows Offline Files

A little known fact about the Windows Offline Files functionality is it slows down network operations considerably. Here is how and why.

Test Results

The following tests were performed with a set of 1,114 files of a total size of 408 MB. In the copy test the files were copied from a Windows 7 client machine to a file server over a 100 MBit LAN connection. In the delete test the files were deleted on the file server. No antivirus or other security products were running on either side. Each test was run twice, the table lists the average.

Target configurationFile copyFile delete
Target file share not available offline6.6 MB/s225 files/s
Target file share available offline4.6 MB/s90 files/s
Impact of offline files30%60%

Analysis

The tests clearly show that Offline Files in online mode reduce the performance of network operations by as much as 60%. The amount of performance degradation depends on the type of network operation. It differs between copy and delete operations, for example. The reasons for the degradation lie in the architecture of Offline Files. Every IO request passes several filter drivers: CSC (Offline Files), DFS, RdpRdr, LanmanRedirector, Webdav. The Offline Files filter driver is first. It examines whether the IO affects its cache. In the best situation - a read request of a file present and up to date in the cache - the IO request can be satisfied without every reaching the network. In another situation - a write request - CSC clones the write and sends it both to its local cache and to the network. As the tests show the overhead involved with this cloning process can be significant. This analysis has been confirmed by Microsoft support. In other words: this is by design.

See also my other articles about offline files.

Comments

Related Posts

Windows 11: How To Configure Secure DNS (DoH) for All WiFi Networks

Windows 11: How To Configure Secure DNS (DoH) for All WiFi Networks
This post explains how to configure DNS over HTTPS (DoH) for all WiFi networks in Windows 11 via the Settings app. Unfortunately, this is less intuitive than it should be; I need a reminder every time I connect to the German railway’s WiFiOnIce, which only seems to work with Deutsche Bahn’s (insecure) DNS server (you can switch to more secure DNS servers once you’ve accepted the terms on their captive portal).
Networking

Latest Posts

Beautiful Slide Decks from Markdown: Presenting with Slidev

Beautiful Slide Decks from Markdown: Presenting with Slidev
Would you like to get away from PowerPoint and author slide decks in Markdown? Then Slidev may be just what you’re looking for. It’s a web app for presentations. The fact that it’s geared towards developers shouldn’t put you off. After all, who isn’t a developer these days, with AI? Slidev comes with the beautiful Tahta themes and supports features like syntax highlighting and animations. Export options to PDF and PPTX allow for easy sharing. This article shows how to get started.
Applications