You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by John Beranek <jo...@redux.org.uk> on 2011/03/06 00:23:28 UTC

Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Hi,

I'm not sure if much performance comparison has been performed, but I'm
unhappy to report a significant _reduction_ in speed in a checkout.

Subversion 1.7 (r1078338) client, checking out from localhost HTTP
server (Subversion 1.7 r1078338):
Checkout a tree with 3740 files, 121 directories, totalling 29MiB

real    0m25.552s
user    0m5.777s
sys     0m8.099s

Subversion 1.6.15 (r1038135) client, checking out from the same server:
Same checkout:

real    0m8.350s
user    0m2.382s
sys     0m2.485s


John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 05/03/2011 23:27, John Beranek wrote:
> On 05/03/2011 23:23, John Beranek wrote:
>> Hi,
>>
>> I'm not sure if much performance comparison has been performed, but I'm
>> unhappy to report a significant _reduction_ in speed in a checkout.

A few other data points...

Import tests for this dataset:

1.6.15 ra_local import to a format 4 repository DB:
real    0m15.679s
user    0m3.309s
sys     0m5.676s

1.7(r1078338) ra_local to a format 5 repository DB:
real    0m13.377s
user    0m3.375s
sys     0m6.017s

1.6.15 ra_neon to a _LAN_ 1.6.15 server:
real    0m16.501s
user    0m1.088s
sys     0m1.439s

1.7(r1078338) ra_serf to a localhost 1.7(r1078338) server:
real    0m25.188s
user    0m1.016s
sys     0m1.965s

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 05/03/2011 23:23, John Beranek wrote:
> Hi,
> 
> I'm not sure if much performance comparison has been performed, but I'm
> unhappy to report a significant _reduction_ in speed in a checkout.

OK, here's an ra_local comparison:

Subversion 1.7 (r1078338) client, checking out from file:// (local disc)
Checkout a tree with 3740 files, 121 directories, totalling 29MiB

real    0m19.343s
user    0m4.851s
sys     0m8.069s

So, it's mostly WC slowdowns?

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Julian Foad <ju...@wandisco.com>.
On Tue, 2011-03-08, John Beranek wrote:
> On 08/03/11 12:31, Julian Foad wrote:
> > On Mon, 2011-03-07, John Beranek wrote:
> >> On 05/03/2011 23:23, John Beranek wrote:
> >>> Hi,
> >>>
> >>> I'm not sure if much performance comparison has been performed, but I'm
> >>> unhappy to report a significant _reduction_ in speed in a checkout.
> >>
> >> Hmm...I'm surprised (and disappointed). No one is interested in
> >> Subversion 1.7 being lower performance than 1.6?
> > 
> > I'm interested.  Thank you for your report.  I read it yesterday and
> > couldn't think of anything terribly helpful to reply.  Some of us are
> > working on the speed issues.  (Personally I'm looking at correctness
> > issues at the moment.)  It's good to see hard numbers.  That's a speed
> > regression that we certainly need to address.
> 
> OK
> 
> > But we don't yet have any standard set of benchmarks at all.  Therefore
> > it would be very useful to have a script that runs a speed test like
> > yours, or a set of such tests.  Would you be able and willing to write a
> > self-contained script that creates a load of test data from nothing and
> > then exercises the checkout (and perhaps other operations)?  It needs to
> > work with svn 1.6 and svn 1.7 of course, and it needs to run on Windows
> > and Linux, so I'd suggest writing it in Python like most of our test
> > suite.
> 
> Python makes my head hurt, is Perl acceptable?

I think Perl would be acceptable.

- Julian



Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 08/03/11 12:31, Julian Foad wrote:
> On Mon, 2011-03-07, John Beranek wrote:
>> On 05/03/2011 23:23, John Beranek wrote:
>>> Hi,
>>>
>>> I'm not sure if much performance comparison has been performed, but I'm
>>> unhappy to report a significant _reduction_ in speed in a checkout.
>>
>> Hmm...I'm surprised (and disappointed). No one is interested in
>> Subversion 1.7 being lower performance than 1.6?
> 
> I'm interested.  Thank you for your report.  I read it yesterday and
> couldn't think of anything terribly helpful to reply.  Some of us are
> working on the speed issues.  (Personally I'm looking at correctness
> issues at the moment.)  It's good to see hard numbers.  That's a speed
> regression that we certainly need to address.

OK

> But we don't yet have any standard set of benchmarks at all.  Therefore
> it would be very useful to have a script that runs a speed test like
> yours, or a set of such tests.  Would you be able and willing to write a
> self-contained script that creates a load of test data from nothing and
> then exercises the checkout (and perhaps other operations)?  It needs to
> work with svn 1.6 and svn 1.7 of course, and it needs to run on Windows
> and Linux, so I'd suggest writing it in Python like most of our test
> suite.

Python makes my head hurt, is Perl acceptable?

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Julian Foad <ju...@wandisco.com>.
On Mon, 2011-03-07, John Beranek wrote:
> On 05/03/2011 23:23, John Beranek wrote:
> > Hi,
> > 
> > I'm not sure if much performance comparison has been performed, but I'm
> > unhappy to report a significant _reduction_ in speed in a checkout.
> 
> Hmm...I'm surprised (and disappointed). No one is interested in
> Subversion 1.7 being lower performance than 1.6?

I'm interested.  Thank you for your report.  I read it yesterday and
couldn't think of anything terribly helpful to reply.  Some of us are
working on the speed issues.  (Personally I'm looking at correctness
issues at the moment.)  It's good to see hard numbers.  That's a speed
regression that we certainly need to address.

It's helpful for development if we can see measurements that are
isolated to one area at a time.  If you're interested in the HTTP
changes, do speed comparisons on operations that don't involve the WC,
such as 'import', 'export', 'log'.  On the other hand, to check on WC
performance, measure 'checkout', 'update' (when there's nothing
changed), update (when there's lots changed), 'commit', 'add', 'move',
'delete', and so on, using local ('file://') repository access.

One thing we don't have, but we need, is a set of performance criteria
that we can apply to decide when 1.7 is fast enough to release.  We just
have a general agreement that it needs to be "at least as fast as 1.6".
Because of the wide-ranging changes, the change in performance will vary
quite widely depending on the platform, the file system, the operation.
I assume we would accept a little bit of slow-down in some
configurations if necessary.

But we don't yet have any standard set of benchmarks at all.  Therefore
it would be very useful to have a script that runs a speed test like
yours, or a set of such tests.  Would you be able and willing to write a
self-contained script that creates a load of test data from nothing and
then exercises the checkout (and perhaps other operations)?  It needs to
work with svn 1.6 and svn 1.7 of course, and it needs to run on Windows
and Linux, so I'd suggest writing it in Python like most of our test
suite.

I think we'll want to run this script on the build-bots so that we can
see frequent reports, tied to source code changes, on a variety of
platforms.  (It would be lovely to see the numbers plotted automatically
on a graph on the web site, but it's more important just to have the raw
test capability.  Flashy presentation can come later if at all.)

Would you be interested in helping to set up any of this?  It would be
jolly helpful if so.

- Julian



Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Stefan Sperling <st...@elego.de>.
On Tue, Mar 08, 2011 at 09:21:58AM +0000, John Beranek wrote:
> I guess from now on I'll just keep my investigations to myself.

Please don't keep them to yourself. Any information you have might help.

Just keep in mind that we're already looking at this in detail.
E.g. detailed profiler output to locate bottlenecks in the code and
pointers to problems in the current design that prevent us from getting
faster are much more useful than timing the overall execution time of
an 'svn' invocation. However, execution time is still a useful measure
of overall progress. There are plans for setting up automated reports
for this kind of stuff.
See http://svn.haxx.se/dev/archive-2011-02/0788.shtml -- any input you can
provide on the questions raised in that post is appreciated.

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Justin Erenkrantz <ju...@gmail.com>.
On Wed, Mar 9, 2011 at 9:12 AM, Philip Martin
<ph...@wandisco.com> wrote:
> Joe Orton <jo...@redhat.com> writes:
>
>> On Wed, Mar 09, 2011 at 08:50:37AM -0800, Justin Erenkrantz wrote:
>>> On Wed, Mar 9, 2011 at 8:28 AM, Philip Martin
>>> <ph...@wandisco.com> wrote:
>>> >     0.000054 epoll_wait(3, {{EPOLLOUT, {u32=30583944, u64=30583944}}}, 16, 3600000000) = 1 <0.000011>
>>>
>>> As best as I can tell, that strace isn't matching your earlier
>>> description.  The last epoll_wait is taking 0.000011 seconds?  --
>>
>> Smells like Nagle to me - looks like serf is turning Nagle *on* not
>> off... ("nodelay off" == "delay on") - try this?
>>
>> Index: outgoing.c
>> ===================================================================
>> --- outgoing.c        (revision 1440)
>> +++ outgoing.c        (working copy)
>> @@ -201,7 +201,7 @@
>>
>>          /* Disable Nagle's algorithm */
>>          if ((status = apr_socket_opt_set(skt,
>> -                                         APR_TCP_NODELAY, 0)) != APR_SUCCESS)
>> +                                         APR_TCP_NODELAY, 1)) != APR_SUCCESS)
>>              return status;
>>
>>          /* Configured. Store it into the connection now. */
>
> Yes, that's it.  Serf is now comparable to neon.

This patch is now applied to trunk and 0.7.x.  Thanks!  -- justin

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Joe Orton <jo...@redhat.com> writes:

> On Wed, Mar 09, 2011 at 08:50:37AM -0800, Justin Erenkrantz wrote:
>> On Wed, Mar 9, 2011 at 8:28 AM, Philip Martin
>> <ph...@wandisco.com> wrote:
>> >     0.000054 epoll_wait(3, {{EPOLLOUT, {u32=30583944, u64=30583944}}}, 16, 3600000000) = 1 <0.000011>
>> 
>> As best as I can tell, that strace isn't matching your earlier
>> description.  The last epoll_wait is taking 0.000011 seconds?  --
>
> Smells like Nagle to me - looks like serf is turning Nagle *on* not 
> off... ("nodelay off" == "delay on") - try this?
>
> Index: outgoing.c
> ===================================================================
> --- outgoing.c	(revision 1440)
> +++ outgoing.c	(working copy)
> @@ -201,7 +201,7 @@
>  
>          /* Disable Nagle's algorithm */
>          if ((status = apr_socket_opt_set(skt,
> -                                         APR_TCP_NODELAY, 0)) != APR_SUCCESS)
> +                                         APR_TCP_NODELAY, 1)) != APR_SUCCESS)
>              return status;
>  
>          /* Configured. Store it into the connection now. */

Yes, that's it.  Serf is now comparable to neon.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Joe Orton <jo...@redhat.com>.
On Wed, Mar 09, 2011 at 08:50:37AM -0800, Justin Erenkrantz wrote:
> On Wed, Mar 9, 2011 at 8:28 AM, Philip Martin
> <ph...@wandisco.com> wrote:
> >     0.000054 epoll_wait(3, {{EPOLLOUT, {u32=30583944, u64=30583944}}}, 16, 3600000000) = 1 <0.000011>
> 
> As best as I can tell, that strace isn't matching your earlier
> description.  The last epoll_wait is taking 0.000011 seconds?  --

Smells like Nagle to me - looks like serf is turning Nagle *on* not 
off... ("nodelay off" == "delay on") - try this?

Index: outgoing.c
===================================================================
--- outgoing.c	(revision 1440)
+++ outgoing.c	(working copy)
@@ -201,7 +201,7 @@
 
         /* Disable Nagle's algorithm */
         if ((status = apr_socket_opt_set(skt,
-                                         APR_TCP_NODELAY, 0)) != APR_SUCCESS)
+                                         APR_TCP_NODELAY, 1)) != APR_SUCCESS)
             return status;
 
         /* Configured. Store it into the connection now. */

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 10/03/11 06:34, Ivan Zhakov wrote:
> On Thu, Mar 10, 2011 at 01:23, John Beranek <jo...@redux.org.uk> wrote:
>> On 09/03/2011 20:17, Ivan Zhakov wrote:
>>> On Tue, Mar 8, 2011 at 22:07, Greg Stein <gs...@gmail.com> wrote:
>>>> On Tue, Mar 8, 2011 at 12:34, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>>>> ...
>>>>> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
>>>>> sends CHECKOUT request for _each_ folder and file that being imported,
>>>>> while ra_neon perform it only for root directory. Maybe DAV experts
>>>>> can answer which behavior is correct: should WebDAV client CHECKOUT
>>>>> each resource being modified or it's fine to CHECKOUT only the root of
>>>>> commit operation?
>>>>
>>>> There is no other WebDAV server to talk to, besides our own. That is
>>>> one of the primary rationales behind the HTTPv2 effort: recognizing
>>>> reality, rather than living in an theoretical world.
>>>>
>>>> Thus, if Neon's approach works with our server, then ra_serf can go
>>>> ahead and use that approach, too.
>>>>
>>> Hi Greg,
>>>
>>> My investigations was wrong: actually ra_neon doesn't send CHECKOUT
>>> request only for sub-directories and file of directories being added
>>> in the same commit. We still have to CHECKOUT directories when using
>>> HTTPv1 to provide baseline.
>>>
>>> Anyway I've implemented ra_neon's approach in r1079967.
>>>
>>> John,
>>>
>>> Could you please provide timings of 'svn import' with updated
>>> Subversion trunk and Serf trunk?
>>
>> Apparently fixed!
>>
>> To a remote 1.6.15 server:
>> ra_serf: 18 seconds
>> ra_neon: 16 seconds
>>
> I see that ra_serf still little bit slower than ra_neon.

I'd call that statistical variance. I'd have to run that test 10 times
for each and average to rule that out.

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 10/03/11 17:22, Hyrum K Wright wrote:
> A newly added file isn't getting compiled.  You'll need to rerun ./gen-make.py.

Ah, so true, thanks.

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Hyrum K Wright <hy...@hyrumwright.org>.
On Thu, Mar 10, 2011 at 11:18 AM, John Beranek <jo...@redux.org.uk> wrote:
> On 10/03/11 16:42, Justin Erenkrantz wrote:
>> On Thu, Mar 10, 2011 at 8:22 AM, John Beranek <jo...@redux.org.uk> wrote:
>>> 1.6.16 from localhost trunk server (10 iterations)
>>> ra_neon: 1.43
>>> ra_serf: 2.91
>>>
>>> trunk from localhost trunk server (10 iterations)
>>> ra_neon: 1.48
>>> ra_serf: 2.95
>>>
>>> So, neon and serf retain their speeds relative to each other...
>>
>> Heh, while we've got you testing stuff...what happens if the server is
>> on a different physical machine?  Are your results in line with
>> Philip's which says that ra_serf and ra_neon are within margin of
>> error
>
> 1.6.16 over LAN to trunk server
> ra_neon: 1.61
> ra_serf: 2.62
>
> trunk over LAN to trunk server
> ra_neon: 1.46
> ra_serf: 2.69
>
> trunk over WAN (France->UK) to trunk server
> ra_neon: 1.98
> ra_serf: 3.41
>
> [Note: At some point I updated Subversion to trunk and started getting
> linkage errors[1] in ra_serf...I rolled back to 1080029.]
>
> John.
>
> [1]
> r1080281 gives me:
> [[[
> /export/home/beranej1/builds/subversion-trunk/subversion/libsvn_ra_serf/.libs/libsvn_ra_serf-1.so:
> undefined reference to `svn_ra_serf__blncache_get_baseline_info'
> /export/home/beranej1/builds/subversion-trunk/subversion/libsvn_ra_serf/.libs/libsvn_ra_serf-1.so:
> undefined reference to `svn_ra_serf__blncache_create'
> /export/home/beranej1/builds/subversion-trunk/subversion/libsvn_ra_serf/.libs/libsvn_ra_serf-1.so:
> undefined reference to `svn_ra_serf__blncache_get_bc_url'
> /export/home/beranej1/builds/subversion-trunk/subversion/libsvn_ra_serf/.libs/libsvn_ra_serf-1.so:
> undefined reference to `svn_ra_serf__blncache_set'
> ]]]

A newly added file isn't getting compiled.  You'll need to rerun ./gen-make.py.

-Hyrum

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 10/03/11 16:42, Justin Erenkrantz wrote:
> On Thu, Mar 10, 2011 at 8:22 AM, John Beranek <jo...@redux.org.uk> wrote:
>> 1.6.16 from localhost trunk server (10 iterations)
>> ra_neon: 1.43
>> ra_serf: 2.91
>>
>> trunk from localhost trunk server (10 iterations)
>> ra_neon: 1.48
>> ra_serf: 2.95
>>
>> So, neon and serf retain their speeds relative to each other...
> 
> Heh, while we've got you testing stuff...what happens if the server is
> on a different physical machine?  Are your results in line with
> Philip's which says that ra_serf and ra_neon are within margin of
> error

1.6.16 over LAN to trunk server
ra_neon: 1.61
ra_serf: 2.62

trunk over LAN to trunk server
ra_neon: 1.46
ra_serf: 2.69

trunk over WAN (France->UK) to trunk server
ra_neon: 1.98
ra_serf: 3.41

[Note: At some point I updated Subversion to trunk and started getting
linkage errors[1] in ra_serf...I rolled back to 1080029.]

John.

[1]
r1080281 gives me:
[[[
/export/home/beranej1/builds/subversion-trunk/subversion/libsvn_ra_serf/.libs/libsvn_ra_serf-1.so:
undefined reference to `svn_ra_serf__blncache_get_baseline_info'
/export/home/beranej1/builds/subversion-trunk/subversion/libsvn_ra_serf/.libs/libsvn_ra_serf-1.so:
undefined reference to `svn_ra_serf__blncache_create'
/export/home/beranej1/builds/subversion-trunk/subversion/libsvn_ra_serf/.libs/libsvn_ra_serf-1.so:
undefined reference to `svn_ra_serf__blncache_get_bc_url'
/export/home/beranej1/builds/subversion-trunk/subversion/libsvn_ra_serf/.libs/libsvn_ra_serf-1.so:
undefined reference to `svn_ra_serf__blncache_set'
]]]

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by "C. Michael Pilato" <cm...@collab.net>.
On 03/10/2011 03:07 PM, Mark Phippard wrote:
> On Thu, Mar 10, 2011 at 3:02 PM, Greg Stein <gs...@gmail.com> wrote:
> 
>> That was an explicit design choice. ra_serf should not be using the
>> REPORT style of query. Those GETs are cachable by local proxy caches,
>> reducing the need to (re)fetch the content over a WAN. The big REPORT
>> response is never cachable.
> 
> I think the proxy cache is more theory than reality especially given
> that any site that is SSL will not be cached by a proxy.  That said, I
> think the new pristine store offers us abilities in the future to not
> download files we already have in the cache and the Serf style will
> work much better with that concept (which of course is just another
> cache).

I agree with this.  We want to preserve the explicit fetch approach that
ra_serf takes now, if only so that we can avoid redundant fetches (a
decision that only the client can reasonably make).

If we get the whole proxy bonus for unencrypted connections someday, too,
great.  But I'm not holding my breath...

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Mark Phippard <ma...@gmail.com>.
On Thu, Mar 10, 2011 at 3:02 PM, Greg Stein <gs...@gmail.com> wrote:

> That was an explicit design choice. ra_serf should not be using the
> REPORT style of query. Those GETs are cachable by local proxy caches,
> reducing the need to (re)fetch the content over a WAN. The big REPORT
> response is never cachable.

I think the proxy cache is more theory than reality especially given
that any site that is SSL will not be cached by a proxy.  That said, I
think the new pristine store offers us abilities in the future to not
download files we already have in the cache and the Serf style will
work much better with that concept (which of course is just another
cache).

> I'm also a little curious about serf using more CPU, as our testing a
> few years ago showing serf to be faster and with less CPU. Mebbe
> something changed since then :-/

I could be wrong, but I think all of the cases about the CPU are
related to WC-NG and not Serf.  The high CPU is also seen with Neon.
This is more of a 1.7 vs 1.6 issue.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Thu, Mar 10, 2011 at 23:02, Greg Stein <gs...@gmail.com> wrote:
> On Thu, Mar 10, 2011 at 11:50, Ivan Zhakov <iv...@visualsvn.com> wrote:
>> On Thu, Mar 10, 2011 at 19:42, Justin Erenkrantz <ju...@gmail.com> wrote:
>>...
>>> Heh, while we've got you testing stuff...what happens if the server is
>>> on a different physical machine?  Are your results in line with
>>> Philip's which says that ra_serf and ra_neon are within margin of
>>> error (if serf is not indeed faster)?  Are the timings still off by
>>> that much?  Because it's async, I expect serf has substantially
>>> different performance characteristics when it is going over localhost
>>> (no network) versus using the actual network stack...  -- justin
>>>
>> Unfortunately ra_serf will be worse than ra_neon, because it uses
>> skelta style update editor with many GET/PROPFIND requests. While
>> ra_neon just uses one REPORT request with large response. I have task
>> in my todo list to implement non-skelta (send-all) mode update editor
>> in ra_serf to make performance comparable.
>
> That was an explicit design choice. ra_serf should not be using the
> REPORT style of query. Those GETs are cachable by local proxy caches,
> reducing the need to (re)fetch the content over a WAN. The big REPORT
> response is never cachable.
>
As Mark pointed there is known implementation of such proxy. And it's
hard to implement for corporate environment due SSL and
authentication.

Anyway we have option for mod_dav_svn to ignore send-all flag and
always use skelta mode.

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Greg Stein <gs...@gmail.com>.
On Thu, Mar 10, 2011 at 11:50, Ivan Zhakov <iv...@visualsvn.com> wrote:
> On Thu, Mar 10, 2011 at 19:42, Justin Erenkrantz <ju...@gmail.com> wrote:
>...
>> Heh, while we've got you testing stuff...what happens if the server is
>> on a different physical machine?  Are your results in line with
>> Philip's which says that ra_serf and ra_neon are within margin of
>> error (if serf is not indeed faster)?  Are the timings still off by
>> that much?  Because it's async, I expect serf has substantially
>> different performance characteristics when it is going over localhost
>> (no network) versus using the actual network stack...  -- justin
>>
> Unfortunately ra_serf will be worse than ra_neon, because it uses
> skelta style update editor with many GET/PROPFIND requests. While
> ra_neon just uses one REPORT request with large response. I have task
> in my todo list to implement non-skelta (send-all) mode update editor
> in ra_serf to make performance comparable.

That was an explicit design choice. ra_serf should not be using the
REPORT style of query. Those GETs are cachable by local proxy caches,
reducing the need to (re)fetch the content over a WAN. The big REPORT
response is never cachable.

I'm also a little curious about serf using more CPU, as our testing a
few years ago showing serf to be faster and with less CPU. Mebbe
something changed since then :-/

Cheers,
-g

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Thu, Mar 10, 2011 at 19:42, Justin Erenkrantz
<ju...@gmail.com> wrote:
> On Thu, Mar 10, 2011 at 8:22 AM, John Beranek <jo...@redux.org.uk> wrote:
>> 1.6.16 from localhost trunk server (10 iterations)
>> ra_neon: 1.43
>> ra_serf: 2.91
>>
>> trunk from localhost trunk server (10 iterations)
>> ra_neon: 1.48
>> ra_serf: 2.95
>>
>> So, neon and serf retain their speeds relative to each other...
>
> Heh, while we've got you testing stuff...what happens if the server is
> on a different physical machine?  Are your results in line with
> Philip's which says that ra_serf and ra_neon are within margin of
> error (if serf is not indeed faster)?  Are the timings still off by
> that much?  Because it's async, I expect serf has substantially
> different performance characteristics when it is going over localhost
> (no network) versus using the actual network stack...  -- justin
>
Unfortunately ra_serf will be worse than ra_neon, because it uses
skelta style update editor with many GET/PROPFIND requests. While
ra_neon just uses one REPORT request with large response. I have task
in my todo list to implement non-skelta (send-all) mode update editor
in ra_serf to make performance comparable.

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Justin Erenkrantz <ju...@gmail.com>.
On Thu, Mar 10, 2011 at 8:22 AM, John Beranek <jo...@redux.org.uk> wrote:
> 1.6.16 from localhost trunk server (10 iterations)
> ra_neon: 1.43
> ra_serf: 2.91
>
> trunk from localhost trunk server (10 iterations)
> ra_neon: 1.48
> ra_serf: 2.95
>
> So, neon and serf retain their speeds relative to each other...

Heh, while we've got you testing stuff...what happens if the server is
on a different physical machine?  Are your results in line with
Philip's which says that ra_serf and ra_neon are within margin of
error (if serf is not indeed faster)?  Are the timings still off by
that much?  Because it's async, I expect serf has substantially
different performance characteristics when it is going over localhost
(no network) versus using the actual network stack...  -- justin

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Mon, Mar 14, 2011 at 23:26, Lieven Govaerts <sv...@mobsol.be> wrote:
>
>
> On Mon, Mar 14, 2011 at 8:52 PM, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>
>> On Mon, Mar 14, 2011 at 22:47, John Beranek <jo...@redux.org.uk> wrote:
>> > On 14/03/2011 19:45, Ivan Zhakov wrote:
>> >> On Mon, Mar 14, 2011 at 20:46, John Beranek <jo...@redux.org.uk> wrote:
>> >>> On 14/03/11 17:14, Philip Martin wrote:
>> >>>> Ivan Zhakov <iv...@visualsvn.com> writes:
>> >>>>
>> >>>>> I investigated your problem with high CPU usage and fixed in serf in
>> >>>>> r1456. Could you please test it and confirm that problem with high
>> >>>>> CPU
>> >>>>> load is fixed in your case?
>> >>>>
>> >>>
>> >>> Hmm, your timings still don't match mine. I still see ra_serf being
>> >>> (significantly) slower than ra_neon. With serf r1456 and SVN r1081484
>> >>>
>> >>> Export over a LAN from a trunk server:
>> >>>
>> >>> trunk ra_neon: 1.42
>> >>> trunk ra_serf: 2.44
>> >>>
>> >>> Export over localhost from a trunk server:
>> >>>
>> >>> trunk ra_neon: 1.69
>> >>> trunk ra_serf: 3.00
>> >>>
>> >>> [I imagine this is a little slower because one host (a dual-core
>> >>> workstation) is now both client and server]
>> >>>
>> >>> Cheers,
>> >> Hi John,
>> >>
>> >> Does your server requires authentication? What is MaxKeepAliveRequests
>> >> settings?
>> >
>> > Yes, and:
>> >
>> > Timeout 300000
>> > KeepAlive On
>> > MaxKeepAliveRequests 0
>> > KeepAliveTimeout 500000
>> >
>> Thanks,
>>
>> Authentication is one problem, because serf sends many pipelined
>> requests and gets 403 authorization required reply, and only after
>> that sends requests with authorization headers. This is place for
>> optimization.
>
> Hu? serf sends the first request and then waits for the authentication
> header of the 401 result before sending the next request. Did we loose that
> mechanism when moving authz from ra_serf to serf?
As far I remember, now it works different.
1. Send all pipelined requests
2. When get the first 401 response, serf switching off pipelining
3. Perform authentication handshake (sending requests and receiving
responses one by one)
4. Switching pipelining on and sending all outstanding requests.


-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Lieven Govaerts <sv...@mobsol.be>.
On Mon, Mar 14, 2011 at 8:52 PM, Ivan Zhakov <iv...@visualsvn.com> wrote:

> On Mon, Mar 14, 2011 at 22:47, John Beranek <jo...@redux.org.uk> wrote:
> > On 14/03/2011 19:45, Ivan Zhakov wrote:
> >> On Mon, Mar 14, 2011 at 20:46, John Beranek <jo...@redux.org.uk> wrote:
> >>> On 14/03/11 17:14, Philip Martin wrote:
> >>>> Ivan Zhakov <iv...@visualsvn.com> writes:
> >>>>
> >>>>> I investigated your problem with high CPU usage and fixed in serf in
> >>>>> r1456. Could you please test it and confirm that problem with high
> CPU
> >>>>> load is fixed in your case?
> >>>>
> >>>
> >>> Hmm, your timings still don't match mine. I still see ra_serf being
> >>> (significantly) slower than ra_neon. With serf r1456 and SVN r1081484
> >>>
> >>> Export over a LAN from a trunk server:
> >>>
> >>> trunk ra_neon: 1.42
> >>> trunk ra_serf: 2.44
> >>>
> >>> Export over localhost from a trunk server:
> >>>
> >>> trunk ra_neon: 1.69
> >>> trunk ra_serf: 3.00
> >>>
> >>> [I imagine this is a little slower because one host (a dual-core
> >>> workstation) is now both client and server]
> >>>
> >>> Cheers,
> >> Hi John,
> >>
> >> Does your server requires authentication? What is MaxKeepAliveRequests
> settings?
> >
> > Yes, and:
> >
> > Timeout 300000
> > KeepAlive On
> > MaxKeepAliveRequests 0
> > KeepAliveTimeout 500000
> >
> Thanks,
>
> Authentication is one problem, because serf sends many pipelined
> requests and gets 403 authorization required reply, and only after
> that sends requests with authorization headers. This is place for
> optimization.
>

Hu? serf sends the first request and then waits for the authentication
header of the 401 result before sending the next request. Did we loose that
mechanism when moving authz from ra_serf to serf?

Lieven

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Tue, Mar 15, 2011 at 22:38, John Beranek <jo...@redux.org.uk> wrote:
> On 14/03/2011 19:52, Ivan Zhakov wrote:
>> On Mon, Mar 14, 2011 at 22:47, John Beranek <jo...@redux.org.uk> wrote:
>>> On 14/03/2011 19:45, Ivan Zhakov wrote:
>>>> On Mon, Mar 14, 2011 at 20:46, John Beranek <jo...@redux.org.uk> wrote:
>>>>> On 14/03/11 17:14, Philip Martin wrote:
>>>>>> Ivan Zhakov <iv...@visualsvn.com> writes:
>>>>>>
>>>>>>> I investigated your problem with high CPU usage and fixed in serf in
>>>>>>> r1456. Could you please test it and confirm that problem with high CPU
>>>>>>> load is fixed in your case?
>>>>>>
>>>>>
>>>>> Hmm, your timings still don't match mine. I still see ra_serf being
>>>>> (significantly) slower than ra_neon. With serf r1456 and SVN r1081484
>>>>>
>>>>> Export over a LAN from a trunk server:
>>>>>
>>>>> trunk ra_neon: 1.42
>>>>> trunk ra_serf: 2.44
>>>>>
>>>>> Export over localhost from a trunk server:
>>>>>
>>>>> trunk ra_neon: 1.69
>>>>> trunk ra_serf: 3.00
>>>>>
>>>>> [I imagine this is a little slower because one host (a dual-core
>>>>> workstation) is now both client and server]
>>>>>
>>>>> Cheers,
>>>> Hi John,
>>>>
>>>> Does your server requires authentication? What is MaxKeepAliveRequests settings?
>>>
>>> Yes, and:
>>>
>>> Timeout 300000
>>> KeepAlive On
>>> MaxKeepAliveRequests 0
>>> KeepAliveTimeout 500000
>>>
>>
>> Btw, I forgot to ask you: is gzip compression enabled on your server?
>
> Compression is _off_ on my trunk server.
>
That's also reduce performance for ra_serf, unfortunately mod_deflate
has memory leaks when used with mod_dav_svn [1]

[1] http://svn.haxx.se/dev/archive-2009-08/0274.shtml

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 14/03/2011 19:52, Ivan Zhakov wrote:
> On Mon, Mar 14, 2011 at 22:47, John Beranek <jo...@redux.org.uk> wrote:
>> On 14/03/2011 19:45, Ivan Zhakov wrote:
>>> On Mon, Mar 14, 2011 at 20:46, John Beranek <jo...@redux.org.uk> wrote:
>>>> On 14/03/11 17:14, Philip Martin wrote:
>>>>> Ivan Zhakov <iv...@visualsvn.com> writes:
>>>>>
>>>>>> I investigated your problem with high CPU usage and fixed in serf in
>>>>>> r1456. Could you please test it and confirm that problem with high CPU
>>>>>> load is fixed in your case?
>>>>>
>>>>
>>>> Hmm, your timings still don't match mine. I still see ra_serf being
>>>> (significantly) slower than ra_neon. With serf r1456 and SVN r1081484
>>>>
>>>> Export over a LAN from a trunk server:
>>>>
>>>> trunk ra_neon: 1.42
>>>> trunk ra_serf: 2.44
>>>>
>>>> Export over localhost from a trunk server:
>>>>
>>>> trunk ra_neon: 1.69
>>>> trunk ra_serf: 3.00
>>>>
>>>> [I imagine this is a little slower because one host (a dual-core
>>>> workstation) is now both client and server]
>>>>
>>>> Cheers,
>>> Hi John,
>>>
>>> Does your server requires authentication? What is MaxKeepAliveRequests settings?
>>
>> Yes, and:
>>
>> Timeout 300000
>> KeepAlive On
>> MaxKeepAliveRequests 0
>> KeepAliveTimeout 500000
>>
> 
> Btw, I forgot to ask you: is gzip compression enabled on your server?

Compression is _off_ on my trunk server.

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Ivan Zhakov <iv...@visualsvn.com> writes:

> Authentication is one problem, because serf sends many pipelined
> requests and gets 403 authorization required reply, and only after
> that sends requests with authorization headers. This is place for
> optimization.

Auth will obviously contribute, but I can reproduce it without auth.
Serf makes uses multiple requests while neon uses a single report.
Obviously there is some overhead per-request, parsing headers, socket
IO, and as the files get smaller that overhead becomes more significant.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Mon, Mar 14, 2011 at 22:47, John Beranek <jo...@redux.org.uk> wrote:
> On 14/03/2011 19:45, Ivan Zhakov wrote:
>> On Mon, Mar 14, 2011 at 20:46, John Beranek <jo...@redux.org.uk> wrote:
>>> On 14/03/11 17:14, Philip Martin wrote:
>>>> Ivan Zhakov <iv...@visualsvn.com> writes:
>>>>
>>>>> I investigated your problem with high CPU usage and fixed in serf in
>>>>> r1456. Could you please test it and confirm that problem with high CPU
>>>>> load is fixed in your case?
>>>>
>>>
>>> Hmm, your timings still don't match mine. I still see ra_serf being
>>> (significantly) slower than ra_neon. With serf r1456 and SVN r1081484
>>>
>>> Export over a LAN from a trunk server:
>>>
>>> trunk ra_neon: 1.42
>>> trunk ra_serf: 2.44
>>>
>>> Export over localhost from a trunk server:
>>>
>>> trunk ra_neon: 1.69
>>> trunk ra_serf: 3.00
>>>
>>> [I imagine this is a little slower because one host (a dual-core
>>> workstation) is now both client and server]
>>>
>>> Cheers,
>> Hi John,
>>
>> Does your server requires authentication? What is MaxKeepAliveRequests settings?
>
> Yes, and:
>
> Timeout 300000
> KeepAlive On
> MaxKeepAliveRequests 0
> KeepAliveTimeout 500000
>
Thanks,

Authentication is one problem, because serf sends many pipelined
requests and gets 403 authorization required reply, and only after
that sends requests with authorization headers. This is place for
optimization.

Btw, I forgot to ask you: is gzip compression enabled on your server?

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 14/03/2011 19:45, Ivan Zhakov wrote:
> On Mon, Mar 14, 2011 at 20:46, John Beranek <jo...@redux.org.uk> wrote:
>> On 14/03/11 17:14, Philip Martin wrote:
>>> Ivan Zhakov <iv...@visualsvn.com> writes:
>>>
>>>> I investigated your problem with high CPU usage and fixed in serf in
>>>> r1456. Could you please test it and confirm that problem with high CPU
>>>> load is fixed in your case?
>>>
>>
>> Hmm, your timings still don't match mine. I still see ra_serf being
>> (significantly) slower than ra_neon. With serf r1456 and SVN r1081484
>>
>> Export over a LAN from a trunk server:
>>
>> trunk ra_neon: 1.42
>> trunk ra_serf: 2.44
>>
>> Export over localhost from a trunk server:
>>
>> trunk ra_neon: 1.69
>> trunk ra_serf: 3.00
>>
>> [I imagine this is a little slower because one host (a dual-core
>> workstation) is now both client and server]
>>
>> Cheers,
> Hi John,
> 
> Does your server requires authentication? What is MaxKeepAliveRequests settings?

Yes, and:

Timeout 300000
KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 500000

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Mon, Mar 14, 2011 at 20:46, John Beranek <jo...@redux.org.uk> wrote:
> On 14/03/11 17:14, Philip Martin wrote:
>> Ivan Zhakov <iv...@visualsvn.com> writes:
>>
>>> I investigated your problem with high CPU usage and fixed in serf in
>>> r1456. Could you please test it and confirm that problem with high CPU
>>> load is fixed in your case?
>>
>
> Hmm, your timings still don't match mine. I still see ra_serf being
> (significantly) slower than ra_neon. With serf r1456 and SVN r1081484
>
> Export over a LAN from a trunk server:
>
> trunk ra_neon: 1.42
> trunk ra_serf: 2.44
>
> Export over localhost from a trunk server:
>
> trunk ra_neon: 1.69
> trunk ra_serf: 3.00
>
> [I imagine this is a little slower because one host (a dual-core
> workstation) is now both client and server]
>
> Cheers,
Hi John,

Does your server requires authentication? What is MaxKeepAliveRequests settings?


-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
John Beranek <jo...@redux.org.uk> writes:

> Hmm, your timings still don't match mine. I still see ra_serf being
> (significantly) slower than ra_neon. With serf r1456 and SVN r1081484
>
> Export over a LAN from a trunk server:
>
> trunk ra_neon: 1.42
> trunk ra_serf: 2.44

Neon uses a single REPORT request while serf uses multiple GET/PROPFIND
requests.  Your dataset less data in total but more, smaller, files.
I guess serf's request overhead starts to dominate as the files get
smaller.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 14/03/11 17:14, Philip Martin wrote:
> Ivan Zhakov <iv...@visualsvn.com> writes:
> 
>> I investigated your problem with high CPU usage and fixed in serf in
>> r1456. Could you please test it and confirm that problem with high CPU
>> load is fixed in your case?
> 

Hmm, your timings still don't match mine. I still see ra_serf being
(significantly) slower than ra_neon. With serf r1456 and SVN r1081484

Export over a LAN from a trunk server:

trunk ra_neon: 1.42
trunk ra_serf: 2.44

Export over localhost from a trunk server:

trunk ra_neon: 1.69
trunk ra_serf: 3.00

[I imagine this is a little slower because one host (a dual-core
workstation) is now both client and server]

Cheers,

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Ivan Zhakov <iv...@visualsvn.com> writes:

> I investigated your problem with high CPU usage and fixed in serf in
> r1456. Could you please test it and confirm that problem with high CPU
> load is fixed in your case?

Export over a LAN, Server 1.6

Client 1.6/neon
real    0m8.286s  0m8.079s
user    0m2.890s  0m3.040s
sys     0m0.890s  0m0.840s

Client 1.7/neon
real    0m8.355s  0m8.143s
user    0m2.380s  0m2.250s
sys     0m0.920s  0m1.080s

Client 1.7/serf
real    0m7.794s  0m7.824s
user    0m1.740s  0m1.770s
sys     0m1.800s  0m1.760s

Export over a LAN, Server 1.7

Client 1.6/neon
real    0m8.462s  0m8.508s
user    0m3.080s  0m2.970s
sys     0m0.780s  0m0.910s

Client 1.7/neon
real    0m8.462s  0m8.524s
user    0m2.380s  0m2.390s
sys     0m0.980s  0m0.990s

Client 1.7/serf
real    0m7.606s  0m7.726s
user    0m1.830s  0m1.880s
sys     0m1.590s  0m1.500s

1.7/serf tends to use a bit more CPU that 1.7/neon but that is probably
because neon does export via a single REPORT while serf uses multiple
GET/PROPFIND.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Thu, Mar 10, 2011 at 20:10, Philip Martin <ph...@wandisco.com> wrote:
> Ivan Zhakov <iv...@visualsvn.com> writes:
>
>>> The one small anomaly is 1.7/serf against a 1.6 server, it is fast but
>>> it uses a bit more CPU. (I'm using r1080251).
>>>
>> That is expected performance improvement because of r1080245 [1]:
>> [[[
>> ra_serf: Implement DAV baseline cache . This is dramatically reduces number
>> of PROPFIND requests when working with pre-1.7 servers and improve
>> performance over WAN.
>> ]]]
>>
>> http://svn.apache.org/viewvc?rev=1080245
>
> Does that have any effect on export?  I've tried r1080244 and r1080245.
> They use similar amounts of CPU, take similar amounts of time and both
> cause 3884 lines in Apache's access log.
>
You're right. svn export uses just several PROPFINDs, so it should be
significant performance improvement.

I investigated your problem with high CPU usage and fixed in serf in
r1456. Could you please test it and confirm that problem with high CPU
load is fixed in your case?

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Ivan Zhakov <iv...@visualsvn.com> writes:

>> The one small anomaly is 1.7/serf against a 1.6 server, it is fast but
>> it uses a bit more CPU. (I'm using r1080251).
>>
> That is expected performance improvement because of r1080245 [1]:
> [[[
> ra_serf: Implement DAV baseline cache . This is dramatically reduces number
> of PROPFIND requests when working with pre-1.7 servers and improve
> performance over WAN.
> ]]]
>
> http://svn.apache.org/viewvc?rev=1080245

Does that have any effect on export?  I've tried r1080244 and r1080245.
They use similar amounts of CPU, take similar amounts of time and both
cause 3884 lines in Apache's access log.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Thu, Mar 10, 2011 at 19:55, Philip Martin <ph...@wandisco.com> wrote:
> John Beranek <jo...@redux.org.uk> writes:
>
>> svn export
>> ==========
>>
>> 1.6.16 from localhost trunk server (10 iterations)
>> ra_neon: 1.43
>> ra_serf: 2.91
>>
>> trunk from localhost trunk server (10 iterations)
>> ra_neon: 1.48
>> ra_serf: 2.95
>>
>> So, neon and serf retain their speeds relative to each other...
>
> Are you measuring CPU, elapsed time, or something else?  I see 1.7/serf
> slightly faster that 1.7/neon.
>
> Server 1.6
>
[snip]

>
> The one small anomaly is 1.7/serf against a 1.6 server, it is fast but
> it uses a bit more CPU. (I'm using r1080251).
>
That is expected performance improvement because of r1080245 [1]:
[[[
ra_serf: Implement DAV baseline cache . This is dramatically reduces number
of PROPFIND requests when working with pre-1.7 servers and improve
performance over WAN.
]]]

http://svn.apache.org/viewvc?rev=1080245

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 10/03/11 16:55, Philip Martin wrote:
> John Beranek <jo...@redux.org.uk> writes:
> 
>> svn export
>> ==========
>>
>> 1.6.16 from localhost trunk server (10 iterations)
>> ra_neon: 1.43
>> ra_serf: 2.91
>>
>> trunk from localhost trunk server (10 iterations)
>> ra_neon: 1.48
>> ra_serf: 2.95
>>
>> So, neon and serf retain their speeds relative to each other...
> 
> Are you measuring CPU, elapsed time, or something else?  I see 1.7/serf
> slightly faster that 1.7/neon.

Elapsed time.

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
John Beranek <jo...@redux.org.uk> writes:

> svn export
> ==========
>
> 1.6.16 from localhost trunk server (10 iterations)
> ra_neon: 1.43
> ra_serf: 2.91
>
> trunk from localhost trunk server (10 iterations)
> ra_neon: 1.48
> ra_serf: 2.95
>
> So, neon and serf retain their speeds relative to each other...

Are you measuring CPU, elapsed time, or something else?  I see 1.7/serf
slightly faster that 1.7/neon.

Server 1.6

client 1.6/neon
real    0m8.319s
user    0m2.910s
sys     0m0.850s

client 1.7/neon
real    0m8.278s
user    0m2.410s
sys     0m0.990s

client 1.7/serf
real    0m7.514s
user    0m2.280s
sys     0m2.520s

Server 1.7

client 1.6/neon
real    0m8.571s
user    0m2.970s
sys     0m0.890s

client 1.7/neon
real    0m8.562s
user    0m2.380s
sys     0m1.000s

client 1.7/serf
real    0m7.732s
user    0m1.910s
sys     0m1.500s

The one small anomaly is 1.7/serf against a 1.6 server, it is fast but
it uses a bit more CPU. (I'm using r1080251).

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 10/03/11 15:50, Ivan Zhakov wrote:
> On Thu, Mar 10, 2011 at 18:44, John Beranek <jo...@redux.org.uk> wrote:
>> On 10/03/11 14:31, Hyrum K Wright wrote:
>>> On Thu, Mar 10, 2011 at 6:24 AM, John Beranek <jo...@redux.org.uk> wrote:
>>>> OK, so I:
>>>>
>>>> * Changed my benchmark took to allow the test to be reported N times,
>>>> and moved to microsecond timers.
>>>> * Set up a fresh repository on a 1.6.15 server, with no post-commit
>>>> triggers.
>>>>
>>>> So, with 10 iterations:
>>>>  ra_neon: 16.01
>>>>  ra_serf: 15.94
>>>
>>> Having only tangentially followed this thread, I've got a couple of questions:
>>>  * Do the current subversion+serf fixes solve the the large checkout
>>> time problem people have been seeing on trunk?
>>>  * What other scenarios should we be timing/testing?
>>>
>>> John, you've been a great help in identifying and testing this.  Any
>>> chance you could run similar timing comparisons on other Subversion
>>> operations and report the results? :)
>>
>> OK, well, my script has now been checked in to:
>>
>> https://github.com/jberanek/svn_scripts
>>
>> Documentation/usage information isn't great (OK, non-existant) yet, but
>> I'll work on this.
>>
>> I've added a checkout test, and here are my results:
>>
>> 1.6.16, 10 iterations, from a localhost trunk(r1080029) server to a
>> local disc:
>> ra_neon: 4.49
>> ra_serf: 5.39
>>
>> trunk(r1080029), 10 iterations, from a localhost trunk(r1080029) server
>> to a local disc:
>> ra_neon: 14.94
>> ra_serf: 15.76
>>
> Hi John,
> 
> It better to separate network layer tests from WC layer. The following
> operations are mostly depends on network layer and server performance:
> 1. svn ls / svn ls -R
> 2. svn export
> 3. svn log

svn export
==========

1.6.16 from localhost trunk server (10 iterations)
ra_neon: 1.43
ra_serf: 2.91

trunk from localhost trunk server (10 iterations)
ra_neon: 1.48
ra_serf: 2.95

So, neon and serf retain their speeds relative to each other...

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 10/03/11 16:00, C. Michael Pilato wrote:
> On 03/10/2011 10:57 AM, John Beranek wrote:
>> Hmm, OK, but is 'export' truly not WC dependent??
> 
> Yes, it's WC-independent.  'export' doesn't create a working copy at all.

I guess I'm too used to CVS. ;)

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
"C. Michael Pilato" <cm...@collab.net> writes:

> On 03/10/2011 10:57 AM, John Beranek wrote:
>> Hmm, OK, but is 'export' truly not WC dependent??
>
> Yes, it's WC-independent.  'export' doesn't create a working copy at all.

Export from an URL is wc-independent, but export from a wc does read the
wc.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by "C. Michael Pilato" <cm...@collab.net>.
On 03/10/2011 10:57 AM, John Beranek wrote:
> Hmm, OK, but is 'export' truly not WC dependent??

Yes, it's WC-independent.  'export' doesn't create a working copy at all.

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 10/03/11 15:50, Ivan Zhakov wrote:
> On Thu, Mar 10, 2011 at 18:44, John Beranek <jo...@redux.org.uk> wrote:
>> On 10/03/11 14:31, Hyrum K Wright wrote:
>>> On Thu, Mar 10, 2011 at 6:24 AM, John Beranek <jo...@redux.org.uk> wrote:
>>>> OK, so I:
>>>>
>>>> * Changed my benchmark took to allow the test to be reported N times,
>>>> and moved to microsecond timers.
>>>> * Set up a fresh repository on a 1.6.15 server, with no post-commit
>>>> triggers.
>>>>
>>>> So, with 10 iterations:
>>>>  ra_neon: 16.01
>>>>  ra_serf: 15.94
>>>
>>> Having only tangentially followed this thread, I've got a couple of questions:
>>>  * Do the current subversion+serf fixes solve the the large checkout
>>> time problem people have been seeing on trunk?
>>>  * What other scenarios should we be timing/testing?
>>>
>>> John, you've been a great help in identifying and testing this.  Any
>>> chance you could run similar timing comparisons on other Subversion
>>> operations and report the results? :)
>>
>> OK, well, my script has now been checked in to:
>>
>> https://github.com/jberanek/svn_scripts
>>
>> Documentation/usage information isn't great (OK, non-existant) yet, but
>> I'll work on this.
>>
>> I've added a checkout test, and here are my results:
>>
>> 1.6.16, 10 iterations, from a localhost trunk(r1080029) server to a
>> local disc:
>> ra_neon: 4.49
>> ra_serf: 5.39
>>
>> trunk(r1080029), 10 iterations, from a localhost trunk(r1080029) server
>> to a local disc:
>> ra_neon: 14.94
>> ra_serf: 15.76
>>
> Hi John,
> 
> It better to separate network layer tests from WC layer. The following
> operations are mostly depends on network layer and server performance:
> 1. svn ls / svn ls -R
> 2. svn export
> 3. svn log

Hmm, OK, but is 'export' truly not WC dependent??

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Thu, Mar 10, 2011 at 18:44, John Beranek <jo...@redux.org.uk> wrote:
> On 10/03/11 14:31, Hyrum K Wright wrote:
>> On Thu, Mar 10, 2011 at 6:24 AM, John Beranek <jo...@redux.org.uk> wrote:
>>> OK, so I:
>>>
>>> * Changed my benchmark took to allow the test to be reported N times,
>>> and moved to microsecond timers.
>>> * Set up a fresh repository on a 1.6.15 server, with no post-commit
>>> triggers.
>>>
>>> So, with 10 iterations:
>>>  ra_neon: 16.01
>>>  ra_serf: 15.94
>>
>> Having only tangentially followed this thread, I've got a couple of questions:
>>  * Do the current subversion+serf fixes solve the the large checkout
>> time problem people have been seeing on trunk?
>>  * What other scenarios should we be timing/testing?
>>
>> John, you've been a great help in identifying and testing this.  Any
>> chance you could run similar timing comparisons on other Subversion
>> operations and report the results? :)
>
> OK, well, my script has now been checked in to:
>
> https://github.com/jberanek/svn_scripts
>
> Documentation/usage information isn't great (OK, non-existant) yet, but
> I'll work on this.
>
> I've added a checkout test, and here are my results:
>
> 1.6.16, 10 iterations, from a localhost trunk(r1080029) server to a
> local disc:
> ra_neon: 4.49
> ra_serf: 5.39
>
> trunk(r1080029), 10 iterations, from a localhost trunk(r1080029) server
> to a local disc:
> ra_neon: 14.94
> ra_serf: 15.76
>
Hi John,

It better to separate network layer tests from WC layer. The following
operations are mostly depends on network layer and server performance:
1. svn ls / svn ls -R
2. svn export
3. svn log

The following operations are client side:
1. svn st
2. svn diff (when working copy is modified)

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 10/03/11 14:31, Hyrum K Wright wrote:
> On Thu, Mar 10, 2011 at 6:24 AM, John Beranek <jo...@redux.org.uk> wrote:
>> OK, so I:
>>
>> * Changed my benchmark took to allow the test to be reported N times,
>> and moved to microsecond timers.
>> * Set up a fresh repository on a 1.6.15 server, with no post-commit
>> triggers.
>>
>> So, with 10 iterations:
>>  ra_neon: 16.01
>>  ra_serf: 15.94
> 
> Having only tangentially followed this thread, I've got a couple of questions:
>  * Do the current subversion+serf fixes solve the the large checkout
> time problem people have been seeing on trunk?
>  * What other scenarios should we be timing/testing?
> 
> John, you've been a great help in identifying and testing this.  Any
> chance you could run similar timing comparisons on other Subversion
> operations and report the results? :)

OK, well, my script has now been checked in to:

https://github.com/jberanek/svn_scripts

Documentation/usage information isn't great (OK, non-existant) yet, but
I'll work on this.

I've added a checkout test, and here are my results:

1.6.16, 10 iterations, from a localhost trunk(r1080029) server to a
local disc:
ra_neon: 4.49
ra_serf: 5.39

trunk(r1080029), 10 iterations, from a localhost trunk(r1080029) server
to a local disc:
ra_neon: 14.94
ra_serf: 15.76

Cheers,

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Justin Erenkrantz <ju...@erenkrantz.com> writes:

> On Thu, Mar 10, 2011 at 7:23 AM, Philip Martin
> <ph...@wandisco.com> wrote:
>> We using a lot more CPU and elapsed time is hugely increased.
>
> Just to make sure I understand, it's likely that this is more about
> the libsvn_wc rewrite than anything with ra_serf?  That is, ra_neon
> gives similar timings over NFS in 1.7?  Or?  -- justin

Yes, it's a wcng problem.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
On Thu, Mar 10, 2011 at 7:23 AM, Philip Martin
<ph...@wandisco.com> wrote:
> We using a lot more CPU and elapsed time is hugely increased.

Just to make sure I understand, it's likely that this is more about
the libsvn_wc rewrite than anything with ra_serf?  That is, ra_neon
gives similar timings over NFS in 1.7?  Or?  -- justin

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Hyrum K Wright <hy...@hyrumwright.org> writes:

> Having only tangentially followed this thread, I've got a couple of questions:
>  * Do the current subversion+serf fixes solve the the large checkout
>  time problem people have been seeing on trunk?

I have a mirror of the Subversion repo (mod_dav_svn 1.6).  Checking out
trunk over a LAN gives onto a local disk:

1.6/neon
real    0m8.661s    0m8.509s
user    0m3.710s    0m3.790s
sys     0m1.920s    0m2.020s

1.7/neon
real    0m8.814s    0m8.779s
user    0m4.070s    0m4.280s
sys     0m2.710s    0m2.510s

1.7/serf
real    0m8.186s    0m7.973s
user    0m3.850s    0m3.650s
sys     0m3.310s    0m3.410s

So 1.7 uses more CPU but is about the same elapsed time, if anything
1.7/serf is now faster than 1.6.

Network disks are still a concern.  Checkout onto NFS (mounted sync):

1.6/neon
real    1m58.342s
user    0m5.990s
sys     0m10.830s

1.7/serf
real    7m13.181s
user    0m8.450s
sys     0m35.300s

Checkout onto NFS (mounted async):

1.6/neon
real    1m26.692s
user    0m6.150s
sys     0m10.690s

1.7/serf
real    6m20.883s
user    0m11.040s
sys     0m37.460s

We using a lot more CPU and elapsed time is hugely increased.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Hyrum K Wright <hy...@hyrumwright.org>.
On Thu, Mar 10, 2011 at 6:24 AM, John Beranek <jo...@redux.org.uk> wrote:
> On 10/03/11 06:34, Ivan Zhakov wrote:
>> On Thu, Mar 10, 2011 at 01:23, John Beranek <jo...@redux.org.uk> wrote:
>>> On 09/03/2011 20:17, Ivan Zhakov wrote:
>>>> On Tue, Mar 8, 2011 at 22:07, Greg Stein <gs...@gmail.com> wrote:
>>>>> On Tue, Mar 8, 2011 at 12:34, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>>>>> ...
>>>>>> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
>>>>>> sends CHECKOUT request for _each_ folder and file that being imported,
>>>>>> while ra_neon perform it only for root directory. Maybe DAV experts
>>>>>> can answer which behavior is correct: should WebDAV client CHECKOUT
>>>>>> each resource being modified or it's fine to CHECKOUT only the root of
>>>>>> commit operation?
>>>>>
>>>>> There is no other WebDAV server to talk to, besides our own. That is
>>>>> one of the primary rationales behind the HTTPv2 effort: recognizing
>>>>> reality, rather than living in an theoretical world.
>>>>>
>>>>> Thus, if Neon's approach works with our server, then ra_serf can go
>>>>> ahead and use that approach, too.
>>>>>
>>>> Hi Greg,
>>>>
>>>> My investigations was wrong: actually ra_neon doesn't send CHECKOUT
>>>> request only for sub-directories and file of directories being added
>>>> in the same commit. We still have to CHECKOUT directories when using
>>>> HTTPv1 to provide baseline.
>>>>
>>>> Anyway I've implemented ra_neon's approach in r1079967.
>>>>
>>>> John,
>>>>
>>>> Could you please provide timings of 'svn import' with updated
>>>> Subversion trunk and Serf trunk?
>>>
>>> Apparently fixed!
>>>
>>> To a remote 1.6.15 server:
>>> ra_serf: 18 seconds
>>> ra_neon: 16 seconds
>>>
>> I see that ra_serf still little bit slower than ra_neon.
>
> OK, so I:
>
> * Changed my benchmark took to allow the test to be reported N times,
> and moved to microsecond timers.
> * Set up a fresh repository on a 1.6.15 server, with no post-commit
> triggers.
>
> So, with 10 iterations:
>  ra_neon: 16.01
>  ra_serf: 15.94

Having only tangentially followed this thread, I've got a couple of questions:
 * Do the current subversion+serf fixes solve the the large checkout
time problem people have been seeing on trunk?
 * What other scenarios should we be timing/testing?

John, you've been a great help in identifying and testing this.  Any
chance you could run similar timing comparisons on other Subversion
operations and report the results? :)

-Hyrum

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 10/03/11 06:34, Ivan Zhakov wrote:
> On Thu, Mar 10, 2011 at 01:23, John Beranek <jo...@redux.org.uk> wrote:
>> On 09/03/2011 20:17, Ivan Zhakov wrote:
>>> On Tue, Mar 8, 2011 at 22:07, Greg Stein <gs...@gmail.com> wrote:
>>>> On Tue, Mar 8, 2011 at 12:34, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>>>> ...
>>>>> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
>>>>> sends CHECKOUT request for _each_ folder and file that being imported,
>>>>> while ra_neon perform it only for root directory. Maybe DAV experts
>>>>> can answer which behavior is correct: should WebDAV client CHECKOUT
>>>>> each resource being modified or it's fine to CHECKOUT only the root of
>>>>> commit operation?
>>>>
>>>> There is no other WebDAV server to talk to, besides our own. That is
>>>> one of the primary rationales behind the HTTPv2 effort: recognizing
>>>> reality, rather than living in an theoretical world.
>>>>
>>>> Thus, if Neon's approach works with our server, then ra_serf can go
>>>> ahead and use that approach, too.
>>>>
>>> Hi Greg,
>>>
>>> My investigations was wrong: actually ra_neon doesn't send CHECKOUT
>>> request only for sub-directories and file of directories being added
>>> in the same commit. We still have to CHECKOUT directories when using
>>> HTTPv1 to provide baseline.
>>>
>>> Anyway I've implemented ra_neon's approach in r1079967.
>>>
>>> John,
>>>
>>> Could you please provide timings of 'svn import' with updated
>>> Subversion trunk and Serf trunk?
>>
>> Apparently fixed!
>>
>> To a remote 1.6.15 server:
>> ra_serf: 18 seconds
>> ra_neon: 16 seconds
>>
> I see that ra_serf still little bit slower than ra_neon.

OK, so I:

* Changed my benchmark took to allow the test to be reported N times,
and moved to microsecond timers.
* Set up a fresh repository on a 1.6.15 server, with no post-commit
triggers.

So, with 10 iterations:
 ra_neon: 16.01
 ra_serf: 15.94

Cheers,

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Thu, Mar 10, 2011 at 01:23, John Beranek <jo...@redux.org.uk> wrote:
> On 09/03/2011 20:17, Ivan Zhakov wrote:
>> On Tue, Mar 8, 2011 at 22:07, Greg Stein <gs...@gmail.com> wrote:
>>> On Tue, Mar 8, 2011 at 12:34, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>>> ...
>>>> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
>>>> sends CHECKOUT request for _each_ folder and file that being imported,
>>>> while ra_neon perform it only for root directory. Maybe DAV experts
>>>> can answer which behavior is correct: should WebDAV client CHECKOUT
>>>> each resource being modified or it's fine to CHECKOUT only the root of
>>>> commit operation?
>>>
>>> There is no other WebDAV server to talk to, besides our own. That is
>>> one of the primary rationales behind the HTTPv2 effort: recognizing
>>> reality, rather than living in an theoretical world.
>>>
>>> Thus, if Neon's approach works with our server, then ra_serf can go
>>> ahead and use that approach, too.
>>>
>> Hi Greg,
>>
>> My investigations was wrong: actually ra_neon doesn't send CHECKOUT
>> request only for sub-directories and file of directories being added
>> in the same commit. We still have to CHECKOUT directories when using
>> HTTPv1 to provide baseline.
>>
>> Anyway I've implemented ra_neon's approach in r1079967.
>>
>> John,
>>
>> Could you please provide timings of 'svn import' with updated
>> Subversion trunk and Serf trunk?
>
> Apparently fixed!
>
> To a remote 1.6.15 server:
> ra_serf: 18 seconds
> ra_neon: 16 seconds
>
I see that ra_serf still little bit slower than ra_neon.

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 09/03/2011 20:17, Ivan Zhakov wrote:
> On Tue, Mar 8, 2011 at 22:07, Greg Stein <gs...@gmail.com> wrote:
>> On Tue, Mar 8, 2011 at 12:34, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>> ...
>>> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
>>> sends CHECKOUT request for _each_ folder and file that being imported,
>>> while ra_neon perform it only for root directory. Maybe DAV experts
>>> can answer which behavior is correct: should WebDAV client CHECKOUT
>>> each resource being modified or it's fine to CHECKOUT only the root of
>>> commit operation?
>>
>> There is no other WebDAV server to talk to, besides our own. That is
>> one of the primary rationales behind the HTTPv2 effort: recognizing
>> reality, rather than living in an theoretical world.
>>
>> Thus, if Neon's approach works with our server, then ra_serf can go
>> ahead and use that approach, too.
>>
> Hi Greg,
> 
> My investigations was wrong: actually ra_neon doesn't send CHECKOUT
> request only for sub-directories and file of directories being added
> in the same commit. We still have to CHECKOUT directories when using
> HTTPv1 to provide baseline.
> 
> Anyway I've implemented ra_neon's approach in r1079967.
> 
> John,
> 
> Could you please provide timings of 'svn import' with updated
> Subversion trunk and Serf trunk?

Apparently fixed!

To a remote 1.6.15 server:
ra_serf: 18 seconds
ra_neon: 16 seconds

To a localhost trunk server:
ra_serf: 18 seconds
ra_neon: 18 seconds

Great work!

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Thu, Mar 10, 2011 at 05:36, Greg Stein <gs...@gmail.com> wrote:
> On Wed, Mar 9, 2011 at 15:17, Ivan Zhakov <iv...@visualsvn.com> wrote:
>> On Tue, Mar 8, 2011 at 22:07, Greg Stein <gs...@gmail.com> wrote:
>>> On Tue, Mar 8, 2011 at 12:34, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>>>...
>>>> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
>>>> sends CHECKOUT request for _each_ folder and file that being imported,
>>>> while ra_neon perform it only for root directory. Maybe DAV experts
>>>> can answer which behavior is correct: should WebDAV client CHECKOUT
>>>> each resource being modified or it's fine to CHECKOUT only the root of
>>>> commit operation?
>>>
>>> There is no other WebDAV server to talk to, besides our own. That is
>>> one of the primary rationales behind the HTTPv2 effort: recognizing
>>> reality, rather than living in an theoretical world.
>>>
>>> Thus, if Neon's approach works with our server, then ra_serf can go
>>> ahead and use that approach, too.
>>>
>> Hi Greg,
>>
>> My investigations was wrong: actually ra_neon doesn't send CHECKOUT
>> request only for sub-directories and file of directories being added
>> in the same commit. We still have to CHECKOUT directories when using
>> HTTPv1 to provide baseline.
>>
>> Anyway I've implemented ra_neon's approach in r1079967.
>
> Very cool! And from John's tests, it looks like that worked.
>
> The change looks pretty simple. Maybe it could be backported to 1.6?
>
I don't think that this change should be backported due our policy.
It's just small optimization. And I think that most performance
improvement comes from fix in serf, not mine change in ra_serf.

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Greg Stein <gs...@gmail.com>.
On Wed, Mar 9, 2011 at 15:17, Ivan Zhakov <iv...@visualsvn.com> wrote:
> On Tue, Mar 8, 2011 at 22:07, Greg Stein <gs...@gmail.com> wrote:
>> On Tue, Mar 8, 2011 at 12:34, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>>...
>>> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
>>> sends CHECKOUT request for _each_ folder and file that being imported,
>>> while ra_neon perform it only for root directory. Maybe DAV experts
>>> can answer which behavior is correct: should WebDAV client CHECKOUT
>>> each resource being modified or it's fine to CHECKOUT only the root of
>>> commit operation?
>>
>> There is no other WebDAV server to talk to, besides our own. That is
>> one of the primary rationales behind the HTTPv2 effort: recognizing
>> reality, rather than living in an theoretical world.
>>
>> Thus, if Neon's approach works with our server, then ra_serf can go
>> ahead and use that approach, too.
>>
> Hi Greg,
>
> My investigations was wrong: actually ra_neon doesn't send CHECKOUT
> request only for sub-directories and file of directories being added
> in the same commit. We still have to CHECKOUT directories when using
> HTTPv1 to provide baseline.
>
> Anyway I've implemented ra_neon's approach in r1079967.

Very cool! And from John's tests, it looks like that worked.

The change looks pretty simple. Maybe it could be backported to 1.6?

Cheers,
-g

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Tue, Mar 8, 2011 at 22:07, Greg Stein <gs...@gmail.com> wrote:
> On Tue, Mar 8, 2011 at 12:34, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>...
>> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
>> sends CHECKOUT request for _each_ folder and file that being imported,
>> while ra_neon perform it only for root directory. Maybe DAV experts
>> can answer which behavior is correct: should WebDAV client CHECKOUT
>> each resource being modified or it's fine to CHECKOUT only the root of
>> commit operation?
>
> There is no other WebDAV server to talk to, besides our own. That is
> one of the primary rationales behind the HTTPv2 effort: recognizing
> reality, rather than living in an theoretical world.
>
> Thus, if Neon's approach works with our server, then ra_serf can go
> ahead and use that approach, too.
>
Hi Greg,

My investigations was wrong: actually ra_neon doesn't send CHECKOUT
request only for sub-directories and file of directories being added
in the same commit. We still have to CHECKOUT directories when using
HTTPv1 to provide baseline.

Anyway I've implemented ra_neon's approach in r1079967.

John,

Could you please provide timings of 'svn import' with updated
Subversion trunk and Serf trunk?

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Greg Stein <gs...@gmail.com>.
On Tue, Mar 8, 2011 at 12:34, Ivan Zhakov <iv...@visualsvn.com> wrote:
>...
> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
> sends CHECKOUT request for _each_ folder and file that being imported,
> while ra_neon perform it only for root directory. Maybe DAV experts
> can answer which behavior is correct: should WebDAV client CHECKOUT
> each resource being modified or it's fine to CHECKOUT only the root of
> commit operation?

There is no other WebDAV server to talk to, besides our own. That is
one of the primary rationales behind the HTTPv2 effort: recognizing
reality, rather than living in an theoretical world.

Thus, if Neon's approach works with our server, then ra_serf can go
ahead and use that approach, too.

I would definitely recommend the change in trunk (for modern clients
talking to old servers). Backporting would be nice, but I'm betting
that could get a bit tricky (not sure how far the 1.6 vs 1.7 ra_serf
code has diverged).

Cheers,
-g

ps. I could probably come up with the academic answer to the question
(I helped write the WebDAV specs, after all), but it doesn't seem a
good use of time :-P

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Greg Stein <gs...@gmail.com>.
On Tue, Mar 8, 2011 at 14:35, John Beranek <jo...@redux.org.uk> wrote:
> On 08/03/2011 18:45, Mark Phippard wrote:
>> On Tue, Mar 8, 2011 at 12:52 PM, John Beranek <jo...@redux.org.uk> wrote:
>>
>>> This reminds me that it's readily apparent that there is still no
>>> pipelining being done on an import/commit in either ra_neon or ra_serf,
>>> even with a 'v2' server. Here's some numbers for that, again the same
>>> dataset I've been using, now using a benchmark script I have in development.
>>
>> This document is relatively up to date. Some of the items that show
>> STARTED might be DONE.
>>
>> http://svn.apache.org/repos/asf/subversion/trunk/notes/http-and-webdav/http-protocol-v2.txt
>>
>> Pipelined commits have not been attempted for this release.
>
> Ah, OK - so you're not at phase 2 yet?

Nope.

We should be able to do it with ra_serf (Neon can't do pipelining),
but the work has not been started. Whether somebody tries that in
1.8... dunno. Nobody is interested in tackling that for 1.7 at this
point (we wanna ship it asap).

Cheers,
-g

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 08/03/2011 18:45, Mark Phippard wrote:
> On Tue, Mar 8, 2011 at 12:52 PM, John Beranek <jo...@redux.org.uk> wrote:
> 
>> This reminds me that it's readily apparent that there is still no
>> pipelining being done on an import/commit in either ra_neon or ra_serf,
>> even with a 'v2' server. Here's some numbers for that, again the same
>> dataset I've been using, now using a benchmark script I have in development.
> 
> This document is relatively up to date. Some of the items that show
> STARTED might be DONE.
> 
> http://svn.apache.org/repos/asf/subversion/trunk/notes/http-and-webdav/http-protocol-v2.txt
> 
> Pipelined commits have not been attempted for this release.

Ah, OK - so you're not at phase 2 yet?

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Mark Phippard <ma...@gmail.com>.
On Tue, Mar 8, 2011 at 12:52 PM, John Beranek <jo...@redux.org.uk> wrote:

> This reminds me that it's readily apparent that there is still no
> pipelining being done on an import/commit in either ra_neon or ra_serf,
> even with a 'v2' server. Here's some numbers for that, again the same
> dataset I've been using, now using a benchmark script I have in development.

This document is relatively up to date. Some of the items that show
STARTED might be DONE.

http://svn.apache.org/repos/asf/subversion/trunk/notes/http-and-webdav/http-protocol-v2.txt

Pipelined commits have not been attempted for this release.


-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 08/03/11 17:34, Ivan Zhakov wrote:
> On Tue, Mar 8, 2011 at 19:49, Philip Martin <ph...@wandisco.com> wrote:
>> Ivan Zhakov <iv...@visualsvn.com> writes:
>>
>>> So, as a comparison, I ran the same tests to a localhost trunk(r1078338)
>>> server. Fedora 14 x86_64, Apache 2.2.17.
>>>
>>> trunk (http-library=neon):
>>> real    0m20.785s
>>> user    0m0.912s
>>> sys     0m1.659s
>>>
>>> trunk (http-library=serf):
>>> real    0m21.351s
>>> user    0m0.873s
>>> sys     0m1.639s
>>> ]]
>>>
>>> But with remote server running 1.6.16:
>>> [[[
>>> trunk (http-library=neon):
>>> real    0m15.881s
>>> user    0m0.968s
>>> sys     0m1.029s
>>>
>>> trunk (http-library=serf):
>>> real    2m45.159s
>>> user    0m1.057s
>>> sys     0m1.169s
>>> ]]]
>>>
>>> 15 seconds with ra_neon against 2:45 minutes with ra_serf.
>>
>> Importing a Subversion wc, client on laptop, server on desktop, across
>> LAN:
>>
>> 1.6.x client, 1.6.x server, serf : 20s
>> trunk client, 1.6.x server, serf : 34s
>> 1.6.x client, trunk server, serf : 20s
>> trunk client, trunk server, serf : 34s
>>  any client,   any server, neon : 20s
>>
>> So here it's serf-0.7.1 that has the performance problem.
>>
> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
> sends CHECKOUT request for _each_ folder and file that being imported,
> while ra_neon perform it only for root directory. Maybe DAV experts
> can answer which behavior is correct: should WebDAV client CHECKOUT
> each resource being modified or it's fine to CHECKOUT only the root of
> commit operation?

This reminds me that it's readily apparent that there is still no
pipelining being done on an import/commit in either ra_neon or ra_serf,
even with a 'v2' server. Here's some numbers for that, again the same
dataset I've been using, now using a benchmark script I have in development.

trunk client in France -> trunk server in UK (ra_serf)
219s

trunk client in France -> trunk server in UK (ra_neon)
133s

trunk client in France -> trunk server in UK (ra_svn)
10s

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Justin Erenkrantz <ju...@gmail.com>.
On Wed, Mar 9, 2011 at 8:57 AM, Philip Martin
<ph...@wandisco.com> wrote:
> You are not looking at the right epoll_wait, look 14 lines down from the
> start.  That epoll_wait call takes <0.039952>.  The line below that
> shows a delay of 0.040042 to the subsequent read call.  So epoll_wait is
> responsible for nearly all the delay.

This epoll_wait() is waiting for the response back from the server, so
it makes sense that it'd take longer.  Do we know the server responded
sooner?  Could it be something on the server side?  IOW, this pattern
looks correct on the syscall() side.  -- justin

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Justin Erenkrantz <ju...@gmail.com> writes:

> On Wed, Mar 9, 2011 at 8:28 AM, Philip Martin
> <ph...@wandisco.com> wrote:
>>     0.000054 epoll_wait(3, {{EPOLLOUT, {u32=30583944, u64=30583944}}}, 16, 3600000000) = 1 <0.000011>
>
> As best as I can tell, that strace isn't matching your earlier
> description.  The last epoll_wait is taking 0.000011 seconds?  --
> justin

You are not looking at the right epoll_wait, look 14 lines down from the
start.  That epoll_wait call takes <0.039952>.  The line below that
shows a delay of 0.040042 to the subsequent read call.  So epoll_wait is
responsible for nearly all the delay.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Justin Erenkrantz <ju...@gmail.com>.
On Wed, Mar 9, 2011 at 8:28 AM, Philip Martin
<ph...@wandisco.com> wrote:
>     0.000054 epoll_wait(3, {{EPOLLOUT, {u32=30583944, u64=30583944}}}, 16, 3600000000) = 1 <0.000011>

As best as I can tell, that strace isn't matching your earlier
description.  The last epoll_wait is taking 0.000011 seconds?  --
justin

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Ivan Zhakov <iv...@visualsvn.com> writes:

> That's really interesting. Could you provide similiar strace for neon?

Neon:

     0.000149 sendto(3, "PUT /obj/repo/!svn/wrk/b93b2d01-8"..., 501, 0, NULL, 0) = 501 <0.002280>
     0.002360 lseek(5, 0, SEEK_SET)     = 0 <0.000013>
     0.000054 read(5, "SVN\0\0\0\3\1\3\203\1\2\3"..., 4096) = 13 <0.000013>
     0.000061 read(5, ""..., 4096)      = 0 <0.000010>
     0.000049 sendto(3, "SVN\0\0\0\3\1\3\203\1\2\3"..., 13, 0, NULL, 0) = 13 <0.000035>
     0.000093 read(5, ""..., 4096)      = 0 <0.000012>
     0.000092 poll([{fd=3, events=POLLIN}], 1, 3600000) = 1 ([{fd=3, revents=POLLIN}]) <0.000824>
     0.000885 recvfrom(3, "HTTP/1.1 201 Created\r\nDate: Wed, "..., 4096, 0, NULL, NULL) = 507 <0.000015>
     0.000111 close(5)                  = 0 <0.000015>
     0.000145 sendto(3, "PROPPATCH /obj/repo/!svn/wrk/b93b"..., 466, 0, NULL, 0) = 466 <0.000035>
     0.000095 sendto(3, "<?xml version=\"1.0\" encoding=\"utf"..., 330, 0, NULL, 0) = 330 <0.000031>
     0.000086 poll([{fd=3, events=POLLIN}], 1, 3600000) = 1 ([{fd=3, revents=POLLIN}]) <0.001402>
     0.001460 recvfrom(3, "HTTP/1.1 207 Multi-Status\r\nDate: "..., 4096, 0, NULL, NULL) = 650 <0.000017>
     0.000110 brk(0xfb0000)             = 0xfb0000 <0.000014>
     0.000121 close(6)                  = 0 <0.000014>
     0.000054 unlink("/tmp/svn-tempfile.tmp") = 0 <0.000048>
     0.000089 unlink("/tmp/svn-yqYh9X") = 0 <0.000047>
     0.000096 getcwd("/home/pm/sw/subversion/obj"..., 4096) = 27 <0.000015>
     0.000069 lstat("zz/f21", {st_mode=S_IFREG|0644, st_size=3, ...}) = 0 <0.000015>
     0.000107 lstat("zz/f21", {st_mode=S_IFREG|0644, st_size=3, ...}) = 0 <0.000013>
     0.000081 open("zz/f21", O_RDONLY)  = 5 <0.000016>
     0.000056 fcntl(5, F_GETFD)         = 0 <0.000010>
     0.000046 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 <0.000010>
     0.000047 read(5, "\1\2\3"..., 1024) = 3 <0.000012>
     0.000052 close(5)                  = 0 <0.000012>
     0.000051 stat("zz/f21", {st_mode=S_IFREG|0644, st_size=3, ...}) = 0 <0.000013>
     0.000078 getuid()                  = 1000 <0.000010>
     0.000042 getgid()                  = 1000 <0.000010>
     0.000065 write(1, "Adding  (bin)  zz/f21\n"..., 22) = 22 <0.000023>
     0.000075 open("/tmp/svn-ipIohV", O_RDWR|O_CREAT|O_EXCL, 0600) = 5 <0.000039>
     0.000082 fcntl(5, F_GETFD)         = 0 <0.000011>
     0.000045 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 <0.000010>
     0.000048 fstat(5, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 <0.000010>
     0.000074 chmod("/tmp/svn-ipIohV", 0644) = 0 <0.000017>
     0.000065 open("zz/f21", O_RDONLY)  = 6 <0.000014>
     0.000052 fcntl(6, F_GETFD)         = 0 <0.000010>
     0.000045 fcntl(6, F_SETFD, FD_CLOEXEC) = 0 <0.000010>
     0.000051 read(6, "\1\2\3"..., 4096) = 3 <0.000012>
     0.000068 read(6, ""..., 4096)      = 0 <0.000010>
     0.000047 read(6, ""..., 4096)      = 0 <0.000011>
     0.000057 read(6, ""..., 4096)      = 0 <0.000011>
     0.000066 write(5, "SVN\0\0\0\3\1\3\203\1\2\3"..., 13) = 13 <0.000037>
     0.000080 fstat(5, {st_mode=S_IFREG|0644, st_size=13, ...}) = 0 <0.000010>
     0.000109 sendto(3, "PUT /obj/repo/!svn/wrk/b93b2d01-8"..., 501, 0, NULL, 0) = 501 <0.000041>

Serf:

     0.000080 writev(4, [{"PUT"...], 38) = 448 <0.003246>
     0.003767 epoll_ctl(3, EPOLL_CTL_DEL, 4, {0, {u32=0, u64=0}}) = 0 <0.000014>
     0.000063 epoll_ctl(3, EPOLL_CTL_ADD, 4, {EPOLLIN, {u32=30583992, u64=30583992}}) = 0 <0.000012>
     0.000055 epoll_wait(3, {{EPOLLIN, {u32=30583992, u64=30583992}}}, 16, 3600000000) = 1 <0.000011>
     0.000071 read(4, "HTTP/1.1 201 Created\r\nDate: Wed, "..., 8000) = 447 <0.000014>
     0.000115 munmap(0x7f56de04a000, 13) = 0 <0.000023>
     0.000067 epoll_ctl(3, EPOLL_CTL_DEL, 4, {0, {u32=0, u64=0}}) = 0 <0.000012>
     0.000053 epoll_ctl(3, EPOLL_CTL_ADD, 4, {EPOLLIN|EPOLLOUT, {u32=30583944, u64=30583944}}) = 0 <0.000012>
     0.000075 epoll_wait(3, {{EPOLLOUT, {u32=30583944, u64=30583944}}}, 16, 3600000000) = 1 <0.000011>
     0.000118 writev(4, [{"PROPPATCH"...], 60) = 584 <0.000047>
     0.000339 writev(4, [{"4b\r\n"... , 5}], 17) = 86 <0.000018>
     0.000167 epoll_ctl(3, EPOLL_CTL_DEL, 4, {0, {u32=0, u64=0}}) = 0 <0.000012>
     0.000058 epoll_ctl(3, EPOLL_CTL_ADD, 4, {EPOLLIN, {u32=30583992, u64=30583992}}) = 0 <0.000012>
     0.000056 epoll_wait(3, {{EPOLLIN, {u32=30583992, u64=30583992}}}, 16, 3600000000) = 1 <0.039952>
     0.040042 read(4, "HTTP/1.1 207 Multi-Status\r\nDate: "..., 8000) = 620 <0.000016>
     0.000168 close(6)                  = 0 <0.000014>
     0.000057 unlink("/tmp/svn-tempfile.tmp") = 0 <0.000049>
     0.000090 close(5)                  = 0 <0.000013>
     0.000046 unlink("/tmp/svn-61oBr6") = 0 <0.000052>
     0.000100 getcwd("/home/pm/sw/subversion/obj"..., 4096) = 27 <0.000015>
     0.000068 lstat("zz/f21", {st_mode=S_IFREG|0644, st_size=3, ...}) = 0 <0.000014>
     0.000102 lstat("zz/f21", {st_mode=S_IFREG|0644, st_size=3, ...}) = 0 <0.000012>
     0.000081 open("zz/f21", O_RDONLY)  = 5 <0.000014>
     0.000053 fcntl(5, F_GETFD)         = 0 <0.000010>
     0.000046 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 <0.000010>
     0.000047 read(5, "\1\2\3"..., 1024) = 3 <0.000012>
     0.000051 close(5)                  = 0 <0.000011>
     0.000050 stat("zz/f21", {st_mode=S_IFREG|0644, st_size=3, ...}) = 0 <0.000013>
     0.000077 getuid()                  = 1000 <0.000011>
     0.000045 getgid()                  = 1000 <0.000010>
     0.000072 write(1, "Adding  (bin)  zz/f21\n"..., 22) = 22 <0.000021>
     0.000072 open("/tmp/svn-JTckhz", O_RDWR|O_CREAT|O_EXCL, 0600) = 5 <0.000038>
     0.000081 fcntl(5, F_GETFD)         = 0 <0.000010>
     0.000045 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 <0.000011>
     0.000049 fstat(5, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 <0.000011>
     0.000073 chmod("/tmp/svn-JTckhz", 0644) = 0 <0.000018>
     0.000063 open("zz/f21", O_RDONLY)  = 6 <0.000014>
     0.000052 fcntl(6, F_GETFD)         = 0 <0.000010>
     0.000044 fcntl(6, F_SETFD, FD_CLOEXEC) = 0 <0.000010>
     0.000052 read(6, "\1\2\3"..., 4096) = 3 <0.000012>
     0.000051 read(6, ""..., 4096)      = 0 <0.000011>
     0.000046 read(6, ""..., 4096)      = 0 <0.000011>
     0.000053 read(6, ""..., 4096)      = 0 <0.000011>
     0.000057 epoll_ctl(3, EPOLL_CTL_DEL, 4, {0, {u32=0, u64=0}}) = 0 <0.000012>
     0.000055 epoll_ctl(3, EPOLL_CTL_ADD, 4, {EPOLLIN|EPOLLOUT, {u32=30583944, u64=30583944}}) = 0 <0.000012>
     0.000054 epoll_wait(3, {{EPOLLOUT, {u32=30583944, u64=30583944}}}, 16, 3600000000) = 1 <0.000011>
     0.000054 write(5, "SVN\0\0\0\3\1\3\203\1\2\3"..., 13) = 13 <0.000037>
     0.000081 lseek(5, 0, SEEK_SET)     = 0 <0.000012>
     0.000047 stat("/tmp/svn-JTckhz", {st_mode=S_IFREG|0644, st_size=13, ...}) = 0 <0.000014>
     0.000083 mmap(NULL, 13, PROT_READ, MAP_SHARED, 5, 0) = 0x7f56de04a000 <0.000018>
     0.000077 writev(4, [{"PUT"...], 38) = 448 <0.000051>


-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Wed, Mar 9, 2011 at 18:53, Philip Martin <ph...@wandisco.com> wrote:
> Philip Martin <ph...@wandisco.com> writes:
>
>> So both serf-0.3 and serf-0.7 are slower than neon.
>
> I've been doing a little investigation.  Start with a directory
> containing 100 text files:
>
> rm -rf zz;mkdir zz;for i in `seq 0 99`;do printf "abc" > zz/f$i;done
>
> Import that directory using serf and neon and the times are broadly
> similar, about half a second, with neon being marginally faster. Now
> switch to 100 binary files:
>
> rm -rf zz;mkdir zz;for i in `seq 0 99`;do printf "\x01\x02\x03" > zz/f$i;done
>
> The import over neon is a bit slower, an extra quarter second, because
> of the PROPSET for each file to set svn:mime-type.  However the import
> over serf is much slower, over 4 seconds.
>
> Using "strace -rT" I can see that nearly all the extra time used by serf
> compared to neon is inside the system call epoll_wait.  For each file
> serf does:
>
>   writev("PUT")
>   epoll_ctl()
>   epoll_ctl()
>   epoll_wait()
>   read()
>   munmap()
>   epoll_ctl()
>   epoll_ctl()
>   epoll_wait()
>   writev("PROPPATCH")
>   epoll_ctl()
>   epoll_ctl()
>   epoll_wait()
>   read()
>
> and that last epoll_wait is orders of magnitude slower than all the
> other system calls, at over 0.04s.  Multiply that by 100 and it accounts
> for excess time used by serf over neon.
>
> I don't know why that system call takes so long, but that's where the
> extra time goes.
>
That's really interesting. Could you provide similiar strace for neon?

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Philip Martin <ph...@wandisco.com> writes:

> So both serf-0.3 and serf-0.7 are slower than neon.

I've been doing a little investigation.  Start with a directory
containing 100 text files:

rm -rf zz;mkdir zz;for i in `seq 0 99`;do printf "abc" > zz/f$i;done

Import that directory using serf and neon and the times are broadly
similar, about half a second, with neon being marginally faster. Now
switch to 100 binary files:

rm -rf zz;mkdir zz;for i in `seq 0 99`;do printf "\x01\x02\x03" > zz/f$i;done

The import over neon is a bit slower, an extra quarter second, because
of the PROPSET for each file to set svn:mime-type.  However the import
over serf is much slower, over 4 seconds.

Using "strace -rT" I can see that nearly all the extra time used by serf
compared to neon is inside the system call epoll_wait.  For each file
serf does:

   writev("PUT")
   epoll_ctl()
   epoll_ctl()
   epoll_wait()
   read()
   munmap()
   epoll_ctl()
   epoll_ctl()
   epoll_wait()
   writev("PROPPATCH")
   epoll_ctl()
   epoll_ctl()
   epoll_wait()
   read()

and that last epoll_wait is orders of magnitude slower than all the
other system calls, at over 0.04s.  Multiply that by 100 and it accounts
for excess time used by serf over neon.

I don't know why that system call takes so long, but that's where the
extra time goes.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Ivan Zhakov <iv...@visualsvn.com> writes:

> On Tue, Mar 8, 2011 at 19:49, Philip Martin <ph...@wandisco.com> wrote:
>> Importing a Subversion wc, client on laptop, server on desktop, across
>> LAN:
>>
>> 1.6.x client, 1.6.x server, serf : 20s
>> trunk client, 1.6.x server, serf : 34s
>> 1.6.x client, trunk server, serf : 20s
>> trunk client, trunk server, serf : 34s
>>  any client,   any server, neon : 20s
>>

Sorry, those figures are wrong (it turns out svn silently uses neon if
--config-option=servers:global:http-library=serf is given when serf is
not built in).  The correct figures are:

1.6.x client, 1.6.x server, serf : 34s
trunk client, 1.6.x server, serf : 34s
1.6.x client, trunk server, serf : 34s
trunk client, trunk server, serf : 34s
  any client,   any server, neon : 20s

>> So here it's serf-0.7.1 that has the performance problem.

So both serf-0.3 and serf-0.7 are slower than neon.

> It seems I found reason why ra_serf is slower than ra_neon. ra_serf
> sends CHECKOUT request for _each_ folder and file that being imported,
> while ra_neon perform it only for root directory. Maybe DAV experts
> can answer which behavior is correct: should WebDAV client CHECKOUT
> each resource being modified or it's fine to CHECKOUT only the root of
> commit operation?

That problem goes away when I use a trunk client, a trunk server and the
v2 protocol.  That doesn't make it any faster, it still takes 34s.


-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Tue, Mar 8, 2011 at 19:49, Philip Martin <ph...@wandisco.com> wrote:
> Ivan Zhakov <iv...@visualsvn.com> writes:
>
>> So, as a comparison, I ran the same tests to a localhost trunk(r1078338)
>> server. Fedora 14 x86_64, Apache 2.2.17.
>>
>> trunk (http-library=neon):
>> real    0m20.785s
>> user    0m0.912s
>> sys     0m1.659s
>>
>> trunk (http-library=serf):
>> real    0m21.351s
>> user    0m0.873s
>> sys     0m1.639s
>> ]]
>>
>> But with remote server running 1.6.16:
>> [[[
>> trunk (http-library=neon):
>> real    0m15.881s
>> user    0m0.968s
>> sys     0m1.029s
>>
>> trunk (http-library=serf):
>> real    2m45.159s
>> user    0m1.057s
>> sys     0m1.169s
>> ]]]
>>
>> 15 seconds with ra_neon against 2:45 minutes with ra_serf.
>
> Importing a Subversion wc, client on laptop, server on desktop, across
> LAN:
>
> 1.6.x client, 1.6.x server, serf : 20s
> trunk client, 1.6.x server, serf : 34s
> 1.6.x client, trunk server, serf : 20s
> trunk client, trunk server, serf : 34s
>  any client,   any server, neon : 20s
>
> So here it's serf-0.7.1 that has the performance problem.
>
It seems I found reason why ra_serf is slower than ra_neon. ra_serf
sends CHECKOUT request for _each_ folder and file that being imported,
while ra_neon perform it only for root directory. Maybe DAV experts
can answer which behavior is correct: should WebDAV client CHECKOUT
each resource being modified or it's fine to CHECKOUT only the root of
commit operation?

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Philip Martin <ph...@wandisco.com>.
Ivan Zhakov <iv...@visualsvn.com> writes:

> So, as a comparison, I ran the same tests to a localhost trunk(r1078338)
> server. Fedora 14 x86_64, Apache 2.2.17.
>
> trunk (http-library=neon):
> real    0m20.785s
> user    0m0.912s
> sys     0m1.659s
>
> trunk (http-library=serf):
> real    0m21.351s
> user    0m0.873s
> sys     0m1.639s
> ]]
>
> But with remote server running 1.6.16:
> [[[
> trunk (http-library=neon):
> real    0m15.881s
> user    0m0.968s
> sys     0m1.029s
>
> trunk (http-library=serf):
> real    2m45.159s
> user    0m1.057s
> sys     0m1.169s
> ]]]
>
> 15 seconds with ra_neon against 2:45 minutes with ra_serf.

Importing a Subversion wc, client on laptop, server on desktop, across
LAN:

1.6.x client, 1.6.x server, serf : 20s
trunk client, 1.6.x server, serf : 34s
1.6.x client, trunk server, serf : 20s
trunk client, trunk server, serf : 34s
  any client,   any server, neon : 20s

So here it's serf-0.7.1 that has the performance problem.

-- 
Philip

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Tue, Mar 8, 2011 at 17:20, Mark Phippard <ma...@gmail.com> wrote:
> On Tue, Mar 8, 2011 at 9:14 AM, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>>> [1] http://serf.googlecode.com/svn/trunk/
>>>
>>> Don't the tests show that trunk is slightly faster than 1.6?  It seems
>>> like the main thing it shows is that when working with a HTTPv1
>>> server, ra_serf is significantly slower than ra_neon for svn import
>>> (both in 1.6 and trunk).
>>>
>> I don't think that this performance degradation is related to HTTPv1
>> or HTTPv2. Looking to the source code ra_serf should faster for most
>> operations except checkout/update/export. It seems something broken in
>> serf/ra_serf in John's environment.
>
> The reason I mention HTTPv1 is that his tests only showed the problems
> with a 1.6 server.  With a trunk server the performance of Serf and
> Neon were similar.
>
They're similar when running test over localhost. Quoting John:
[[[
So, as a comparison, I ran the same tests to a localhost trunk(r1078338)
server. Fedora 14 x86_64, Apache 2.2.17.

trunk (http-library=neon):
real    0m20.785s
user    0m0.912s
sys     0m1.659s

trunk (http-library=serf):
real    0m21.351s
user    0m0.873s
sys     0m1.639s
]]

But with remote server running 1.6.16:
[[[
trunk (http-library=neon):
real    0m15.881s
user    0m0.968s
sys     0m1.029s

trunk (http-library=serf):
real    2m45.159s
user    0m1.057s
sys     0m1.169s
]]]

15 seconds with ra_neon against 2:45 minutes with ra_serf.


-- 
Ivan Zhakov
VisualSVN Team

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Mark Phippard <ma...@gmail.com>.
On Tue, Mar 8, 2011 at 9:14 AM, Ivan Zhakov <iv...@visualsvn.com> wrote:
>>> [1] http://serf.googlecode.com/svn/trunk/
>>
>> Don't the tests show that trunk is slightly faster than 1.6?  It seems
>> like the main thing it shows is that when working with a HTTPv1
>> server, ra_serf is significantly slower than ra_neon for svn import
>> (both in 1.6 and trunk).
>>
> I don't think that this performance degradation is related to HTTPv1
> or HTTPv2. Looking to the source code ra_serf should faster for most
> operations except checkout/update/export. It seems something broken in
> serf/ra_serf in John's environment.

The reason I mention HTTPv1 is that his tests only showed the problems
with a 1.6 server.  With a trunk server the performance of Serf and
Neon were similar.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Tue, Mar 8, 2011 at 17:11, Mark Phippard <ma...@gmail.com> wrote:
> On Tue, Mar 8, 2011 at 9:07 AM, Ivan Zhakov <iv...@visualsvn.com> wrote:
>> On Tue, Mar 8, 2011 at 17:01, John Beranek <jo...@redux.org.uk> wrote:
>>> On 08/03/11 09:34, Ivan Zhakov wrote:
>>>> On Tue, Mar 8, 2011 at 12:21, John Beranek <jo...@redux.org.uk> wrote:
>>>>> On 08/03/11 05:34, Justin Erenkrantz wrote:
>>>>>> On Mon, Mar 7, 2011 at 3:26 PM, John Beranek <jo...@redux.org.uk> wrote:
>>>>>>> Hmm...I'm surprised (and disappointed). No one is interested in
>>>>>>> Subversion 1.7 being lower performance than 1.6?
>>>>>>
>>>>>> You're not telling us something we don't already know (go read the
>>>>>> archives some time).  Many folks are still working on improving the
>>>>>> performance of 1.7...so, general complaints aren't going to be
>>>>>> terribly productive.
>>>>>
>>>>> I think "general complaints" is a bit unfair on me.
>>>>>
>>>>> I posted specific timings using the current trunk code, in case it was
>>>>> news to anyone.
>>>>>
>>>>> I guess from now on I'll just keep my investigations to myself.
>>>>>
>>>> Hi John,
>>>>
>>>> I'm really interested of performance tests especially of ra_serf.
>>>> Performance degradation of svn import over ra_serf looks very strange.
>>>> Could you please provide more details about your configuration?
>>>
>>> OK, I've been a bit more rigorous on my latest ra_serf import tests. So,
>>> on a Fedora 14 x86_64 machine (gcc 4.5.1, APR 1.3.9) I built 1.6.16 with
>>> serf 0.7.1, and trunk(r1078338) with serf 0.7.1.
>>>
>>> I imported the same dataset over HTTP to another server on the LAN. This
>>> server runs Apache 2.2.3 with mod_dav_svn 1.6.15, it is a CentOS 5.5
>>> machine.
>>>
>>> So, the timings:
>>>
>>> 1.6.16 (http-library=neon):
>>> real    0m17.105s
>>> user    0m1.133s
>>> sys     0m1.343s
>>>
>>> trunk (http-library=neon):
>>> real    0m15.881s
>>> user    0m0.968s
>>> sys     0m1.029s
>>>
>>> 1.6.16 (http-library=serf):
>>> real    2m46.610s
>>> user    0m1.277s
>>> sys     0m1.543s
>>>
>>> trunk (http-library=serf):
>>> real    2m45.159s
>>> user    0m1.057s
>>> sys     0m1.169s
>>>
>>> Now, that is looking like a serious problem, rather different to my
>>> previous comparison, which compared a remote ra_neon access to a local
>>> ra_serf access.
>>>
>> Yes, it looks like a serious problem. May I ask you to try build
>> Subversion trunk with serf trunk [1] and repeat your tests?
>>
>> [1] http://serf.googlecode.com/svn/trunk/
>
> Don't the tests show that trunk is slightly faster than 1.6?  It seems
> like the main thing it shows is that when working with a HTTPv1
> server, ra_serf is significantly slower than ra_neon for svn import
> (both in 1.6 and trunk).
>
I don't think that this performance degradation is related to HTTPv1
or HTTPv2. Looking to the source code ra_serf should faster for most
operations except checkout/update/export. It seems something broken in
serf/ra_serf in John's environment.


-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Mark Phippard <ma...@gmail.com>.
On Tue, Mar 8, 2011 at 9:07 AM, Ivan Zhakov <iv...@visualsvn.com> wrote:
> On Tue, Mar 8, 2011 at 17:01, John Beranek <jo...@redux.org.uk> wrote:
>> On 08/03/11 09:34, Ivan Zhakov wrote:
>>> On Tue, Mar 8, 2011 at 12:21, John Beranek <jo...@redux.org.uk> wrote:
>>>> On 08/03/11 05:34, Justin Erenkrantz wrote:
>>>>> On Mon, Mar 7, 2011 at 3:26 PM, John Beranek <jo...@redux.org.uk> wrote:
>>>>>> Hmm...I'm surprised (and disappointed). No one is interested in
>>>>>> Subversion 1.7 being lower performance than 1.6?
>>>>>
>>>>> You're not telling us something we don't already know (go read the
>>>>> archives some time).  Many folks are still working on improving the
>>>>> performance of 1.7...so, general complaints aren't going to be
>>>>> terribly productive.
>>>>
>>>> I think "general complaints" is a bit unfair on me.
>>>>
>>>> I posted specific timings using the current trunk code, in case it was
>>>> news to anyone.
>>>>
>>>> I guess from now on I'll just keep my investigations to myself.
>>>>
>>> Hi John,
>>>
>>> I'm really interested of performance tests especially of ra_serf.
>>> Performance degradation of svn import over ra_serf looks very strange.
>>> Could you please provide more details about your configuration?
>>
>> OK, I've been a bit more rigorous on my latest ra_serf import tests. So,
>> on a Fedora 14 x86_64 machine (gcc 4.5.1, APR 1.3.9) I built 1.6.16 with
>> serf 0.7.1, and trunk(r1078338) with serf 0.7.1.
>>
>> I imported the same dataset over HTTP to another server on the LAN. This
>> server runs Apache 2.2.3 with mod_dav_svn 1.6.15, it is a CentOS 5.5
>> machine.
>>
>> So, the timings:
>>
>> 1.6.16 (http-library=neon):
>> real    0m17.105s
>> user    0m1.133s
>> sys     0m1.343s
>>
>> trunk (http-library=neon):
>> real    0m15.881s
>> user    0m0.968s
>> sys     0m1.029s
>>
>> 1.6.16 (http-library=serf):
>> real    2m46.610s
>> user    0m1.277s
>> sys     0m1.543s
>>
>> trunk (http-library=serf):
>> real    2m45.159s
>> user    0m1.057s
>> sys     0m1.169s
>>
>> Now, that is looking like a serious problem, rather different to my
>> previous comparison, which compared a remote ra_neon access to a local
>> ra_serf access.
>>
> Yes, it looks like a serious problem. May I ask you to try build
> Subversion trunk with serf trunk [1] and repeat your tests?
>
> [1] http://serf.googlecode.com/svn/trunk/

Don't the tests show that trunk is slightly faster than 1.6?  It seems
like the main thing it shows is that when working with a HTTPv1
server, ra_serf is significantly slower than ra_neon for svn import
(both in 1.6 and trunk).

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 08/03/11 14:07, Ivan Zhakov wrote:
> On Tue, Mar 8, 2011 at 17:01, John Beranek <jo...@redux.org.uk> wrote:
>> On 08/03/11 09:34, Ivan Zhakov wrote:
>>> On Tue, Mar 8, 2011 at 12:21, John Beranek <jo...@redux.org.uk> wrote:
>>>> On 08/03/11 05:34, Justin Erenkrantz wrote:
>>>>> On Mon, Mar 7, 2011 at 3:26 PM, John Beranek <jo...@redux.org.uk> wrote:
>>>>>> Hmm...I'm surprised (and disappointed). No one is interested in
>>>>>> Subversion 1.7 being lower performance than 1.6?
>>>>>
>>>>> You're not telling us something we don't already know (go read the
>>>>> archives some time).  Many folks are still working on improving the
>>>>> performance of 1.7...so, general complaints aren't going to be
>>>>> terribly productive.
>>>>
>>>> I think "general complaints" is a bit unfair on me.
>>>>
>>>> I posted specific timings using the current trunk code, in case it was
>>>> news to anyone.
>>>>
>>>> I guess from now on I'll just keep my investigations to myself.
>>>>
>>> Hi John,
>>>
>>> I'm really interested of performance tests especially of ra_serf.
>>> Performance degradation of svn import over ra_serf looks very strange.
>>> Could you please provide more details about your configuration?
>>
>> OK, I've been a bit more rigorous on my latest ra_serf import tests. So,
>> on a Fedora 14 x86_64 machine (gcc 4.5.1, APR 1.3.9) I built 1.6.16 with
>> serf 0.7.1, and trunk(r1078338) with serf 0.7.1.
>>
>> I imported the same dataset over HTTP to another server on the LAN. This
>> server runs Apache 2.2.3 with mod_dav_svn 1.6.15, it is a CentOS 5.5
>> machine.
>>
>> So, the timings:
>>
>> 1.6.16 (http-library=neon):
>> real    0m17.105s
>> user    0m1.133s
>> sys     0m1.343s
>>
>> trunk (http-library=neon):
>> real    0m15.881s
>> user    0m0.968s
>> sys     0m1.029s
>>
>> 1.6.16 (http-library=serf):
>> real    2m46.610s
>> user    0m1.277s
>> sys     0m1.543s
>>
>> trunk (http-library=serf):
>> real    2m45.159s
>> user    0m1.057s
>> sys     0m1.169s
>>
>> Now, that is looking like a serious problem, rather different to my
>> previous comparison, which compared a remote ra_neon access to a local
>> ra_serf access.
>>
> Yes, it looks like a serious problem. May I ask you to try build
> Subversion trunk with serf trunk [1] and repeat your tests?

OK, with Subversion r1079375, Serf r1440, http-library=serf:

Remote 1.6.15 server:
real	2m45.905s
user	0m1.020s
sys	0m1.267s

Localhost trunk server:
real	0m21.351s
user	0m0.873s
sys	0m1.639s

So, this still looked fishy, so I compile trunk serf and trunk
Subversion on another machine, and did a test import to the trunk
Apache/mod_dav_svn server. The results:

real	0m26.993s
user	0m0.575s
sys	0m0.752s

Now we have something interesting. Trunk Subversion+Trunk Serf works
fine to a Trunk server, but performs very badly to the 1.6.15 server,
whereas ra_neon is fast...

One last test, an ra_serf import from this second machine to the 1.6.15
server:
real	2m42.484s
user	0m0.952s
sys	0m0.776s

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Tue, Mar 8, 2011 at 17:01, John Beranek <jo...@redux.org.uk> wrote:
> On 08/03/11 09:34, Ivan Zhakov wrote:
>> On Tue, Mar 8, 2011 at 12:21, John Beranek <jo...@redux.org.uk> wrote:
>>> On 08/03/11 05:34, Justin Erenkrantz wrote:
>>>> On Mon, Mar 7, 2011 at 3:26 PM, John Beranek <jo...@redux.org.uk> wrote:
>>>>> Hmm...I'm surprised (and disappointed). No one is interested in
>>>>> Subversion 1.7 being lower performance than 1.6?
>>>>
>>>> You're not telling us something we don't already know (go read the
>>>> archives some time).  Many folks are still working on improving the
>>>> performance of 1.7...so, general complaints aren't going to be
>>>> terribly productive.
>>>
>>> I think "general complaints" is a bit unfair on me.
>>>
>>> I posted specific timings using the current trunk code, in case it was
>>> news to anyone.
>>>
>>> I guess from now on I'll just keep my investigations to myself.
>>>
>> Hi John,
>>
>> I'm really interested of performance tests especially of ra_serf.
>> Performance degradation of svn import over ra_serf looks very strange.
>> Could you please provide more details about your configuration?
>
> OK, I've been a bit more rigorous on my latest ra_serf import tests. So,
> on a Fedora 14 x86_64 machine (gcc 4.5.1, APR 1.3.9) I built 1.6.16 with
> serf 0.7.1, and trunk(r1078338) with serf 0.7.1.
>
> I imported the same dataset over HTTP to another server on the LAN. This
> server runs Apache 2.2.3 with mod_dav_svn 1.6.15, it is a CentOS 5.5
> machine.
>
> So, the timings:
>
> 1.6.16 (http-library=neon):
> real    0m17.105s
> user    0m1.133s
> sys     0m1.343s
>
> trunk (http-library=neon):
> real    0m15.881s
> user    0m0.968s
> sys     0m1.029s
>
> 1.6.16 (http-library=serf):
> real    2m46.610s
> user    0m1.277s
> sys     0m1.543s
>
> trunk (http-library=serf):
> real    2m45.159s
> user    0m1.057s
> sys     0m1.169s
>
> Now, that is looking like a serious problem, rather different to my
> previous comparison, which compared a remote ra_neon access to a local
> ra_serf access.
>
Yes, it looks like a serious problem. May I ask you to try build
Subversion trunk with serf trunk [1] and repeat your tests?

[1] http://serf.googlecode.com/svn/trunk/


-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 08/03/11 09:34, Ivan Zhakov wrote:
> On Tue, Mar 8, 2011 at 12:21, John Beranek <jo...@redux.org.uk> wrote:
>> On 08/03/11 05:34, Justin Erenkrantz wrote:
>>> On Mon, Mar 7, 2011 at 3:26 PM, John Beranek <jo...@redux.org.uk> wrote:
>>>> Hmm...I'm surprised (and disappointed). No one is interested in
>>>> Subversion 1.7 being lower performance than 1.6?
>>>
>>> You're not telling us something we don't already know (go read the
>>> archives some time).  Many folks are still working on improving the
>>> performance of 1.7...so, general complaints aren't going to be
>>> terribly productive.
>>
>> I think "general complaints" is a bit unfair on me.
>>
>> I posted specific timings using the current trunk code, in case it was
>> news to anyone.
>>
>> I guess from now on I'll just keep my investigations to myself.
>>
> Hi John,
> 
> I'm really interested of performance tests especially of ra_serf.
> Performance degradation of svn import over ra_serf looks very strange.
> Could you please provide more details about your configuration?

OK, I've been a bit more rigorous on my latest ra_serf import tests. So,
on a Fedora 14 x86_64 machine (gcc 4.5.1, APR 1.3.9) I built 1.6.16 with
serf 0.7.1, and trunk(r1078338) with serf 0.7.1.

I imported the same dataset over HTTP to another server on the LAN. This
server runs Apache 2.2.3 with mod_dav_svn 1.6.15, it is a CentOS 5.5
machine.

So, the timings:

1.6.16 (http-library=neon):
real	0m17.105s
user	0m1.133s
sys	0m1.343s

trunk (http-library=neon):
real	0m15.881s
user	0m0.968s
sys	0m1.029s

1.6.16 (http-library=serf):
real	2m46.610s
user	0m1.277s
sys	0m1.543s

trunk (http-library=serf):
real	2m45.159s
user	0m1.057s
sys	0m1.169s

Now, that is looking like a serious problem, rather different to my
previous comparison, which compared a remote ra_neon access to a local
ra_serf access.

So, as a comparison, I ran the same tests to a localhost trunk(r1078338)
server. Fedora 14 x86_64, Apache 2.2.17.

1.6.16 (http-library=neon):
real	0m21.209s
user	0m0.978s
sys	0m1.823s

trunk (http-library=neon):
real	0m20.785s
user	0m0.912s
sys	0m1.659s

1.6.16 (http-library=serf):
real	0m23.369s
user	0m0.956s
sys	0m1.953s

trunk (http-library=serf):
real	0m21.351s
user	0m0.873s
sys	0m1.639s


Cheers,

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On Tue, Mar 8, 2011 at 12:21, John Beranek <jo...@redux.org.uk> wrote:
> On 08/03/11 05:34, Justin Erenkrantz wrote:
>> On Mon, Mar 7, 2011 at 3:26 PM, John Beranek <jo...@redux.org.uk> wrote:
>>> Hmm...I'm surprised (and disappointed). No one is interested in
>>> Subversion 1.7 being lower performance than 1.6?
>>
>> You're not telling us something we don't already know (go read the
>> archives some time).  Many folks are still working on improving the
>> performance of 1.7...so, general complaints aren't going to be
>> terribly productive.
>
> I think "general complaints" is a bit unfair on me.
>
> I posted specific timings using the current trunk code, in case it was
> news to anyone.
>
> I guess from now on I'll just keep my investigations to myself.
>
Hi John,

I'm really interested of performance tests especially of ra_serf.
Performance degradation of svn import over ra_serf looks very strange.
Could you please provide more details about your configuration?

-- 
Ivan Zhakov

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 08/03/11 05:34, Justin Erenkrantz wrote:
> On Mon, Mar 7, 2011 at 3:26 PM, John Beranek <jo...@redux.org.uk> wrote:
>> Hmm...I'm surprised (and disappointed). No one is interested in
>> Subversion 1.7 being lower performance than 1.6?
> 
> You're not telling us something we don't already know (go read the
> archives some time).  Many folks are still working on improving the
> performance of 1.7...so, general complaints aren't going to be
> terribly productive.

I think "general complaints" is a bit unfair on me.

I posted specific timings using the current trunk code, in case it was
news to anyone.

I guess from now on I'll just keep my investigations to myself.

John

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake


Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
On Mon, Mar 7, 2011 at 3:26 PM, John Beranek <jo...@redux.org.uk> wrote:
> Hmm...I'm surprised (and disappointed). No one is interested in
> Subversion 1.7 being lower performance than 1.6?

You're not telling us something we don't already know (go read the
archives some time).  Many folks are still working on improving the
performance of 1.7...so, general complaints aren't going to be
terribly productive.  -- justin

Re: Subversion trunk (r1078338) HTTP(/WC?) performance problems?

Posted by John Beranek <jo...@redux.org.uk>.
On 05/03/2011 23:23, John Beranek wrote:
> Hi,
> 
> I'm not sure if much performance comparison has been performed, but I'm
> unhappy to report a significant _reduction_ in speed in a checkout.

Hmm...I'm surprised (and disappointed). No one is interested in
Subversion 1.7 being lower performance than 1.6?

Cheers,

John.

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake