[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: AuthzSVNAccessFile size issues

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Thu, 22 Mar 2012 20:26:44 +0200

The relevant code is in libsvn_repos/authz.c. Look at the call to
svn_repos_authz_read() in mod_authz_svn.c: the file is read and parsed
once per connection.

I guess you could cache the parsed svn_authz_t struct in a longer-lived
pool, or perhaps increase the lifetime of connections (compare the
configuration suggestions in http://subversion.apache.org/docs/release-notes/1.7#serf).

The impact of this will be, of course, that changes to the authz config
file might not take effect as soon as they do now.

Joel Eidsath wrote on Thu, Mar 22, 2012 at 09:11:48 -0700:
> I was just handed a large SVN install with thousands of users and
> hundreds of individual repositories. It is experiencing serious
> performance issues. I believe that it mostly boils down to a 14MB
> AuthzSVNAccessFile.
>
> What can I do to speed this up? Is there a database solution to use
> instead of the flatfile? Can I implement caching somehow? I am willing
> to code something up if I have to.
>
> Thanks for any help! Please CC me on any replies.
>
> Joel Eidsath
Received on 2012-03-22 19:27:27 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.