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

Re: [PATCH in progress] Ref-counting for pristine texts

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Tue, 11 Jan 2011 15:14:29 +0000

On Tue, 2011-01-11, C. Michael Pilato wrote:
> On 01/11/2011 09:19 AM, Julian Foad wrote:
> > I think it would be an embarrassing regression. Only a few people would
> > ever actually bother to read the release notes and do regular "svn
> > cleanup"s before their disks fill up.
>
> I dunno about "regression". My 1.6 working copies routinely have many, many
> extra tmpfiles lying around -- the contents of versioned files in various
> forms -- which only go away when I run 'svn cleanup'. There was a
> regression at some point in time, to be sure, but it was long ago.

How many / how big?

I have one 1.6 WC in regular use, and five 1.7 WCs, all checkouts of
trunk that have been in use for a few weeks since the last "svn
cleanup". I checked the size of 1.6 tmp files with "find . -path
"*/.svn/tmp/*" -type f -exec cat {} \; | wc -c" and of 1.7 pristines
with "du -s .svn/pristine/", subtracting 45 MB from the latter as the
approximate size of a current trunk pristine text store.

1.6 WC: 6 MB

1.7 WC: 133 - 45 = 88 MB
1.7 WC: 209 - 45 = 164 MB
1.7 WC: 165 - 45 = 120 MB
1.7 WC: 121 - 45 = 76 MB
1.7 WC: 99 - 45 = 54 MB

A quick glance at my 1.6 tmp files indicates the main difference is that
(most of) the 1.6 tmp files are only created for files that have local
mods, whereas the 1.7 pristines accumulate on every incoming change
across the whole WC.

- Julian
Received on 2011-01-11 16:15:12 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.