Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
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 3 '12 at 13:20
add comment

3 Answers 3

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

share|improve this answer
add comment

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

share|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
2  
@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
add comment

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.

share|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. –  d-_-b Jul 10 '11 at 2:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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