[nycphp-talk] Interesting PHP5 benchmarks
Nicholas Tang
ntang at communityconnect.com
Tue May 9 01:24:34 EDT 2006
Honestly, in this case, it was dumb luck - we happened to have one box that was still running U2 in the cluster we were using for stress testing. We were watching the performance of each box, and I noticed that one was consistently answering requests more quickly than the rest. The only difference was the update version of RHEL4. We then tried rolling back more machines and testing and we found that it really was faster.
I haven't used callgrind, myself. We used a combination of various tools to benchmark and profile things - strace, sar, top, vmstat, iostat, etc. on the host level, apd for php, and finally, measuring things like response time, throughput, etc. on the webserver level.
Finally - we're using prefork. I haven't heard particularly good things about PHP/APC running under any other MPM. (It may be improved now; I haven't checked.)
Nicholas
________________________________
From: Andrew Yochum [mailto:andrew at plexpod.com]
Sent: Tue 5/9/2006 12:59 AM
To: Nicholas Tang
Cc: NYPHP Talk
Subject: Re: [nycphp-talk] Interesting PHP5 benchmarks
Nicholas,
On Sun, Apr 30, 2006 at 01:48:45PM -0400, Nicholas Tang wrote:
> We were benchmarking our new beta setup - Apache 2, PHP 5, and APC 3 -
> and seeing absolutely terrible results. Really, really bad.
> Atrocious. As in, I had momentary fears we'd have to pick between a
> rewrite in PHP 4 or double the size of our webserver farm to manage
> it.
...
> Amazingly, while I did tweak some settings here and there, and we did
> nudge a few things in the code, the biggest change? We downgraded our
> servers from Red Hat Enterprise 4 Update 3 to Update 2. That was it.
> Approximately 90% of the difference in the two tests came from that
> one shift - a shift that should have been completely inconsequential.
...
I'm curious... What made you try downgrading from 3 to 2 to discover
this? Are you using prefork or another MPM? Have you compared
callgrind data when running 3 vs. 2?
Please send more details and/or updates. I, for one, would like to hear
more.
Regards,
Andrew
--
Andrew Yochum
Plexpod
andrew at plexpod.com
718-360-0879
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20060509/3b083f56/attachment.html>
More information about the talk
mailing list