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

Re: Checking disk space usage on the server.

From: Kris Deugau <kdeugau_at_vianet.ca>
Date: 2005-04-04 18:12:44 CEST

Gary Ormsby wrote:
> I'm sorry. I should have been more explicit.
>
> I'm mainly interested in the disk usage on the server.

Does your server OS not provide any way to see how much disk space is
used by a file or driectory tree?

If you're asking for something else, you'll have to give a more detailed
question.

On Linux, du -s {repo directory} should tell you how much disk space a
repo is using. There's no way to tell how much space a specific
*branch* is using, though, because it's all wrapped in BDB database
files or whatever FSFS uses - there's no correlation between files in
the logical repository and the files on disk that represent the
repository. (At least, based on everything I've read about
Subversion...)

> I was thinking about the case where a directory is created by copying
> another directory, by using the svn copy command. It says here that
> such copies are very cheap disk usage-wise:
> http://svnbook.red-bean.com/en/1.0/ch04s02.html#svn-ch-4-sect-2.1.
> I'd like to measure that.
>
> If I create a new directory from an existing directory with the "svn
> copy" command how much disk space is used to store the newly created
> directory?

In the repository, a URL-to-URL copy occupies a handful of bytes that
point back to the source of the copy, rather than actually copying
content. ("svn cp svn://path/to/source svn://path/to/dest")

> As files are modified in the new directory I'm assuming the disk
> usage on the server will increase as the links are replaced by actual
> files (or more likely be replaced by the diffs between the original
> files and the changes).

This would be a WC-to-URL copy, in which case it should occupy about as
much space as the diffs plus the handful of pointer records required to
indicate the source URL(s) your WC started with.

-kgd

-- 
Get your mouse off of there!  You don't know where that email has been!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Apr 4 18:20:04 2005

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.