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.

link|improve this question

33% accept rate
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! – user369665 Apr 3 at 13:20
feedback

3 Answers

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.

link|improve this answer
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 4: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. – toor Jul 10 '11 at 2:04
feedback

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

link|improve this answer
Excellent, this feature is under-documented but I found some good information at blogs.open.collab.net/svn/2009/03/… – Scott Markwell Nov 19 '09 at 19:35
1  
@Scott Markwell The updated link is blogs.collab.net/subversion/2009/03/… (you'll be prompted to login at the above). – James Skemp Apr 5 '11 at 22:37
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.