You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jani Monoses <ja...@iv.ro> on 2003/01/30 13:38:50 UTC
various questions related to repo size
Hi
I started testing svn the other day using ra_local and ra_svn on a linux kernel tree
(about 280 Megs)
What I did was:
I had a repo and 3 workspaces.Moved the kernel tree into one and checked it in.
It lasted over half an hour and after two screenfuls of dots it said "Killed".
But anyway the tree was in.
The workspace from which I committed uses around 293Megs.
Now I updated the 2 other workspaces (one ra_local other ra_svn from localhost)
After a while they had the kernel tree but those workspaces are 534Megs each.
1) Aren't 2 workspaces supposed to be equal if everything is commited from one and
updated form the other?The difference is .svn/prop and ./svn/prop-base files which appear
only in the updated WS not the original.
2) The repository seemed to grow while the WS was updating.About 300M for each WS.Why should the
repo care about an update and use up so much space?It is in log.XXXXXXXX files which according
to a mail from Brane dated Jan 13th are required.The more clients the more the repo grows?
Does it keep some sort of repository for each client separately?I don't think so because if one
deletes a WS the repo shouldn't care but the extra hundreds on megs would stay there.
Am I correct in supposing that these are not features of svn but I misused it or came across some bugs?
svn of 24Jan (post 17.1) with DB 4.1.24
thanks
Jani.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Philip Martin <ph...@codematters.co.uk>.
Ben Collins-Sussman <su...@collab.net> writes:
> If this is what you're seeing, then something is wrong.
>
> All working copies should be the same size.
That's what I thought as well, but it turns out that Jani is correct.
$ svnadmin create repo
$ svn co file://`pwd`/repo wc1
$ svn mkdir wc1/foo
$ echo bar > wc1/foo/bar
$ svn add wc1/foo/bar
$ svn ci wc1
$ svn up wc1
$ svn co file://`pwd`/repo wc2
$ diff -r --brief wc1 wc2
Files wc1/foo/.svn/entries and wc2/foo/.svn/entries differ
Only in wc2/foo/.svn/prop-base: bar.svn-base
Only in wc2/foo/.svn/props: bar.svn-work
The second working copy has props files that contain "END", i.e. no
properties, but the first working copy doesn't have them. It's only a
temporary condition, the missing files will get created as the first
working copy receives updates, or if you sets some properties.
There is a further difference if you use ra_dav. In that case the
working copy that does the commit will not have activity-urls in the
dir-wcprops, while a checkout/update working copy will. Once again it
is only a temporary condition.
It is possible that we could improve working copy performance by
eliminating the props files that just contain "END". I don't know
whether it would make a noticeable difference.
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Philip Martin ph...@codematters.co.uk.
Ben Collins-Sussman sussman@collab.net writes:
If this is what you're seeing, then something is wrong.
All working copies should be the same size.
That's what I thought as well, but it turns out that Jani is correct.
$ svnadmin create repo
$ svn co file://`pwd`/repo wc1
$ svn mkdir wc1/foo
$ echo bar wc1/foo/bar
$ svn add wc1/foo/bar
$ svn ci wc1
$ svn up wc1
$ svn co file://`pwd`/repo wc2
$ diff -r --brief wc1 wc2
Files wc1/foo/.svn/entries and wc2/foo/.svn/entries differ
Only in wc2/foo/.svn/prop-base: bar.svn-base
Only in wc2/foo/.svn/props: bar.svn-work
The second working copy has props files that contain END, i.e. no
properties, but the first working copy doesn't have them. It's only a
temporary condition, the missing files will get created as the first
working copy receives updates, or if you sets some properties.
There is a further difference if you use ra_dav. In that case the
working copy that does the commit will not have activity-urls in the
dir-wcprops, while a checkout/update working copy will. Once again it
is only a temporary condition.
It is possible that we could improve working copy performance by
eliminating the props files that just contain END. I don't know
whether it would make a noticeable difference.
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Ben Collins-Sussman <su...@collab.net>.
Jani Monoses <ja...@iv.ro> writes:
> > >
> > > So the original WS is 290Megs the one from which I commited the kernel.
> > > The two other WCs (local and ra_svn) after update are both 534M.
> >
> > Yes, the working copies are roughly twice as big as the original tree
> > you imported into the repository. That's normal. Every file has a
> > second cached pristine copy within .svn/text-base/, so that svn can
> > perform many disconnected operations.
>
> Just to make sure we're talking about the same thing.
> The 2 WC-s are twice as big as the first WC and not the kernel tree itself.
>
> So let's say I have a clean tree A. Copy that to WC1 and commit
> from there.Now the tree A will have additional .svn metadata which
> will increase it's size. So size (A in WC1) > size (pristine A)
> although comparable. Updated WC2 will have size (A in WC2) about 2
> * size (A in WC1) ?Shouldn't they have the same kind of meta info?
>
> So I was asking why the WC's are different size .I can understand
> that a WC is bigger than a non revision controlled tree.
If this is what you're seeing, then something is wrong.
All working copies should be the same size.
How did you "commit" from WC1? Did you run 'svn add' to recursively
schedule the whole tree for addition, then 'svn commit'? Or did you
use 'svn import'? Does WC1 have any .svn/text-base/ files like the
other two WC's?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Ben Collins-Sussman su...@collab.net.
Jani Monoses jani@iv.ro writes:
So the original WS is 290Megs the one from which I commited the kernel.
The two other WCs (local and ra_svn) after update are both 534M.
Yes, the working copies are roughly twice as big as the original tree
you imported into the repository. That's normal. Every file has a
second cached pristine copy within .svn/text-base/, so that svn can
perform many disconnected operations.
Just to make sure we're talking about the same thing.
The 2 WC-s are twice as big as the first WC and not the kernel tree itself.
So let's say I have a clean tree A. Copy that to WC1 and commit
from there.Now the tree A will have additional .svn metadata which
will increase it's size. So size (A in WC1) size (pristine A)
although comparable. Updated WC2 will have size (A in WC2) about 2
* size (A in WC1) ?Shouldn't they have the same kind of meta info?
So I was asking why the WC's are different size .I can understand
that a WC is bigger than a non revision controlled tree.
If this is what you're seeing, then something is wrong.
All working copies should be the same size.
How did you commit from WC1? Did you run 'svn add' to recursively
schedule the whole tree for addition, then 'svn commit'? Or did you
use 'svn import'? Does WC1 have any .svn/text-base/ files like the
other two WC's?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Jani Monoses <ja...@iv.ro>.
> >
> > So the original WS is 290Megs the one from which I commited the kernel.
> > The two other WCs (local and ra_svn) after update are both 534M.
>
> Yes, the working copies are roughly twice as big as the original tree
> you imported into the repository. That's normal. Every file has a
> second cached pristine copy within .svn/text-base/, so that svn can
> perform many disconnected operations.
Just to make sure we're talking about the same thing.
The 2 WC-s are twice as big as the first WC and not the kernel tree itself.
So let's say I have a clean tree A.
Copy that to WC1 and commit from there.Now the tree A will have additional .svn metadata
which will increase it's size. So size (A in WC1) > size (pristine A) although comparable.
Updated WC2 will have size (A in WC2) about 2 * size (A in WC1) ?Shouldn't they have the same kind of meta info?
So I was asking why the WC's are different size .I can understand that a WC is bigger than a non revision controlled tree.
>
> We plan to automate it. IIRC, the next version of Berkeley DB will
> automate it for us.
Ok thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Jani Monoses ja...@iv.ro.
So the original WS is 290Megs the one from which I commited the kernel.
The two other WCs (local and ra_svn) after update are both 534M.
Yes, the working copies are roughly twice as big as the original tree
you imported into the repository. That's normal. Every file has a
second cached pristine copy within .svn/text-base/, so that svn can
perform many disconnected operations.
Just to make sure we're talking about the same thing.
The 2 WC-s are twice as big as the first WC and not the kernel tree itself.
So let's say I have a clean tree A.
Copy that to WC1 and commit from there.Now the tree A will have additional .svn metadata
which will increase it's size. So size (A in WC1) size (pristine A) although comparable.
Updated WC2 will have size (A in WC2) about 2 * size (A in WC1) ?Shouldn't they have the same kind of meta info?
So I was asking why the WC's are different size .I can understand that a WC is bigger than a non revision controlled tree.
We plan to automate it. IIRC, the next version of Berkeley DB will
automate it for us.
Ok thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Ben Collins-Sussman <su...@collab.net>.
Jani Monoses <ja...@iv.ro> writes:
> >
> > > Now I updated the 2 other workspaces (one ra_local other ra_svn from
> > > localhost) After a while they had the kernel tree but those
> > > workspaces are 534Megs each.
> >
> > Do you mean, you "checked out two independent working copies"?
>
> Kind of.Because those were already checked out but contained a few
> small test files. I tested those and were fine so I said lets see
> something "big". So "updated two independent working copies after
> commiting a kernel tree from the third WC"
Ah, ok.
> > > 1) Aren't 2 workspaces supposed to be equal if everything is
> > > commited from one and updated form the other?The difference is
> > > .svn/prop and ./svn/prop-base files which appear only in the updated
> > > WS not the original.
> >
> > I don't understand. In the previous paragraph, it sounds like you
> > checked out two working copies using two different RA methods. In
> > this paragraph, you say you "committed from one and updated from the
> > other." Can you clarify?
>
> So the original WS is 290Megs the one from which I commited the kernel.
> The two other WCs (local and ra_svn) after update are both 534M.
Yes, the working copies are roughly twice as big as the original tree
you imported into the repository. That's normal. Every file has a
second cached pristine copy within .svn/text-base/, so that svn can
perform many disconnected operations.
> > Thus even 'svn up' requires Berkeley DB to temporarily write new
> > data. What you're witnessing is BDB logging all of these writes.
> > Luckily, you can use 'db_archive' to throw away old logfiles. It's
> > all documented in the subversion book.
> >
> > Just run 'db_archive -a -h repos/db/', and it will tell you which log
> > files can be deleted. Make sure you use the CORRECT version of
>
> So this means someone has to constantly keep an eye on the repo and
> delete log files.Is this not automated because right now it can be
> used for debugging or what? IMHO the server should figure out
> what's unnecessary and clean up itself.
We plan to automate it. IIRC, the next version of Berkeley DB will
automate it for us.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Ben Collins-Sussman su...@collab.net.
Jani Monoses jani@iv.ro writes:
Now I updated the 2 other workspaces (one ra_local other ra_svn from
localhost) After a while they had the kernel tree but those
workspaces are 534Megs each.
Do you mean, you checked out two independent working copies?
Kind of.Because those were already checked out but contained a few
small test files. I tested those and were fine so I said lets see
something big. So updated two independent working copies after
commiting a kernel tree from the third WC
Ah, ok.
1) Aren't 2 workspaces supposed to be equal if everything is
commited from one and updated form the other?The difference is
.svn/prop and ./svn/prop-base files which appear only in the updated
WS not the original.
I don't understand. In the previous paragraph, it sounds like you
checked out two working copies using two different RA methods. In
this paragraph, you say you committed from one and updated from the
other. Can you clarify?
So the original WS is 290Megs the one from which I commited the kernel.
The two other WCs (local and ra_svn) after update are both 534M.
Yes, the working copies are roughly twice as big as the original tree
you imported into the repository. That's normal. Every file has a
second cached pristine copy within .svn/text-base/, so that svn can
perform many disconnected operations.
Thus even 'svn up' requires Berkeley DB to temporarily write new
data. What you're witnessing is BDB logging all of these writes.
Luckily, you can use 'db_archive' to throw away old logfiles. It's
all documented in the subversion book.
Just run 'db_archive -a -h repos/db/', and it will tell you which log
files can be deleted. Make sure you use the CORRECT version of
So this means someone has to constantly keep an eye on the repo and
delete log files.Is this not automated because right now it can be
used for debugging or what? IMHO the server should figure out
what's unnecessary and clean up itself.
We plan to automate it. IIRC, the next version of Berkeley DB will
automate it for us.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Jani Monoses ja...@iv.ro.
Now I updated the 2 other workspaces (one ra_local other ra_svn from
localhost) After a while they had the kernel tree but those
workspaces are 534Megs each.
Do you mean, you checked out two independent working copies?
Kind of.Because those were already checked out but contained a few small test files.
I tested those and were fine so I said lets see something big.
So updated two independent working copies after commiting a kernel tree from the third WC
1) Aren't 2 workspaces supposed to be equal if everything is
commited from one and updated form the other?The difference is
.svn/prop and ./svn/prop-base files which appear only in the updated
WS not the original.
I don't understand. In the previous paragraph, it sounds like you
checked out two working copies using two different RA methods. In
this paragraph, you say you committed from one and updated from the
other. Can you clarify?
So the original WS is 290Megs the one from which I commited the kernel.
The two other WCs (local and ra_svn) after update are both 534M.
Thus even 'svn up' requires Berkeley DB to temporarily write new
data. What you're witnessing is BDB logging all of these writes.
Luckily, you can use 'db_archive' to throw away old logfiles. It's
all documented in the subversion book.
Just run 'db_archive -a -h repos/db/', and it will tell you which log
files can be deleted. Make sure you use the CORRECT version of
So this means someone has to constantly keep an eye on the repo and delete
log files.Is this not automated because right now it can be used for debugging or what?
IMHO the server should figure out what's unnecessary and clean up itself.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Mix mi...@acm.org.
Ben Collins-Sussman wrote:
Jani Monoses jani@iv.ro writes:
2) The repository seemed to grow while the WS was updating.About
300M for each WS.Why should the repo care about an update and use up
so much space?It is in log.XXXXXXXX files which according to a mail
from Brane dated Jan 13th are required.The more clients the more the
repo grows? Does it keep some sort of repository for each client
separately?I don't think so because if one deletes a WS the repo
shouldn't care but the extra hundreds on megs would stay there.
'svn up' creates a temporary mirror of the working copy in the
repository, compares it to the HEAD tree to perform a tree delta, then
removes the temporary mirror.
Thus even 'svn up' requires Berkeley DB to temporarily write new
data. What you're witnessing is BDB logging all of these writes.
Luckily, you can use 'db_archive' to throw away old logfiles. It's
all documented in the subversion book.
So if I follow you correctly then what your saying is that if you have a
500MB working copy and 10 people in your group all do an svn update then
you've just added 5GB worth of log files to your hard drive?
I'd classify that as a scalability issue as well.
Mix.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Jani Monoses <ja...@iv.ro>.
>
> > Now I updated the 2 other workspaces (one ra_local other ra_svn from
> > localhost) After a while they had the kernel tree but those
> > workspaces are 534Megs each.
>
> Do you mean, you "checked out two independent working copies"?
Kind of.Because those were already checked out but contained a few small test files.
I tested those and were fine so I said lets see something "big".
So "updated two independent working copies after commiting a kernel tree from the third WC"
> > 1) Aren't 2 workspaces supposed to be equal if everything is
> > commited from one and updated form the other?The difference is
> > .svn/prop and ./svn/prop-base files which appear only in the updated
> > WS not the original.
>
> I don't understand. In the previous paragraph, it sounds like you
> checked out two working copies using two different RA methods. In
> this paragraph, you say you "committed from one and updated from the
> other." Can you clarify?
So the original WS is 290Megs the one from which I commited the kernel.
The two other WCs (local and ra_svn) after update are both 534M.
>
> Thus even 'svn up' requires Berkeley DB to temporarily write new
> data. What you're witnessing is BDB logging all of these writes.
> Luckily, you can use 'db_archive' to throw away old logfiles. It's
> all documented in the subversion book.
>
> Just run 'db_archive -a -h repos/db/', and it will tell you which log
> files can be deleted. Make sure you use the CORRECT version of
So this means someone has to constantly keep an eye on the repo and delete
log files.Is this not automated because right now it can be used for debugging or what?
IMHO the server should figure out what's unnecessary and clean up itself.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Mix <mi...@acm.org>.
Ben Collins-Sussman wrote:
> Jani Monoses <ja...@iv.ro> writes:
>>2) The repository seemed to grow while the WS was updating.About
>>300M for each WS.Why should the repo care about an update and use up
>>so much space?It is in log.XXXXXXXX files which according to a mail
>>from Brane dated Jan 13th are required.The more clients the more the
>>repo grows? Does it keep some sort of repository for each client
>>separately?I don't think so because if one deletes a WS the repo
>>shouldn't care but the extra hundreds on megs would stay there.
>
> 'svn up' creates a temporary mirror of the working copy in the
> repository, compares it to the HEAD tree to perform a tree delta, then
> removes the temporary mirror.
>
> Thus even 'svn up' requires Berkeley DB to temporarily write new
> data. What you're witnessing is BDB logging all of these writes.
> Luckily, you can use 'db_archive' to throw away old logfiles. It's
> all documented in the subversion book.
So if I follow you correctly then what your saying is that if you have a
500MB working copy and 10 people in your group all do an svn update then
you've just added 5GB worth of log files to your hard drive?
I'd classify that as a scalability issue as well.
Mix.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Ben Collins-Sussman <su...@collab.net>.
Jani Monoses <ja...@iv.ro> writes:
> I had a repo and 3 workspaces.Moved the kernel tree into one and
> checked it in. It lasted over half an hour and after two screenfuls
> of dots it said "Killed".
I think this is a known scalability bug that we'll tackle soon.
> Now I updated the 2 other workspaces (one ra_local other ra_svn from
> localhost) After a while they had the kernel tree but those
> workspaces are 534Megs each.
Do you mean, you "checked out two independent working copies"?
> 1) Aren't 2 workspaces supposed to be equal if everything is
> commited from one and updated form the other?The difference is
> .svn/prop and ./svn/prop-base files which appear only in the updated
> WS not the original.
I don't understand. In the previous paragraph, it sounds like you
checked out two working copies using two different RA methods. In
this paragraph, you say you "committed from one and updated from the
other." Can you clarify?
> 2) The repository seemed to grow while the WS was updating.About
> 300M for each WS.Why should the repo care about an update and use up
> so much space?It is in log.XXXXXXXX files which according to a mail
> from Brane dated Jan 13th are required.The more clients the more the
> repo grows? Does it keep some sort of repository for each client
> separately?I don't think so because if one deletes a WS the repo
> shouldn't care but the extra hundreds on megs would stay there.
'svn up' creates a temporary mirror of the working copy in the
repository, compares it to the HEAD tree to perform a tree delta, then
removes the temporary mirror.
Thus even 'svn up' requires Berkeley DB to temporarily write new
data. What you're witnessing is BDB logging all of these writes.
Luckily, you can use 'db_archive' to throw away old logfiles. It's
all documented in the subversion book.
Just run 'db_archive -a -h repos/db/', and it will tell you which log
files can be deleted. Make sure you use the CORRECT version of
db_archive, or you'll get a big error that forces you to repair the
repository. (Actually, CMike -- you never say 'db_archive -a' in
Chapter 5... it might be more useful to be explicit there.)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: various questions related to repo size
Posted by Ben Collins-Sussman su...@collab.net.
Jani Monoses jani@iv.ro writes:
I had a repo and 3 workspaces.Moved the kernel tree into one and
checked it in. It lasted over half an hour and after two screenfuls
of dots it said Killed.
I think this is a known scalability bug that we'll tackle soon.
Now I updated the 2 other workspaces (one ra_local other ra_svn from
localhost) After a while they had the kernel tree but those
workspaces are 534Megs each.
Do you mean, you checked out two independent working copies?
1) Aren't 2 workspaces supposed to be equal if everything is
commited from one and updated form the other?The difference is
.svn/prop and ./svn/prop-base files which appear only in the updated
WS not the original.
I don't understand. In the previous paragraph, it sounds like you
checked out two working copies using two different RA methods. In
this paragraph, you say you committed from one and updated from the
other. Can you clarify?
2) The repository seemed to grow while the WS was updating.About
300M for each WS.Why should the repo care about an update and use up
so much space?It is in log.XXXXXXXX files which according to a mail
from Brane dated Jan 13th are required.The more clients the more the
repo grows? Does it keep some sort of repository for each client
separately?I don't think so because if one deletes a WS the repo
shouldn't care but the extra hundreds on megs would stay there.
'svn up' creates a temporary mirror of the working copy in the
repository, compares it to the HEAD tree to perform a tree delta, then
removes the temporary mirror.
Thus even 'svn up' requires Berkeley DB to temporarily write new
data. What you're witnessing is BDB logging all of these writes.
Luckily, you can use 'db_archive' to throw away old logfiles. It's
all documented in the subversion book.
Just run 'db_archive -a -h repos/db/', and it will tell you which log
files can be deleted. Make sure you use the CORRECT version of
db_archive, or you'll get a big error that forces you to repair the
repository. (Actually, CMike -- you never say 'db_archive -a' in
Chapter 5... it might be more useful to be explicit there.)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org