今天發現我的機器明顯變慢了.
資源管理員開啟,慢!
瀏覽器開啟,慢!
從工作管理員中看到TSVNCache.exe 佔用了150M記憶體,而且CPU也經常佔用超過30%.
TSVNCache.exe是TortoiseSVN的駐留程式,這個程式會監控所有SVN的目錄,如果發現檔案改變,就會更新檔案及檔案夾的狀態.
大概是我的SVN目錄有2G多,數十萬檔案導致TSVNCache.exe 佔用資源比較多吧.
以下是TortoiseSVN文檔中對TSVNCache.exe的描述:
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 real time 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 tree view 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 real time.
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.
我選擇把Status Cache設定為None,TSVNCache.exe從工作管理員的進程中消失了,電腦的速度正常了.