You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by solo turn <so...@yahoo.com> on 2003/03/03 17:35:58 UTC

reduce number of administrative files

i know we had this discussion already, but karl seems to insist to
continue it here:

currently svn client stores minimum 10 times as many files/folders in
the administrative area as files/folders administered.

can we put everything possible in the entries file and remove all the
subdirectories completely?


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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

Re: reduce number of administrative files

Posted by Brian Behlendorf <br...@collab.net>.
On Wed, 5 Mar 2003, solo turn wrote:
> if you need demonstrations:
> 1. run it on a network drive,
>    a small project with 1000-2000 folders
>    is sufficient.
> 2. run it with 30.000 files and
>    folders.

Actually, the CollabNet developers are well aware that this stuff needs to
work well over a NFS-mounted drive, since that's the primary environment
our customers pay us for.  Modern NAS systems like a NetApp actually make
the types of operations that are usually expensive, like opening and
seeking in a directory with 1000+ files, really efficient.

But to echo everyone's point, running code is what's needed now to
convince them your point has merit.

	Brian


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

Re: reduce number of administrative files

Posted by solo turn <so...@yahoo.com>.
it was both, samba and real nt server.

people moved from ms visual source safe and tried to store their
working copy as they used to on the network drives. it was so slow,
that we just exculded it from a "valid application scenario".

now we have the wc on the loca drives, but the working copy size is
increasing and it will have soon a size which again gives us a slow
speed combined with a blocked disk. status now is that "svn up"
blocks the computer for 2 minutes, increasing with working copy size.

and svn client is the only program we use here which is able to block
our computers by just running it (except stress test programs).

but it would be anyway interesting to hear your tuning experiences.

--- Daniel Berlin <db...@dberlin.org> wrote:
> 
> On Wednesday, March 5, 2003, at 01:39  PM, solo turn wrote:
> 
> > if you need demonstrations:
> > 1. run it on a network drive,
> >    a small project with 1000-2000 folders
> >    is sufficient.
> 
> You are running this over a windows share?
> No wonder you have locking speed problems.
> Are multiple users accessing the repository at the same time?
> If so, it'll be even slower than slow (since it won't even be able
> to 
> do oplocks).
> Perforce actually has the same problem.
> They FAQ it as (they avoid mentioning windows by name here, but
> that's 
> the definition of "inefficient locking")  "Using a network
> filesystem 
> for the Perforce server must be thought through very carefully. �
> Just 
> as in the scenario above with the Perforce client, data to and from
> the 
> server application must go through the network twice. � The
> Perforce 
> server also uses file locking on vital data files. � Not all
> network 
> filesystems have efficient locking implementations and some are
> buggy.  
> "
> 
> Is this samba or a real NT server (I know offhand how to tune samba
> to 
> help alleviate these problems)?
> With an NT server, you'll need to use the performance monitor to 
> discover the bottlenecks (check current commands, etc, to see
> what's 
> bottlenecking).
> However, to do the tuning will mean a lot of registry tweaks and 
> testing to see if it helps.
> 
> --Dan
> 
> > 2. run it with 30.000 files and
> >    folders.
> >
> > i would perfer getting an opinion of the good programmers in the
> list
> > to the independent suggestions before anybody starts
> implementing.
> >
> > and not a "shut up", "implement" or a "you steal my time".
> >
> >
> > --- cmpilato@collab.net wrote:
> >> solo turn <so...@yahoo.com> writes:
> >>
> >>> why do you think a database has a few files and not 200.000?
> and
> >> even
> >>> includes blobs/clobs?
> >>
> >> ...
> >>
> >> All this text, all this chatter.  The existing working copy
> design
> >> has
> >> yet to be proven demonstrably bad; your suggested working copy
> >> design
> >> has to be ... implemented -- and therefore can't be demonstated
> to
> >> be
> >> anything.
> >>
> >> Solo, please consider making your point with a different form of
> >> text,
> >> say, in the form of a patchfile?
> >>
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: dev-help@subversion.tigris.org
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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

Re: reduce number of administrative files

Posted by Daniel Berlin <db...@dberlin.org>.
On Wednesday, March 5, 2003, at 01:39  PM, solo turn wrote:

> if you need demonstrations:
> 1. run it on a network drive,
>    a small project with 1000-2000 folders
>    is sufficient.

You are running this over a windows share?
No wonder you have locking speed problems.
Are multiple users accessing the repository at the same time?
If so, it'll be even slower than slow (since it won't even be able to 
do oplocks).
Perforce actually has the same problem.
They FAQ it as (they avoid mentioning windows by name here, but that's 
the definition of "inefficient locking")  "Using a network filesystem 
for the Perforce server must be thought through very carefully.   Just 
as in the scenario above with the Perforce client, data to and from the 
server application must go through the network twice.   The Perforce 
server also uses file locking on vital data files.   Not all network 
filesystems have efficient locking implementations and some are buggy.  
"

Is this samba or a real NT server (I know offhand how to tune samba to 
help alleviate these problems)?
With an NT server, you'll need to use the performance monitor to 
discover the bottlenecks (check current commands, etc, to see what's 
bottlenecking).
However, to do the tuning will mean a lot of registry tweaks and 
testing to see if it helps.

--Dan

> 2. run it with 30.000 files and
>    folders.
>
> i would perfer getting an opinion of the good programmers in the list
> to the independent suggestions before anybody starts implementing.
>
> and not a "shut up", "implement" or a "you steal my time".
>
>
> --- cmpilato@collab.net wrote:
>> solo turn <so...@yahoo.com> writes:
>>
>>> why do you think a database has a few files and not 200.000? and
>> even
>>> includes blobs/clobs?
>>
>> ...
>>
>> All this text, all this chatter.  The existing working copy design
>> has
>> yet to be proven demonstrably bad; your suggested working copy
>> design
>> has to be ... implemented -- and therefore can't be demonstated to
>> be
>> anything.
>>
>> Solo, please consider making your point with a different form of
>> text,
>> say, in the form of a patchfile?
>>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>


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

Re: reduce number of administrative files

Posted by solo turn <so...@yahoo.com>.
if you need demonstrations:
1. run it on a network drive,
   a small project with 1000-2000 folders
   is sufficient.
2. run it with 30.000 files and
   folders.

i would perfer getting an opinion of the good programmers in the list
to the independent suggestions before anybody starts implementing.

and not a "shut up", "implement" or a "you steal my time".


--- cmpilato@collab.net wrote:
> solo turn <so...@yahoo.com> writes:
> 
> > why do you think a database has a few files and not 200.000? and
> even
> > includes blobs/clobs? 
> 
> ...
> 
> All this text, all this chatter.  The existing working copy design
> has
> yet to be proven demonstrably bad; your suggested working copy
> design
> has to be ... implemented -- and therefore can't be demonstated to
> be
> anything.
> 
> Solo, please consider making your point with a different form of
> text,
> say, in the form of a patchfile?  
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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

RE: reduce number of administrative files

Posted by Sander Striker <st...@apache.org>.
> From: cmpilato@collab.net [mailto:cmpilato@collab.net]
> Sent: Wednesday, March 05, 2003 6:38 PM

> solo turn <so...@yahoo.com> writes:
>> why do you think a database has a few files and not 200.000? and even
>> includes blobs/clobs? 

> ...
> 
> All this text, all this chatter.  The existing working copy design has
> yet to be proven demonstrably bad; your suggested working copy design
> has to be ... implemented -- and therefore can't be demonstated to be
> anything.
> 
> Solo, please consider making your point with a different form of text,
> say, in the form of a patchfile?  

+1!  And in the mean time, please do NOT bring this up again.  Time is
scarse and with every one of these posts of fiction you steal a slice.

Your postings are so controversial.  Status reports and "drop this so
1.0 can go out the door quicker" vs "Hey, throw away libsvn_wc and reimplement
it before 1.0".

Tiresome.

Sander

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

Re: reduce number of administrative files

Posted by cm...@collab.net.
solo turn <so...@yahoo.com> writes:

> why do you think a database has a few files and not 200.000? and even
> includes blobs/clobs? 

...

All this text, all this chatter.  The existing working copy design has
yet to be proven demonstrably bad; your suggested working copy design
has to be ... implemented -- and therefore can't be demonstated to be
anything.

Solo, please consider making your point with a different form of text,
say, in the form of a patchfile?  


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

Re: reduce number of administrative files

Posted by solo turn <so...@yahoo.com>.
why do you think a database has a few files and not 200.000? and even
includes blobs/clobs? do you think db designers are all idiots? of
course not, you use a db for the server and are quite happy with it.

from far, it looks like you defend this client design just cause you
did the design.

now the details:

the figure is NOT off, it depends on the structure of your code. we
have 25.000 entries, and 280.000 in the admin-area (ls -1R | wc, ls
-1aR | wc).

this includes the tmp, which is a strange construct by itself, cause
it clashes with standard disk management strategies of putting
temporary things in /var/tmp, or some "$tmp".

and you create locking files on every folder, nearly every time, and
have to remove it again.

and if you have a "copy", you have this "cheap" thing twice on the
client ... but you only need it twice for the working copy files (not
for the administrative area).


now to your arguments:

1. cmpilato: don't put text-base in entries file.
ok. nobody suggested that.
if svn client would use bdb, and you can do a diff without
"materializing" the file in the file-system, than yes, store it in
the db ...

2. branko: properties can be theoretically huge.
ok. but only theoretically. i asked for examples,
and nobody had one.
so there is no point in providing this
theoretical thing for 1.0. and properties
are responsible for the majority of files in 
the admin-area.

3. robert: disk space is cheap.
thats correct, but creating, accessing and deleting these files is
not. if we do "svn up" the disk is blocked for 2 minutes. svn client
is one of the best programs for disk stress test i can imagine.

i suggested (all of the points are absolutely independent):
- do locking in a more intelligent way
  (--> use bdb, use top-level "locking file", ...)
  this is 30% of an empty update runtime.
- remove the subdirectories (not the contents of them!)
  --> no loss at all, just different naming.
- remove "auth" completely
- pull the "props" into the entries file immediately
  with a mechanism to store huge properties efficient
  in post 1.0.

everybody who posts that the number of files has no influence did not
ever try to use the client with a reasonable amount of administered
folders on a (windows) network share. you don't need 25.000
files/folders to experience this.



--- Michael Price <mp...@atl.lmco.com> wrote:
> Robert Pluim writes:
>  > solo turn writes:
>  >  > currently svn client stores minimum 10 times as many
> files/folders in
>  >  > the administrative area as files/folders administered.
>  > 
>  > So what?  Disk space is cheap (and I don't believe you about
> that 10x
>  > figure).
> 
> Yes, his figure is a bit off. You get 3 new files for every
> versioned
> file and 4 files plus 6 directories for every versioned directory.
> 
> Michael
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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

Re: reduce number of administrative files

Posted by Michael Price <mp...@atl.lmco.com>.
Robert Pluim writes:
 > solo turn writes:
 >  > currently svn client stores minimum 10 times as many files/folders in
 >  > the administrative area as files/folders administered.
 > 
 > So what?  Disk space is cheap (and I don't believe you about that 10x
 > figure).

Yes, his figure is a bit off. You get 3 new files for every versioned
file and 4 files plus 6 directories for every versioned directory.

Michael


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

Re: reduce number of administrative files

Posted by Robert Pluim <rp...@bigfoot.com>.
solo turn writes:
 > i know we had this discussion already, but karl seems to insist to
 > continue it here:
 > 
 > currently svn client stores minimum 10 times as many files/folders in
 > the administrative area as files/folders administered.

So what?  Disk space is cheap (and I don't believe you about that 10x
figure).

 > can we put everything possible in the entries file and remove all the
 > subdirectories completely?

No.  Handling the entries file takes up enough time as it is, making
it umpteen times bigger would terrible.

Robert

PS I'm willing to be proved wrong.  Go away and implement it and
impress me with the speed of your new client.
-- 


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

Re: reduce number of administrative files

Posted by cm...@collab.net.
solo turn <so...@yahoo.com> writes:

> i know we had this discussion already, but karl seems to insist to
> continue it here:
> 
> currently svn client stores minimum 10 times as many files/folders in
> the administrative area as files/folders administered.
> 
> can we put everything possible in the entries file and remove all the
> subdirectories completely?

Dude.  No way.  We shouldn't have to *extract* from the middle of the
entries file the text-base just so we can do comparisons.

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

Re: reduce number of administrative files

Posted by Branko Čibej <br...@xbc.nu>.
solo turn wrote:

>i know we had this discussion already, but karl seems to insist to
>continue it here:
>
>currently svn client stores minimum 10 times as many files/folders in
>the administrative area as files/folders administered.
>
>can we put everything possible in the entries file and remove all the
>subdirectories completely?
>  
>

We had this discussion before, and you asked this question before, and
was answered before... here's how it goes: if we did that, the entries
file could potentially become *huge*. Remember, there's no real size
limit on property values. That in turn means that reading and writing
the entries file would suddenly become very slow, and it would also make
memory usage skyrocket (because of entries caching).

To date, I haven't seen a single measurement indicating that what you
propose would actually make the client faster.

(Performance tuning is really just like carpentry -- measure twice, cut
once, or you'll regret it! :-)

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


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