You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Lele Gaifax <le...@nautilus.homeip.net> on 2003/10/06 16:56:58 UTC

Size comparison with CVS

Hi all,

yesterday I played a little importing one of my CVS repositories using
cvs2svn. It contains the sql code needed by a database, so almost
esclusively text sources.

I was a little bit disappointed by the fact that the final size of the
SVN repos is a little less than twice that of the CVS repos. This
*after* i cleaned up the logs with an hot-backup:

CVS repos: 4.0Mb
SVN repos: 7.2Mb

Digging inside the /db, I notice that the strings file, the one I'm
assuming contains the actual sources, is 3.9Mb.

db $ ls -lug
totale 7198
-rw-rw-r--    1 lele       241664  5 ott 20:12 changes
-rw-rw-r--    1 lele         8192  5 ott 20:12 copies
-rw-rw-r--    1 lele         8192  5 ott 20:12 __db.001
-rw-rw-r--    1 lele       270336  5 ott 20:12 __db.002
-rw-rw-r--    1 lele       327680  5 ott 20:12 __db.003
-rw-rw-r--    1 lele       737280  5 ott 20:12 __db.004
-rw-rw-r--    1 lele        16384  5 ott 20:12 __db.005
-rw-rw-r--    1 lele         1282  5 ott 20:12 DB_CONFIG
-rw-rw-r--    1 lele       687998  5 ott 20:05 log.0000000086
-rw-rw-r--    1 lele       499712  5 ott 20:12 nodes
-rw-rw-r--    1 lele       565248  5 ott 20:12 representations
-rw-rw-r--    1 lele        24576  5 ott 20:12 revisions
-rw-rw-r--    1 lele      3985408  5 ott 20:12 strings
-rw-rw-r--    1 lele       262144  5 ott 20:12 transactions
-rw-rw-r--    1 lele         8192  5 ott 20:12 uuids

Is there any explanation of this difference?

thanx&bye,
lele.
-- 
nickname: Lele Gaifax	| Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas	| comincerò ad aver paura di chi mi copia.
email: lele@seldati.it	|		-- Fortunato Depero, 1929.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Size comparison with CVS

Posted by Ben Collins-Sussman <su...@collab.net>.
Lele Gaifax <le...@nautilus.homeip.net> writes:

> CVS repos: 4.0Mb
> SVN repos: 7.2Mb
> 
> Digging inside the /db, I notice that the strings file, the one I'm
> assuming contains the actual sources, is 3.9Mb.
> 
> db $ ls -lug
> totale 7198
> -rw-rw-r--    1 lele       241664  5 ott 20:12 changes
> -rw-rw-r--    1 lele         8192  5 ott 20:12 copies
> -rw-rw-r--    1 lele         8192  5 ott 20:12 __db.001
> -rw-rw-r--    1 lele       270336  5 ott 20:12 __db.002
> -rw-rw-r--    1 lele       327680  5 ott 20:12 __db.003
> -rw-rw-r--    1 lele       737280  5 ott 20:12 __db.004
> -rw-rw-r--    1 lele        16384  5 ott 20:12 __db.005
> -rw-rw-r--    1 lele         1282  5 ott 20:12 DB_CONFIG
> -rw-rw-r--    1 lele       687998  5 ott 20:05 log.0000000086
> -rw-rw-r--    1 lele       499712  5 ott 20:12 nodes
> -rw-rw-r--    1 lele       565248  5 ott 20:12 representations
> -rw-rw-r--    1 lele        24576  5 ott 20:12 revisions
> -rw-rw-r--    1 lele      3985408  5 ott 20:12 strings
> -rw-rw-r--    1 lele       262144  5 ott 20:12 transactions
> -rw-rw-r--    1 lele         8192  5 ott 20:12 uuids
> 
> Is there any explanation of this difference?

Yes.  It's a transactional database.  You should expect some overhead.

The strings table is about 4 megs, as expected.  That's the main
"meat" of your original file data.  The other tables take up about 1.5
more megabytes; that's all the information about directory structures.
(CVS never needs to store information about paths).  The __db files
take up about 1.3 more megabytes; this is just shared memory segments.
They're essentially 'scratch' work areas that berkeleydb uses to aid
concurrent accesses.  And the one logfile in use is about .7 megs;
this is the journal that allows you to run 'svnadmin recover'.

So in this case, your file data is still about 4 megs, and the
database overhead is another 3.2 megs.

On the other hand, I imagine that if you converted 400 meg CVS
repository to SVN, the SVN repository would *not* have an additional
320 megs of database overhead.  I imagine that the ratio of overhead
to total repository size approaches zero as the total repository size
increases.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org