Compress Symbols Files To Save Space

If you’re like me and you have a number of debugging tools (WinDBG, Sysinternals tools, etc) you more than likely have a locally cached copy of the publicly available symbols. This certainly helps speed things up as you don’t have to query the online Microsoft repository every time you use one of these tools, however the locally cached copy can grow to quite some size.

In this post I will show you how I reclaim some of that storage space by leveraging the builtin-in Windows compression feature, specifically targeting the symbols cache. My computer is configured to use the local path of C:\Symbols and as such my instructions make the assumption the symbols are stored here.

Let’s take a look at my symbols folder before any compression settings are configured –

Symbols Folder Initial Size Without Compression

As you can see right now I’m using 6.77GB of disk space to cache symbols files – that’s quite a lot! I think it’s time we shrunk these files down a bit and reclaimed some precious SSD capacity. If we click on the ‘Advanced’ button in our right-click context menu we get a new window which provides an option to compress the folder.

Advanced Attributes Compress contents to save disk space

Advanced Attributes Compress contents to save disk space selected

Now we can ‘OK’ our way back out of the menus, as we do this Windows will prompt us to pick whether to apply the change to just this folder or any subfolders and files within it. We will leave the setting on the default of all files and subfolders.

Compress Symbols Folder Confirm Attribute Changes Apply changes to this folder, subfolders and files

Depending on how large the symbols cache is this next step could take some time.

Compress Symbols Folder Applying Attributes

Once the compression task has completed we can look at the size on disk to see how much space has been reclaimed.

Symbols Folder Initial Size With Compression

That’s a fantastic return! We’ve gone from 6.77GB stored on disk to only 3.95GB of stored data, quite a return especially when we are talking about solid state drives with their additional cost. Put another way this is nearly a 42% reduction in consumed space, Windows compression is definitely doing a good job. If you are storing symbols locally I strongly recommend you consider compressing the cache folder to reclaim space, the overhead of decompressing them for use is minimal and you shouldn’t notice when debugging.

If you are curious, you can of course do this via the command line using the COMPACT command which also provides a convenient output detailing the savings.

Here we see that the compression ratio is 2.7 to 1, not bad at all, the full compact command line syntax is shown below for easy reference.


Hopefully the above information is informative and useful to you, as always if you have any questions please feel free to leave them in the comments below or send me a message/tweet.

Leave a Reply