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

Re: High memory usage when using svn_fs_make_file()

From: Lars Jessen <LJessen_at_mikrov.dk>
Date: Tue, 22 Jan 2008 14:59:17 +0100

Erik Huelsmann wrote:

> > I'm trying to use the the svn_fs module to build a database
> of 10000
> > files, but it seems that every call to svn_fs_make_file() eats about
> > 300+kb of memory. The
> > following code illustrates the problem:
> >

[cut]

> If / When you're in a loop, you're supposed to use an
> iterpool and clear that on every iteration. That way, the
> previous loop should be limited to 300kB memory usage.

[cut]

> > The above code takes a long time to complete and memory
> usage peeks at
> > about 600MB.
> > What am I doing wrong?
> > I'm using svn-win32-1.4.6
>
> I hope the above helps.

Yes, thanks. Using a subpool and calling svn_pool_clear() for each
iteration solved the problem with high memory usage.
Performance is still rather low. A single call to svn_fs_make_file(), on
a directory that allready contains 10000 files, takes approximately 150
msecs on my system (and even more if I'm using the Berkeley Db
backend)...

- Lars

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-22 15:49:52 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.