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

RE: svn log "hangs"

From: Ray Johnson <Rayj_at_ingenio.com>
Date: 2004-11-05 03:17:33 CET

Just to show I'm not exaggerating - I timed the "svn log" for a file: it took 5 minutes and 2 seconds.

The file in question had only 9 revisions. Also, the file was never "copied" from a different part of the repository. So it seems a little crazy that it would take that long!

We might be able to do the 'SVNPathAuthz off' "fix" - but we really don't want to. Kind of nutty that a "security fix" would cause someone to want to turn off security...

Seems to me like some optimizations could be made in mod_dav_svn. For example, if the path doesn't change in any of the revisions why is the security constantly rechecked? Obviously, I don't know how mod_dav_svn is implemented but something can't be right...

Ray

-----Original Message-----
From: Ben Collins-Sussman [mailto:sussman@collab.net]
Sent: Thursday, November 04, 2004 4:48 PM
To: Ray Johnson
Cc: users@subversion.tigris.org
Subject: Re: svn log "hangs"

On Nov 4, 2004, at 6:17 PM, Ray Johnson wrote:

>  
> Since we have upgraded to Subversion 1.1.1 several of our developers
> have reported that "svn log" is hanging.  In actually, I think it is
> just super slow - like taking several minutes!
>  
> It apparently has something to do with Apache.  All of our users go
> through Apache (using NT Auth, for security) so all of the repository
> access is of the http:// variety.  We do have the subversion service
> running (used by our build system) and if I do a "svn log" on the save
> file with the svn:// protocol it returns very quickly.
>  
> This did not happen before version 1.1.1.  Has anyone else seen this
> problem?  Or have any clue what the issue might be?
>  

Apache + svn 1.1.0 has some performance problems now, specifically because of the new security fixes. 'svn log' takes about 2-3x longer to run now, and 'svn ls' was even worse. (Again: we're talking about mod_dav_svn here, not svnserve.)

svn 1.1.1 fixes the 'svn ls' problem, but there's no known way to make 'svn log' fast again. The only thing you can do is forgo all path-based authorization; if you're willing to disable mod_authz_svn, then setting 'SVNPathAuthz off' in svn 1.1.1 will make everything the same speed it was in 1.0.

Hope this helps. 'svn log' shouldn't take several minutes -- that seems highly exaggerated. Though, maybe it's not totally surprising.
You see, the security fixes causes mod_dav_svn 'svn log' to independently verify the readability of every single changed-path in each revision returned. This happens by doing an internal GET request on each changed-path. Perhaps the NT Auth is being *really* slow on these subrequests...?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 5 03:18:05 2004

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