Circuit Negma

C++, C, VB.NET, PCB, Electronics, Circuit Design

Optimize Tortoise SVN Cache (TSVNCache.exe) Disk I/O

Posted by Circuit Negma on January 8, 2008

Source: Optimize Tortoise SVN Cache (TSVNCache.exe) Disk I/O

I’ve got a lot of background processes running and killing my disk performance with all the I/O they’re doing.  One of the primary offenders is the TortoiseSVN cache that helps put the icon overlays in Explorer.  Several folks I know disabled the cache altogether, but I like the icons.

Rather than disable the cache, you can optimize the paths it looks at so it only actually looks at working copies and not your whole disk.  If you keep all of your working copies in specific known locations, this is a really simple thing to do.  For example, I keep all of my checked out code in one of three places – a “dev” folder I have, the “Visual Studio 2005” folder in “My Documents,” and the “Visual Studio Projects” folder in “My Documents.”

To optimize the disk usage…

  1. Right-click on your desktop and select “TortoiseSVN -> Settings…”
  2. In the tree view, find the “Look and Feel/Icon Overlays” branch.
  3. In the “Exclude Paths” box, put C:\* to exclude the entire C drive.  If you have more drives than that, exclude them all at the top level.  Separate the values by newlines.
  4. In the “Include Paths” box, list all of the locations you have working copies, separated by newlines.  Again, this is easier if you keep all of your working copies in a specific folder or set of folders.  Using my example, this is what I put in the “Include Paths” box:
    C:\Documents and Settings\tillig\My Documents\Visual Studio 2005\*
    C:\Documents and Settings\tillig\My Documents\Visual Studio Projects\*

    And here’s a screen shot:
    TortoiseSVN icon overlay options - set the
  5. Click OK to apply the changes.
  6. Either reboot or open Task Manager and kill “TSVNCache.exe” so it restarts when needed.  You have to restart it for these options to take effect.

After I did this, the icon overlays still worked great but the disk I/O went down to nearly nothing.  YMMV.


4 Responses to “Optimize Tortoise SVN Cache (TSVNCache.exe) Disk I/O”

  1. Nice tip page. 🙂 I got fed up with TSVNCache constantly going over my external 500Gb harddisk. Obviously that could take a lot more than just my development directories.

  2. srou tiax uywmeqaks jbpxzoveh kfphtybl hxzbnocua iebfdrnm

  3. […] was not very convenient, so I was looking for some smarter approach to this problem. And finally I have found one. It didn’t work immediately (I had to reboot) but now it works fine (sometimes icons do not […]

  4. Latia said

    If some one wishes to be updated with newest technologies then he must be pay
    a quick visit this website and be up to date all the time.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: