tsvncache.exe is a cpu hog – fix

April 8, 2008 by Mike Henke    13 Comments
Posted under: Subversion

I have noticed tsvncache.exe is a cpu hog on my computer. Tsvncache.exe collects data needed to display the icon overlays for TortoiseSVN.

Fix:

Right-click desktop, TortoiseSVN —> settings —> Icon Overlay:

1) System cache – Set either to Shell or None (mouse over options to see what they do and which one will work best for you)

And/Or

2) Set Excluding/Including paths

13 Comments + Add Comment

  • Thanks for this.

  • Mike Henke

    No problem, hopefully it helped.

  • Paul

    Thanks, fixed my pc/explorer freezing up all the time.

  • Dale Lane

    Thanks - did the trick for me, too.

  • Jason Hanley

    Awesome tip. Glad I found it. The CPU and disk usage was driving me nuts! :)

  • Murthy

    Cool tip. Helped me too. Thank you.

  • Mike Henke

    Nice this post is still relevant. Not sure why TortoiseSVN doesn't fix the issue.

  • Jay

    Thanks for the fix.

  • Satish

    really a awesome time, You saved my system and time :)

  • Satish

    I mean awesome tip ;)

  • Stefan

    Very helpfu!. Thank you very much.

  • Anadi Kumar

    It really works.. thank you..

  • Anadi Kumar

    I found that if your go to the TortoiseSVN settings, by right clicking on a checkout folder, going to TortoiseSVN => Settings => Look and Feel => Icon Overlays you have the option for the status cache. The three options are Default, Shell and None.

    Here are the explanations of each:
    Default

    Caches all status information in a separate process (TSVNCache.exe). That process watches all drives for changes and fetches the status again if files inside a working copy get modified. The process runs with the least possible priority so other programs don't get hogged because of it. That also means that the status information is not realtime but it can take a few seconds for the overlays to change.

    Advantage: the overlays show the status recursively, i.e. if a file deep inside a working copy is modified, all folders up to the working copy root will also show the modified overlay. And since the process can send notifications to the shell, the overlays on the left treeview usually change too.

    Disadvantage: the process runs constantly, even if you're not working on your projects. It also uses around 10-50 MB of RAM depending on number and size of your working copies.

    Shell

    Caching is done directly inside the shell extension dll, but only for the currently visible folder. Each time you navigate to another folder, the status information is fetched again.

    Advantage: needs only very little memory (around 1 MB of RAM) and can show the status in realtime.

    Disadvantage: Since only one folder is cached, the overlays don't show the status recursively. For big working copies, it can take more time to show a folder in explorer than with the default cache. Also the mime-type column is not available.

    None

    With this setting, the TortoiseSVN does not fetch the status at all in Explorer. Because of that, files don't get an overlay and folders only get a 'normal' overlay if they're versioned. No other overlays are shown, and no extra columns are available either.

    Advantage: uses absolutely no additional memory and does not slow down the Explorer at all while browsing.

    Disadvantage: Status information of files and folders is not shown in Explorer. To see if your working copies are modified, you have to use the "Check for modifications" dialog.

    Regards,
    Anadi KUMAR
    Software Engineer | HSBC Technology and Services - Global Technology
    HSBC Software Development (India) Limited,GLT 4.0 - Panchshil Tech. Park, Block D, S.No. 19, Hissa 2A/11/2, Yerawada, Pune, 411006.
    India.

    Mobile:+91 99822622054
    Email: anadikumar@hsbc.co.in
    Email: anadikumar@gmail.com

  • Got anything to say? Go ahead and leave a comment!