SVN / TortoiseSVN is painfully slow

I experience painfully slow operations with one of our SVN repositories / projects.

For example, it takes 5-10 minutes to undo changes in one small file (10 KB). Or about 40-60 minutes to test a 100 MB project.

On the same server there are about 30 other projects, some of which are much larger than this, and not one of them is taught in this way.

It should be noted that this project is a Magento project. It is not very large in terms of disk space, but I have 23k Files and 11k folders, and I did not read SVN preforms well when there are many small files; It's true? And is there anything I can do to speed things up?

+58
svn revert tortoisesvn magento project
Jun 04 '09 at 9:32
source share
10 answers

A working copy of Subversion works pretty poorly when there are a huge number of directories, for example, in your case. For write operations (even only locally) to the working copy, the working copy must be locked, which means that the lock file is created in each directory (which the 11k file is created), then the action is performed and these 11k files are deleted again.

Subversion 1.7 is switching to a different working copy format that should solve these problems. Until then, there are several tricks that you could try to speed up, for example, exclude a working copy from your antivirus scanner, turn off file monitors in a directory (for example, TortoiseSvnCache), and try to reduce the total number of directories. (Perhaps by looking at several separate working copies)

+54
Jun 04 '09 at 18:17
source share

There is a known issue with using a return basket, which results in slow returns. When emptying the basket and installing TortoiseSVN so as not to use it during repeated operations, speed up this operation (see http://www.nabble.com/Revert-is-too-slow-td18222196.html ).

This definitely accelerated my return operations.

+20
Jul 23 '09 at 15:50
source share

I experienced extreme slowness with Subversion on Windows after changing my password. I had to delete all directories and files from %APPDATA%\Subversion\auth .

Now SVN is fast as a hare. My slowness occurred both through TortoiseSVN and on the command line.

+8
Aug 29 '11 at 15:37
source share

SVN is slow if you use NFS ( Network File System ) for a working copy. This may be your problem.

+6
Jun 04 '09 at 15:58
source share

Reverting changes to SVN is a local operation that should not go to the server at all. It sounds like the problem is in your working copy of the project.

Try running 'svn cleanup' in a working copy; You can also check if you have problems with your hard drive or file system.

+1
Jun 04 '09 at 9:50
source share

Our SVN worked slowly more slowly through TortoiseSVN, Eclipse, and the command line. Liabilities and exports were slow. Our Zend Framework PHP-based projects would require age to upgrade, and a small commit of about three files would take 5-10 minutes to appear.

Our SVN virtual machine ( CentOS ) had only 700 MB of RAM, which seemed reasonable for the Linux CLI, which only runs Subversion through Apache and has been running for about a year. We have only about 20 projects and only three developers.

I increased it to 1.5 GB of RAM, and now everything works much faster, back to our old speeds.

+1
Sep 06 2018-11-11T00:
source share

Try temporarily disabling antivirus software.

+1
Sep 26 '11 at 18:04
source share

I also suffered a lot after upgrading to TortoiseSVN 1.7.3.

Then I discovered that I had a separate installation of SVN 1.6.5. I uninstalled and reinstalled TortoiseSVN, and now everything is much better. The first update of the day at TortoiseSVN is still slow (1-2 minutes), but fast after that.

+1
Feb 02 '12 at 18:46
source share

I have several projects that use the Eclipse IDE. If you write down Eclipse project directories, you will get hundreds and hundreds of tiny files that have the same effect on my project as you suffer from yours.

I think that when you check files, SVN does this one at a time, which means that projects with a huge number of files will always be slow, and you cannot handle it (except to avoid frequent holistic storage of the operation).

Making changes to a single file should not be slow.

You can try the suggestions in another stack overflow message about slow SVN . This may also be due to using the BDB database .

0
Jun 04 '09 at 10:22
source share

We have a similar problem, the problem was TortoiseSvn (version 1.9.7). For example, a repo browser took about 10 minutes to go.

We wrapped the Show Locks feature and fixed every thing!

Right-click on the folder and select Tortoise\Settings , then General\Dialog 3 , then deselect Show Locks

Also some good tips can be found at http://tigris-scm.10930.n7.nabble.com/Workaround-for-slow-RepositoryBrowser-on-large-repositories-td92324.html

0
Sep 23 '17 at 4:35 on
source share



All Articles