Benchmarking Windows 7 Offline Files Transparent Caching

Windows 7 comes with several features that promise to greatly improve file access over a WAN. One of them is version 2 of the SMB protocol, another transparent caching. This article describes how I measured their effectiveness.

SMB2

SMB2 is said to be much less “chatty” and thus more efficient on WAN links. To verify this, I copied 3 different sets of files over a simulated WAN link (bandwidth 2 MBit/s, latency 25 ms). I performed the test both with Windows XP and with Windows 7. Copy source was a NetApp system that supports SMB version 1 and 2.

TestWindows XPWindows 7Speed increase
Large files 16 files, total size 316 MB, avg. size 20 MB1,500 s1,438 s4%
Small files 370 files, total size 14,8 MB, avg. size 41 KB171 s124 s27%
Very small files 199 files, total size 174 KB, avg. size 895 Bytes55 s34 s38%

Transparent Caching

This nifty feature stores files that have been copied once to the local machine in the offline files cache. If the file is accessed again, it is fetched from the offline files cache instead of going to the file server a second time. I tested the potential performance benefits of transparent caching by repeating the SMB test above (after rebooting both computers to empty their file system caches).

Transparent caching needs to be enabled via the group policy setting Enable transparent caching in Computer Configuration\Administrative Templates\Network\Offline Files. Enable the setting and set a minimum latency for it to operate - only if the file server is further away will its files be cached. I used a value of 10 ms in this test which is well below the 25 ms latency of the WAN link.

TestWindows XPWindows 7Speed increase
Large files 16 files, total size 316 MB, avg. size 20 MB1,496 s10 s99%
Small files 370 files, total size 14,8 MB, avg. size 41 KB163 s51 s69%
Very small files 199 files, total size 174 KB, avg. size 895 Bytes54 s27 s50%

Conclusion

As you can see, both technologies improve file access over WAN links compared to Windows XP’s SMB1. Combined they make Windows XP look very old. If you have not done so yet, give transparent caching a try.

Comments

Related Posts

Samba & SMB Web Access Through Filestash With Passthrough Auth

Samba & SMB Web Access Through Filestash With Passthrough Auth
This article explains how to set up Filestash in a Docker container as a web interface for browser-based access to a Samba or SMB file server. This newer configuration improves on my earlier Filebrowser setup in one essential point: the SMB storage is accessed as the authenticating user, i.e., the user authentication is passed through to the backend storage. This means that each user sees exactly the directories and files they have access to. When a new file is created through Filestash, it’s stored with the proper permissions as if it had been created it via SMB.
Home Automation, Networking & Self-Hosting

Latest Posts

Fast & Silent 5 Watt PC: Minimizing Idle Power Usage

Fast & Silent 5 Watt PC: Minimizing Idle Power Usage
This micro-series explains how to turn the Lenovo ThinkCentre M90t Gen 6 into a smart workstation that consumes only 5 Watts when idle but reaches top Cinebench scores while staying almost imperceptibly silent. In the first post, I showed how to silence the machine by replacing and adding to Lenovo’s CPU cooler. In this second post, I’m listing the exact configuration that achieves the lofty goal of combining minimal idle power consumption with top Cinebench scores.
Hardware

Fast & Silent 5 Watt PC: Lenovo ThinkCentre M90t Modding

Fast & Silent 5 Watt PC: Lenovo ThinkCentre M90t Modding
This micro-series explains how to turn the Lenovo ThinkCentre M90t Gen 6 into a smart workstation that consumes only 5 Watts when idle but reaches top Cinebench scores while staying almost imperceptibly silent. In this first post, I’m showing how to silence the machine by replacing and adding to Lenovo’s CPU cooler. In a second post, I’m listing the exact configuration that achieves the lofty goal of combining minimal idle power consumption with top Cinebench scores.
Hardware