You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dylan Leigh <dl...@cs.rmit.edu.au> on 2005/06/20 04:18:20 UTC

Optional | Compressed text-base storage

I have applied for the Google Summer of Code subversion project,
working on Optional/Compressed text-base (working copy) storage (see
the Project Tasks page, or issues 525 and 908).


This post is to discuss exactly how they would like this implemented
and managed. In particular, should the storage of working copies be
defined by a property, stored in the repository for all users? Or
should it be the exclusive domain of the user (and only set in the
their .subversion config or .svn directory)?

At the moment I'm thinking the best solution would be to use a
property which can be overridden by a user configured value in
.svn/entries (or similar). This has the advantage that when you add
something huge to the repository the storage type only needs to be
set once; but individual users can override this.

Another approach would be to allow the user to gzip/bzip2 the
text-base directory, or delete individual files. The client could
then automatically uncompress the files or refetch them (with svn
cat) before performing any operations that required those files.


In terms of the actual compression or refetching; my plan is to
handle compression first, since this would be client-side only and
would involve the least changes. Optional storage would mean the
client either sending the entire file or redownloading the base file
and transmitting diffs as normal.

Alternatively, an rsync-like algorithm could be used to reduce
network overhead when there is no client base copy. (Of course, I'm
not expecting to get to this stage overnight). The other options
should still be available, as some people don't trust rsync with
critical data.


Thanks in advance for any feedback,

-- 
Dylan Leigh - http://yallara.cs.rmit.edu.au/~dleigh/


Re: Optional | Compressed text-base storage

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Thu, 23 Jun 2005, Dylan Leigh wrote:

> On Mon, Jun 20, 2005 at 09:50:38AM -0500, kfogel@collab.net wrote:
> > Olivier Sannier <ob...@free.fr> writes:
> > > >This post is to discuss exactly how they would like this implemented
> > > >and managed. In particular, should the storage of working copies be
> > > >defined by a property, stored in the repository for all users? Or
> > > >should it be the exclusive domain of the user (and only set in the
> > > >their .subversion config or .svn directory)?
> > >
...
> > Why should the repository have anything to say about it at all?
> >
>
> Working copy size has been a big problem (pun intended) at RMIT
> Computer Science; some students (myself included) use subversion to
> store individual or group work, with the repository in someone's home
> directory. Since students are only allocated a small amount of
> filespace, working copies account for a fair amount of quota.
>
> In this sort of case it makes sense for the person setting up the
> repository to configure it for minimum filespace footprint. Also,
...

Why couldn't the global configuration area in /etc/subversion be used in
this case? Or, when a new home directory is created, couldn't the .svn
directory be populated with sane defaults?

thanks,
//Peter

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

Re: Optional | Compressed text-base storage

Posted by Dylan Leigh <dl...@cs.rmit.edu.au>.
On Mon, Jun 20, 2005 at 09:50:38AM -0500, kfogel@collab.net wrote:
> Olivier Sannier <ob...@free.fr> writes:
> > >This post is to discuss exactly how they would like this implemented
> > >and managed. In particular, should the storage of working copies be
> > >defined by a property, stored in the repository for all users? Or
> > >should it be the exclusive domain of the user (and only set in the
> > >their .subversion config or .svn directory)?
> >
> > I would prefer for it to be an option from the repository itself, that
> > could be deactivated by users. But basically, if the "admin" thinks
> > it's best for everyone to have it compressed, then he should have a
> > way to force it on new users.
> > And the way I though of it was that it would be transparent for users,
> > provided they use svn clients, not direct opening of files in
> > text-base.
> > All in all, we agree here ;-)
> 
> Why should the repository have anything to say about it at all?
> 
> Size and presence of text-base is a *purely* client-side concern.  If
> you have a big disk with fast I/O, you might want them all.  If you
> have a small disk, or don't use the working copy much, you might not
> want them at all.  Or you might only want text bases for non-binary
> files.
> 
> All of these are concerns local to the working copy user; the
> repository administrators cannot predict these needs.  So I don't see
> any point in repository configurability for this feature.
> 


Working copy size has been a big problem (pun intended) at RMIT
Computer Science; some students (myself included) use subversion to
store individual or group work, with the repository in someone's home
directory. Since students are only allocated a small amount of
filespace, working copies account for a fair amount of quota.

In this sort of case it makes sense for the person setting up the
repository to configure it for minimum filespace footprint. Also,
since most of the access is local, network traffic isn't much of a
problem. If someone wants to checkout stuff remotely (e.g. to work on
it at home) they could override the server setting and store
everything in text-base.


-- 
Dylan Leigh - http://yallara.cs.rmit.edu.au/~dleigh/


Re: Optional | Compressed text-base storage

Posted by Scott Palmer <sc...@2connected.org>.
On Jun 20, 2005, at 10:50 AM, kfogel@collab.net wrote:
>
> Why should the repository have anything to say about it at all?
>
> Size and presence of text-base is a *purely* client-side concern.  If
> you have a big disk with fast I/O, you might want them all.  If you
> have a small disk, or don't use the working copy much, you might not
> want them at all.  Or you might only want text bases for non-binary
> files.
>
> All of these are concerns local to the working copy user; the
> repository administrators cannot predict these needs.  So I don't see
> any point in repository configurability for this feature.

+1

This is strictly a client-side concern.  I think the issue of having  
a master set of config options on the server that can be overridden  
on the client side is a completely separate issue that should be  
solved in the same way for all options.  Once that mechanism is in  
place it can be used to specify compression as well as all other  
options like auto-props, etc.  So keep such things out of this feature.

Scott


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

Re: Optional | Compressed text-base storage

Posted by Olivier Sannier <ob...@free.fr>.
Dylan Leigh wrote:

>Looking over the posts here, the solution which would probably please
>everyone is to have a "wcstorage" property, which can then be
>overridden by a config file entry (so users who don't want the feature
>can turn it off for all their copies), which in turn is overridden by
>an element in the .svn directory itself.
>  
>
Yes, but there should be a possibility to set a default value so that 
newly created directories inherit from it.

>On the other hand, I'd much rather get compression working and stable
>on the client end first without touching any server code or . Also, I agree
>with Scott Palmer's post that a master 
>  
>
A master what? Anyway, yes, having it on the client side first would be 
a very good thing, the server setting could wait. It's just a matter of 
convenience for admins.

>Zlib is my suggestion to do the actual compression; its portable,
>unencumbered and has reasonable performance. It's also required by
>neon so many svn installations have it.
>  
>
Sounds good to me as well.

>The config setting would have a set of simple rules to apply to each
>file when added, imported, checked out etc; something like:
>  
>
<snipped>

This looks to me like a very finely grained set of options. I mean sure 
it would be good to go down that much detail, but is it really necessary 
for a first implementation?
Couldn't it be possible to start with an on/off situation and move on to 
more complicated stuff when this has been proven to work?

My 2 cents
Olivier

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

Re: Optional | Compressed text-base storage

Posted by Dylan Leigh <dl...@cs.rmit.edu.au>.
On Mon, Jun 20, 2005 at 01:15:50PM -0400, Frank Gruman wrote:
> I agree with Olivier here.  I hold files of several differnt types 
> serving many different needs in my repositories.  Some of them are small 
> code chunks while others are large documents (we use Subversion to 
> control documentation as well).  I wouldn't mind having the ability to 
> control the compression (or lack thereof) on files from the repository 
> side.  And the user never has to know.
> 
> That said, just like other file/folder properties, I think this 
> functionality should be allowable at both the server and the client 
> side.  If the repository is set for compression, but the user does not 
> want their local files compressed (local system performance degradation 
> if the files are compressed), then they should be allowed to set this in 
> the local config file.  But it should also be configurable by file type.
> 

Looking over the posts here, the solution which would probably please
everyone is to have a "wcstorage" property, which can then be
overridden by a config file entry (so users who don't want the feature
can turn it off for all their copies), which in turn is overridden by
an element in the .svn directory itself.

On the other hand, I'd much rather get compression working and stable
on the client end first without touching any server code or . Also, I agree
with Scott Palmer's post that a master 


> And yet another thing to consider here - what program is the compression 
> done with?  So this whole project could become a full subsection of the 
> config file.  Something like:
> 
> [compression]
>   what_state_am_I_in = <on|off>
>   method = <what types can we use on *NIX, Win9x, Win2k,Win2003, Mic, etc>
>   which_files = <*, .txt, .dpr, .exe, .c, etc>
>

Zlib is my suggestion to do the actual compression; its portable,
unencumbered and has reasonable performance. It's also required by
neon so many svn installations have it.

The config setting would have a set of simple rules to apply to each
file when added, imported, checked out etc; something like:

[text-base-storage]
   # local files don't get stored in the working copy
   send-full = url: file*

   # files from server foo don't get stored and are redownloaded on an
   # operation that requires diffing (and deleted afterwards)
   refetch = url: svn+ssh://foo.net/*

   # all text files or large files compressed
   compressed = mime: text/* | size-greater: 1M

   # all stored uncompressed - default
   uncompressed = all

This would set an element in the .svn/entries for each file called
"text-base-storage" (or similar) as "compressed", "uncompressed",
"refetch", "send-full", "rsync", etc. The client would then use this
information to manage the working copy files.


-- 
Dylan Leigh - http://yallara.cs.rmit.edu.au/~dleigh/


Re: Optional | Compressed text-base storage

Posted by Frank Gruman <fg...@verizon.net>.
I agree with Olivier here.  I hold files of several differnt types 
serving many different needs in my repositories.  Some of them are small 
code chunks while others are large documents (we use Subversion to 
control documentation as well).  I wouldn't mind having the ability to 
control the compression (or lack thereof) on files from the repository 
side.  And the user never has to know.

That said, just like other file/folder properties, I think this 
functionality should be allowable at both the server and the client 
side.  If the repository is set for compression, but the user does not 
want their local files compressed (local system performance degradation 
if the files are compressed), then they should be allowed to set this in 
the local config file.  But it should also be configurable by file type.

And yet another thing to consider here - what program is the compression 
done with?  So this whole project could become a full subsection of the 
config file.  Something like:

[compression]
   what_state_am_I_in = <on|off>
   method = <what types can we use on *NIX, Win9x, Win2k,Win2003, Mic, etc>
   which_files = <*, .txt, .dpr, .exe, .c, etc>

Just thoughts...

Regards,
Frank
  

Olivier Sannier wrote:

> kfogel@collab.net wrote:
>
>> Olivier Sannier <ob...@free.fr> writes:
>>  
>>
>>>> This post is to discuss exactly how they would like this implemented
>>>> and managed. In particular, should the storage of working copies be
>>>> defined by a property, stored in the repository for all users? Or
>>>> should it be the exclusive domain of the user (and only set in the
>>>> their .subversion config or .svn directory)?
>>>>     
>>>
>>> I would prefer for it to be an option from the repository itself, that
>>> could be deactivated by users. But basically, if the "admin" thinks
>>> it's best for everyone to have it compressed, then he should have a
>>> way to force it on new users.
>>> And the way I though of it was that it would be transparent for users,
>>> provided they use svn clients, not direct opening of files in
>>> text-base.
>>> All in all, we agree here ;-)
>>>   
>>
>>
>> Why should the repository have anything to say about it at all?
>>
>> Size and presence of text-base is a *purely* client-side concern.  If
>> you have a big disk with fast I/O, you might want them all.  If you
>> have a small disk, or don't use the working copy much, you might not
>> want them at all.  Or you might only want text bases for non-binary
>> files.
>>
>> All of these are concerns local to the working copy user; the
>> repository administrators cannot predict these needs.  So I don't see
>> any point in repository configurability for this feature.
>>
> Yes, but think of SourceForge for instance. I'm an admin of some 
> projects over there, one of which has about 25000 files. Developers 
> might want to have the uncompressed text base, that's fine. But 90% of 
> our CVS access are done by anonymous users who do not care much for 
> the diffs and the development, they just want the latest code.
> And clearly, the issue of disk usage is one that comes up every now 
> and then. Hence I would set the compression to be on by default for 
> all, as most users would not even know about the existence of 
> compression.
>
> My 2 cents
> Olivier
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

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

Re: Optional | Compressed text-base storage

Posted by Olivier Sannier <ob...@free.fr>.
kfogel@collab.net wrote:

>Olivier Sannier <ob...@free.fr> writes:
>  
>
>>>This post is to discuss exactly how they would like this implemented
>>>and managed. In particular, should the storage of working copies be
>>>defined by a property, stored in the repository for all users? Or
>>>should it be the exclusive domain of the user (and only set in the
>>>their .subversion config or .svn directory)?
>>>      
>>>
>>I would prefer for it to be an option from the repository itself, that
>>could be deactivated by users. But basically, if the "admin" thinks
>>it's best for everyone to have it compressed, then he should have a
>>way to force it on new users.
>>And the way I though of it was that it would be transparent for users,
>>provided they use svn clients, not direct opening of files in
>>text-base.
>>All in all, we agree here ;-)
>>    
>>
>
>Why should the repository have anything to say about it at all?
>
>Size and presence of text-base is a *purely* client-side concern.  If
>you have a big disk with fast I/O, you might want them all.  If you
>have a small disk, or don't use the working copy much, you might not
>want them at all.  Or you might only want text bases for non-binary
>files.
>
>All of these are concerns local to the working copy user; the
>repository administrators cannot predict these needs.  So I don't see
>any point in repository configurability for this feature.
>
Yes, but think of SourceForge for instance. I'm an admin of some 
projects over there, one of which has about 25000 files. Developers 
might want to have the uncompressed text base, that's fine. But 90% of 
our CVS access are done by anonymous users who do not care much for the 
diffs and the development, they just want the latest code.
And clearly, the issue of disk usage is one that comes up every now and 
then. Hence I would set the compression to be on by default for all, as 
most users would not even know about the existence of compression.

My 2 cents
Olivier

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

Re: Optional | Compressed text-base storage

Posted by kf...@collab.net.
Olivier Sannier <ob...@free.fr> writes:
> >This post is to discuss exactly how they would like this implemented
> >and managed. In particular, should the storage of working copies be
> >defined by a property, stored in the repository for all users? Or
> >should it be the exclusive domain of the user (and only set in the
> >their .subversion config or .svn directory)?
>
> I would prefer for it to be an option from the repository itself, that
> could be deactivated by users. But basically, if the "admin" thinks
> it's best for everyone to have it compressed, then he should have a
> way to force it on new users.
> And the way I though of it was that it would be transparent for users,
> provided they use svn clients, not direct opening of files in
> text-base.
> All in all, we agree here ;-)

Why should the repository have anything to say about it at all?

Size and presence of text-base is a *purely* client-side concern.  If
you have a big disk with fast I/O, you might want them all.  If you
have a small disk, or don't use the working copy much, you might not
want them at all.  Or you might only want text bases for non-binary
files.

All of these are concerns local to the working copy user; the
repository administrators cannot predict these needs.  So I don't see
any point in repository configurability for this feature.


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

Re: Optional | Compressed text-base storage

Posted by Olivier Sannier <ob...@free.fr>.
Dylan Leigh wrote:

>I have applied for the Google Summer of Code subversion project,
>working on Optional/Compressed text-base (working copy) storage (see
>the Project Tasks page, or issues 525 and 908).
>  
>
Great, thanks for the effort.

>This post is to discuss exactly how they would like this implemented
>and managed. In particular, should the storage of working copies be
>defined by a property, stored in the repository for all users? Or
>should it be the exclusive domain of the user (and only set in the
>their .subversion config or .svn directory)?
>  
>
I would prefer for it to be an option from the repository itself, that 
could be deactivated by users. But basically, if the "admin" thinks it's 
best for everyone to have it compressed, then he should have a way to 
force it on new users.
And the way I though of it was that it would be transparent for users, 
provided they use svn clients, not direct opening of files in text-base.
All in all, we agree here ;-)

>Another approach would be to allow the user to gzip/bzip2 the
>text-base directory, or delete individual files. The client could
>then automatically uncompress the files or refetch them (with svn
>cat) before performing any operations that required those files.
>  
>
That would be, I think, quite misleading. If it's transparent for users, 
then I think it would be accepted much more easily.

>In terms of the actual compression or refetching; my plan is to
>handle compression first, since this would be client-side only and
>would involve the least changes. Optional storage would mean the
>client either sending the entire file or redownloading the base file
>and transmitting diffs as normal.
>  
>
Agreed here too. The server should not care about the client's storage. 
Send the things as usual, compress if need be on the local copy.

>Alternatively, an rsync-like algorithm could be used to reduce
>network overhead when there is no client base copy. (Of course, I'm
>not expecting to get to this stage overnight). The other options
>should still be available, as some people don't trust rsync with
>critical data.
>  
>
Well, CVS transmits everything everytime, and I must admit I'm growing 
used to the immediate response for doing a diff. hence, a transparent 
compression (not even a hard one, 30% compression is easy to get and 
fast) is IMHO the best option. Wether this is easy to implement, I do 
not know, I haven't had a look at the svn client code.

Hope this helps.
Cheers
Olivier

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

Re: Optional | Compressed text-base storage

Posted by Charles Bailey <ba...@gmail.com>.
On 6/20/05, Dylan Leigh <dl...@cs.rmit.edu.au> wrote:
> 
> At the moment I'm thinking the best solution would be to use a
> property which can be overridden by a user configured value in
> .svn/entries (or similar). This has the advantage that when you add
> something huge to the repository the storage type only needs to be
> set once; but individual users can override this.

Out of curiosity, do you see this as being per-working-copy, per-directory,
or per-file?  Would the user be able to change it at any time or only at
add/import/checkout?

-- 
Regards,
Charles Bailey
Lists: bailey _dot_ charles _at_ gmail _dot_ com
Other: bailey _at_ newman _dot_ upenn _dot_ edu

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