# Intro

• CentOS 6.5
• Subversion（svn） 1.6.11
• Kernel 2.6.32-431.17.1.el6.x86_64

# Why

The Subversion working copy performs quite badly when there’s a huge number of directories, like in your case. For write operations (even only locally) to the working copy, the working copy has to be locked, which means that a lock file is created in every directory (that’s 11k file creates), then the action executes, and the those 11k files are deleted again.

Subversion 1.7 is moving to a different working copy format, that should resolve these problems. Until then there’s a few tricks you might try to speed things up, like excluding the working copy from your virus scanner, disabling file monitors on the directory (like TortoiseSvnCache), and trying to reduce the total number of directories. (Perhaps by checking out a few separate working copies)

# How to

## ¶RPM 方式

1. CentOS 6.x 的官方 yum 源和 epel 里的 subversion 的最高版本只到 1.6.x
2. Subversion 的源代码里并没有提供可用的 .spec 文件
3. Subversion 官网上列出的 CentOS 的 RPM 包维护的几家里两家需要注册帐号，剩下那家已经挂掉很久了。