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

Re: Maintaining large repositories

From: Mark Phippard <markphip_at_gmail.com>
Date: Fri, 12 Feb 2010 16:04:52 -0500

On Fri, Feb 12, 2010 at 3:56 PM, Justin Connell
<justin.connell_at_propylon.com> wrote:

> I have a repository that has been in use for well over a year and over this
> period the size on disk has grown to over 150 GB, I found that when running
> svnadmin dump, that the resulting dump file was at 46 GB on disk and then
> when loading the dump file into a new repository that the size on disk in
> the repository folder was 8 GB in total.
> What's disturbing is the drop in disk usage from 150 --> 46 --> 8 Gig.
> Does anyone have an explanation for this?
> Or rather is there a better way of freeing up disk space back to the OS? (we
> are using FS and not Berkley DB storage)

Generally speaking a dumpfile ought to be bigger than the repository.
Are you sure you did not have some other files that had nothing to
with SVN stored in the same filesystem location?

Also, generally speaking, a dump load should produce an identical
repository. A notable exception is when your version changes. For
example, SVN 1.6 included a space saving feature called rep sharing
that is allows duplicate items to only be stored one time. One of the
earlier releases, perhaps 1.4?, included some zlib compression of
contents that also saved space. So if you were coming from earlier
versions and dumped and loaded into newer it would be expected to save

The 150 GB repos to 46 GB dump does not sound right though. Was the
dump produced with the --deltas option? That could explain it.

A reduction from 150GB to 8 GB is not expected. Most people only see
10-20% savings from these changes. However, both rep-sharing and
compression would be heavily influenced by the actual repository

To answer what I think is your main question, it is not expected that
you need to do ANY repository maintenance and it is not expected that
a routine dump/load should cause disk space to be recovered.

Mark Phippard
Received on 2010-02-12 22:05:25 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.