9

For a Linux or Windows system, what tricks do you do to optimize your Subversion server?

The following are my current tricks for a Linux system serving over Apache with HTTPS and backed by Active Directory using LDAP authentication.

Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
Scott Markwell
  • 742
  • 1
  • 6
  • 13
  • thanks for the reminder about KeepAlive! It is indeed very helpful: I am presently doing svnsync between europe and Asia, and 'KeepAlive On' doubled the performance! – phil_w Apr 03 '12 at 13:20

3 Answers3

6

I can't say much about the performance difference between BDB and FSFS, but I can definitely say that FSFS is far more stable. I'd suggest using it over BDB simply to preserve your sanity. When we had a largish repos running on BDB, we had to run recovery on it at least once a week, often several times. It was irritating. Now that we use FSFS, it's been rock solid.

Jeff Snider
  • 3,272
  • 18
  • 17
  • 2
    +1 I wish I could give you more votes. If you're using BDB, you're doing it wrong. Had so many problems when using BDB. Since using fsfs, we've had none. – David Pashley Oct 31 '09 at 04:47
  • Thanks for the input, I've been running FSFS for the past 3 years, when ever it switched over to the default, so haven't hit such an situation (thankfully). Good to know I shouldn't bother. :D – Scott Markwell Oct 31 '09 at 18:35
  • One of the primary reasons for me using SVN was that it had FSFS repos. I use to build the bleeding edge just for this feature. – d-_-b Jul 10 '11 at 02:04
5

"svnadmin pack" is a neglected documentation command, but ran it often may be helpful especially if your commits are small.

Andreyev
  • 71
  • 4
  • Excellent, this feature is under-documented but I found some good information at http://blogs.open.collab.net/svn/2009/03/subversion-16-feature-preview-fsfs-packing.html – Scott Markwell Nov 19 '09 at 19:35
  • 2
    @Scott Markwell The updated link is http://blogs.collab.net/subversion/2009/03/subversion-16-feature-preview-fsfs-packing/ (you'll be prompted to login at the above). – James Skemp Apr 05 '11 at 22:37
0

I measured significant performance improvements when using svnserve instead of mod_dav_svn and Apache.

I performed some measurements in order to analyse repository performance in a project I'm working in, and the result was to setup an svnserve server in addition to the previously used Apache server. See http://www.ohrner.net/software/tipps_en.php, Section "Subversion Performance" for reference and measurement results.

I realise that using svnserve is not always an option, but often it is, at least if used in addition to WebDAV / DeltaV access, and if it is, it may be rewarding.

Gunter Ohrner