On Wed, Sep 8, 2010 at 10:05 PM, Jordan Schatz <[email protected]> wrote:
> I was actually hoping for an order of magnitude or maybe 100% or greater
> increaser... keeping in mind that I can get somewhere between 80%-100% by
> just adding another box, 20%-30% gain with a loss in stability doesn't
> meet this projects needs....

Comparing it with adding another server is completely un-related, not
a fair comparison.

Where does the stability comment come from?  Was your server
experiencing reduced stability with nginx?  I think you could
potentially crush/kill a nginx server, but I don't think that's any
less of any issue with Apache or other web servers.

> You might be interested in:
>
> http://github.com/facebook/hiphop-php or
> http://www.roadsend.com/home/index.php?pageID=compiler

Like any major change there are some trade offs, and moving to
compiled PHP is definitely a major change.  The impact is heavily
application dependent.  Facebook (the folks who wrote hiphop) found
that they could get a big jump in performance (100% ish), but when
Rasmus compiled WordPress with hiphop and found the the difference to
be much, much, much smaller.

> I haven't used them, but I have heard good reports (100% speed gain for
> already well written and profiled code)
>
> If you aren't doing opcode caching XCache and APC can also give you a
> around a 30% speed gain.

Definitely.  If you aren't using an opcode cache do that first, it's
like free money.

> Somewhat unrelated, but there are some experimental web servers with
> better thread designs that are REALLY fast:
> http://john.freml.in/teepeedee2-c10k
> I was hoping that fastCGI might make better use of threading and get me a
> times performance gain : )

For single server, smaller applications I don't think you'll see much
of a difference with fastcgi.  However at scale I think it is a
definite win because it allows you to manage PHP separate from the
primary job of responding to HTTP requests.  For PHP w/fastcgi I
strongly recommend looking at php-fpm, which is included with
php5.3.3.

There are some general things that nearly all applications can/should
do to improve performance. Beyond that you need to get familiar with
the available tools to do analysis specific to your setup and
application.


-- 
Joseph Scott
[email protected]
http://josephscott.org/

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to