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

Re: 1.6.2 poor commit performance with large data

From: Denis Eperonnier <deperonnier_at_gmail.com>
Date: Fri, 19 Jun 2009 03:42:53 -0700 (PDT)

Hello,

I got a similar problem using TSVN 1.6.2 / SVN 1.5.4 server over
Apache http (SVNAllowBulkUpdate off to avoid server memory leakage for
huge commit/checkout)

The commit (property change for bugtraq integration on about 10000
folders) did take a long time (1-2hours), and a lot of memory (between
500MB and 1GB RAM) until the end of the list.
But then TSVN didn't do anything anymore (like stuck, did report
success or fail), while the change was really done on the repository
(Web access or update of another working copy was OK).
So I killed the TSVNProc process, but then my working copy was not
usable anymore, even after TSVN Cleanup.
Errors were caused by files which couldn't be found (temp files)

Did you check if commit was done on SVN repos?
Could you use the working copy after killing the process?

Still, I will definitely try out TSVN 1.6.3 when it's out.

Denis

On Jun 8, 8:57 pm, Justin Johnson <ajustinjohn..._at_gmail.com> wrote:
> On Mon, Jun 8, 2009 at 11:02 AM, Justin Johnson <ajustinjohn..._at_gmail.com>wrote:
>
>
>
> > On Tue, Jun 2, 2009 at 12:31 PM, Mark Phippard <markp..._at_gmail.com> wrote:
>
> >> On Tue, Jun 2, 2009 at 1:24 PM, Bolstridge,
> >> Andrew<andy.bolstri..._at_intergraph.com> wrote:
> >> >> -----Original Message-----
> >> >> From: B Smith-Mannschott [mailto:bsmith.o..._at_gmail.com]
> >> >> Sent: Friday, May 29, 2009 11:27 AM
> >> >> To: Bolstridge, Andrew
> >> >> Cc: us..._at_subversion.tigris.org
> >> >> Subject: Re: 1.6.2 poor commit performance with large data
>
> >> > [snip]
>
> >> >> This sounds like the same problem as described in [this thread][1]
> >> >> from a few days ago. Said thread links to [Issue 1964][2] which looks
> >> >> like the same problem.
>
> >> >> [1]:
>
> >>http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessage
> >> >> Id=2352720
> >> >> [2]:http://subversion.tigris.org/issues/show_bug.cgi?id=1964
>
> >> >> So far, evidence suggests that this issue crops up only under Windows.
> >> >> I haven't seen anything suggesting *why* this is the case, so any
> >> >> information you can provide is likely to be helpful.
>
> >> > I've had a look at this running again today. It seems to be throttled in
> >> the System process (not any of the sub-processes, so it must be a driver).
> >> On my quad-core box System.exe hits 25% CPU and stays there.
> >> > There is a lot of page faults (after transferring 73Mb, I've got 74
> >> million page faults with a delta of roughly 1000 per second).
> >> > Memory usage steadily (but very slowly) increases once the transfer has
> >> started to stall, currently showing 169Mb/164Mb in taskmanager.
>
> >> > and then.... I had a brainwave. I turned off the virus checker and
> >> suddenly things went back to normal. (I use Trend which isn't quite so bad).
> >> The memory usage is still increasing at a rate of 1Mb per second but the
> >> page fault delta for System process has dropped to 0.
>
> >> > In the end, transferring 9500 mostly cpp source-code files (187Mb) used
> >> peak memory of 1.5Gb RAM.
>
> >> > If anyone wants to check the 'leak', I made a heap comparison showing
> >> the allocations. I did this using TortoiseSVN (as that has some symbols),
> >> unfortunately it doesn't have enough symbols for the svn libraries or it'd
> >> be more useful. If anyone has built SVN for Windows, and will create some
> >> .pdb symbols, then I'd be happy to re-run my commits and see if I can find
> >> out more about this issue.
>
> >> > It appears that the call to libapr_tsvn's apr_allocator_max_free_set is
> >> doing the damage, after transferring 130Mb (roughly 7000 files), it has
> >> 'leaked' 749Mb. I can’t see what has been calling it without some effort
> >> (and symbols) but maybe someone more knowledgeable of SVN source can offer
> >> some suggestions. It appears to mostly allocate 8k at a time, but
> >> occasionally allocates 16k (if that helps any).
>
> >> > Be aware I've cross-posted this to the TortoiseSVN list too.
>
> >> The leak has been discovered and fixed and will be in 1.6.3.  This
> >> also revealed that the way temp files are created is a cause of
> >> slowness.  A fix for that is being looked at and will hopefully be in
> >> 1.6.3 as well.
>
> > Is this issue only on the client side?  Any memory leaks on the server?
>
> > When is 1.6.3 supposed to be released?
>
> > Thanks.
> > Justin
>
> For anyone who is interested, I tried adding the source code for the linux
> 2.6.29.4 kernel to a working copy and committing.  From Windows (1.6.2
> command line) the commit slowed down rather quickly and consumed all my
> memory.  It took so long (5 hours +) I eventually just killed the process.
>
> I then tried the same thing from a Solaris (1.6.2) working copy.  It went
> much faster, but still slowed down after a while and eventually failed with
> the following error.
>
> Out of memory - terminating application.
> Abort
>
> So the problem is on Windows and UNIX, but I'm still waiting to hear if the
> leak affects the 1.6.2 server at all, and also when the 1.6.3 release will
> be out.
>
> Justin
>
> ------------------------------------------------------http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMess...
>
> To unsubscribe from this discussion, e-mail: [users-unsubscr..._at_tortoisesvn.tigris.org].

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2363475

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-06-19 12:44:33 CEST

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