On Mon, Oct 16, 2000, David Rees wrote:
> [...]
> These were all SSL tests.
>
> A is Apache/1.3.14/mod_ssl/2.7.1 with the shmcb (new sharing code)
> B is Apache/1.3.14/mod_ssl/2.7.1 with the shmht (old session code)
> C is Apache/1.3.12/mod_ssl/2.6.6 with shm (shmht)
>
> Test 1 Test 2 Test 3 Avg
> A 141.00 146.25 147.00 144.75
> B 148.50 139.50 150.00 146.00
> C 86.25 90.00 90.00 88.75
>
> The results are pretty close between the shmcb/shmht tests, close enough
> that I'd call them the same.
Sure, shmcb is not really faster in usual storing. But it is more
efficient when the session cache filled. Then shmht has to perform
expensive expire operations which should cost a lot more than what shmcb
does. So you have to measure over a longer time.
> But the difference between the old/new build
> is huge and way more than I expected! (But hey, I'll take a 65% speed boost
> for free anyday!)
I've still no clue why this is the case. There should be no much
difference for the shmht stuff, because between 2.6 and 2.7 for
shmht mainly the abstraction layer was added. And this is a harmless
additional function call indirection. So I really cannot image why shmht
now should be slower than before.
> Has anyone else seen these types of results? I would be curious to know if
> I'm just crazy or made a mistake in my benchmarking somewhere. It doesn't
> seem to be a difference between Apache 1.3.12/14, as static tests show
> results that are very close, so I assume that it was some change between
> mod_ssl 2.6.6/2.7.1 or openssl 0.9.5a/0.9.6.
If there is a difference, I guess it is more in OpenSSL. Can you
retry shmht with Apache/1.3.12+mod_ssl/2.6.6+OpenSSL/0.9.6 vs.
Apache/1.3.14+mod_ssl/2.7.1+OpenSSL/0.9.6?
> I also figure that the tests I ran don't show the differences between the
> session sharing code very well, but in the real world I assume the shmcb
> code does make a real difference.
Yes, it should. Especially once the underlaying shared memory segment of
the session cache filled.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]