You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Niklas Deutschmann <ni...@methodpark.de> on 2010/09/27 12:55:31 UTC
Very poor performance when checking out large number of binary files
The performance of Subversion when checking out large number of files in
a single directory becomes extremely poor when the svn:mime-type
property is set to some binary MIME type.
Steps to reproduce:
1. Create a project that contains a few thousand small files in a single
directory that have no svn:mime-type property set.
2. Check out project
3. Set svn:mime-type property to some MIME type that indicates a binary
file (application/xyz) and commit
4. Check out project
The second checkout takes *dramatically* longer. Some numbers (project
with 3500 files, each ~1KB)
- no MIME type: ~2 minutes
- "binary" MIME type: >10 minutes (79% after 10 minutes, getting slower
and slower for each file)
We are using Subversion 1.6.6. The problem occurs
- with the command line client
- with the Subclipse Eclipse plugin (Eclipse 3.6) when the JavaHL client
library is used.
- with both the svn:// and the http:// protocol
The problem does *not* occur with Subclipse and the svnkit library
Niklas
Re: Very poor performance when checking out large number of binary
files
Posted by Niklas Deutschmann <ni...@methodpark.de>.
> I'm currently trying to reproduce this as I'm interested in this type of
> problem but I'm having difficulty with svn 1.6 and am time constrained so
> will give it another shot later. Not really helpful and more discussion than
> anything but it sounds a lot like a common performance gotcha that appears
> when abnormal conditions are met such as this.
A fix for this problem would be really appreciated.
I was using Windows XP in the experiment in the last post.
Yesterday, I tried to reproduce it on another computer with the Linux
version (1.6.6, under Ubuntu 10.04). The performance drop was measurable
(3 minutes vs. 1 minutes for checkout of 10.000 files), but not as
dramatic as in the Windows version.
Maybe it's related to this issue?
http://subversion.tigris.org/issues/show_bug.cgi?id=3719
Niklas
Re: Very poor performance when checking out large number of binary files
Posted by Campbell Allan <ca...@sword-ciboodle.com>.
On Monday 27 Sep 2010, Niklas Deutschmann wrote:
> The performance of Subversion when checking out large number of files in
> a single directory becomes extremely poor when the svn:mime-type
> property is set to some binary MIME type.
>
> Steps to reproduce:
>
> 1. Create a project that contains a few thousand small files in a single
> directory that have no svn:mime-type property set.
>
> 2. Check out project
>
> 3. Set svn:mime-type property to some MIME type that indicates a binary
> file (application/xyz) and commit
>
> 4. Check out project
>
> The second checkout takes *dramatically* longer. Some numbers (project
> with 3500 files, each ~1KB)
>
> - no MIME type: ~2 minutes
> - "binary" MIME type: >10 minutes (79% after 10 minutes, getting slower
> and slower for each file)
>
> We are using Subversion 1.6.6. The problem occurs
> - with the command line client
> - with the Subclipse Eclipse plugin (Eclipse 3.6) when the JavaHL client
> library is used.
> - with both the svn:// and the http:// protocol
>
> The problem does *not* occur with Subclipse and the svnkit library
>
> Niklas
I'm currently trying to reproduce this as I'm interested in this type of
problem but I'm having difficulty with svn 1.6 and am time constrained so
will give it another shot later. Not really helpful and more discussion than
anything but it sounds a lot like a common performance gotcha that appears
when abnormal conditions are met such as this. Somewhere there is a list that
is being linearly searched and added to as each entry of the directory is
checked out. The problem is, it might turn out the solution to that slows
down the typical case too much.
--
__________________________________________________________________________________
Sword Ciboodle is the trading name of ciboodle Limited (a company
registered in Scotland with registered number SC143434 and whose
registered office is at India of Inchinnan, Renfrewshire, UK,
PA4 9LH) which is part of the Sword Group of companies.
This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you,
please inform us and then delete it. If you are not the intended
recipient(s), the use, disclosure, copying or distribution of any
information contained within this email is prohibited. Messages to
and from us may be monitored. If the content is not about the
business of the Sword Group then the message is neither from nor
sanctioned by us.
Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__________________________________________________________________________________