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

Re: SQLite and callbacks

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 09 Feb 2011 00:34:46 +0000

Branko Čibej <brane_at_e-reka.si> writes:

> Using Serf 0.7.1 definitely helps, the checkout of
> ^/subversion/tags/ebcdic was now successful, took 19 minutes and got svn
> memory usage up to 360MB. I'm not too happy about the last two points,
> but at least it works.

I checked out ^/subversion/branches using HEAD over ra_neon on Linux.
Memory use as reported by top started at about 120MB and grew at about
1MB per branch reaching about 180MB after all 52 branches.

This is one case where our central pristine store saves disk space due
to duplicate files:

$ du -hs wcng
2.3G wcng
$ du -hs wcng/.svn
574M wcng/.svn
$ du -hs wcng/.svn/wc.db
68M wcng/.svn/wc.db
$ sqlite3 wcng/.svn/wc.db "select count(*) from nodes"
87260
$ time svn st wcng

real 0m3.983s
user 0m2.544s
sys 0m1.412s

The memory grows much faster using ra_serf/serf-0.7.1, about 20MB per
branch. It's harder to monitor because the order is less predictable.
By the time I had 35 of 52 branches present memory had grown to 750MB,
however for the remaining branches it didn't grow any further. I don't
understand it, but something appeared to cap the memory use.

-- 
Philip
Received on 2011-02-09 01:35:39 CET

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

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