mod_svn Apache 2.4 VC11 outdated serf module!

Started by Zeitisen, March 17, 2015, 09:01:49 AM

Previous topic - Next topic

Zeitisen

Could you please build a mod_svn for apache 2.4 win32 vc11 with an updated serf library?

Currently you have compiled with Serf 1.2.1 which has several problems with openssl  and certificates.
The current serf version is 1.3.8


The second problem seems to be the performace.
Our old server with apache 2.2 vc6, and svn 1.8.5 had already serf 1.3.2
This configuration was about 5 times faster than apache 2.4, svn 1.8.11

mario

I wasn't able to build svn 1.8 with serf 1.3.x

But if you read the install file https://svn.apache.org/repos/asf/subversion/branches/1.8.x/INSTALL --> B. Dependency Overview --> * libserf  (OPTIONAL for client)
That is only for the svn.exe and other clients and has nothing to do with the apache performance.  ;)

Zeitisen

Correct.
But I need the client on the server for a post-commit-hook. There are some informations retrieved over https by the svn client. And this does not work with serf 1.2.1

And it is perhaps not the performance of apache but of svn.
I have a test repository with the same content over the past 8 years. Before and after each change of a configuration I measure the time consumed for checking out this repository.

The old configuration with Apache 2.2 and SVN 1.8.5 needed 22 seconds.
With Apache 2.4 it lasts about 180 seconds.

Now I fetched SVN binaries from http://sourceforge.net/projects/win32svn/files/1.8.11/apache24/svn-win32-1.8.11-ap24.zip . These are compiled with VC6. It seems they are working with apache 2.4 VC11 from AH.
Now the problem with certifiacates is gone.

But the checking out is as slow as before. So serf is not the reason for the bad performance.
Then I fetched SVN binaries from http://sourceforge.net/projects/win32svn/files/1.8.11/apache24/svn-win32-1.8.11-ap22.zip and put them in the Apache 2.2
Nothing changed to the test before. Time to check out 22 seconds.

So the difference is between Apache 2.4 and Apache 2.2?

The configuration is the same. Only the neccesary syntax changes where made.

Or does anybody have an idea for these differences?


Zeitisen

The latest test:
I fetched the Apache2.2 VC9 from AH
Same results as Apache 2.2 VC6

So what is worse on Apache 2.4?

Is there anything  I can do to get the same results?

mario

Is there anything in the error log? EnableSendfile and or EnableMMAP? KeepAlive? w/ or w/out SSL? Does mod deflate work?

Worth to play with is also


AcceptFilter https none
AcceptFilter http none
EnableSendfile Off
EnableMMAP off


Also do you use the old auth config with Order Allow,Deny or the new one (and only the one) with for example Require All granted ?


Another stuff / test that I would like to know to use the new svn client on the old server and the old client on the new server. Just to make sure it is or it isn't Apache 2.4

Zeitisen

There is nothing in the log.

AcceptFilter https none
AcceptFilter http none

is even slower .

I use Require All granted
I already wrote it: the new svn 1.8.11 on the old Server is as fast as the old svn.

I just read something about mpm_module and that the standard config is different on 2.2 and 2.4.
but I did not find anything on how to change it or how to verifiy the existing configuration.

Zeitisen

no changes with

EnableSendfile Off
EnableMMAP off

mario

You want to change the windows mpm?

That is


<IfModule mpm_winnt_module>
    ThreadsPerChild      150
    MaxRequestsPerChild    0
</IfModule>



See http://httpd.apache.org/docs/2.4/en/mod/mpm_winnt.html
and
http://httpd.apache.org/docs/2.4/en/mod/mpm_common.html

Zeitisen

I set the ThreadsPerChild      to 300

It does not change anything. I also had not expected any change here because on the test server I am the only user.

So there is still the problem that apache 2.4 is 5 times slower than Apache 2.2.
Does anybody have an idea?

Zeitisen

The discussion about performance of apache 2.4 is  going on

on mailinglist [email protected] with topic

"subversion 1.8.11 on apache 2.4 five times slower than on apache 2.2"

Gregg

Viewable archive of above mentioned mailling list topic (for those that do not want to subscribe to the mailing list)
http://marc.info/?t=142667694600001&r=1&w=2

mario

About the outdated module. I tried several times without success. Then I noticed that the win32svn source is modified. Here on AH we compile only vanilla source code

Gregg

Something I noticed today, sounds kind of similar, and I doubt this would just be a https only problem.

http://marc.info/?t=142749038200002&r=1&w=2