PHP on PowerPC
am 20.08.2007 08:43:59 von smayadewi
I am trying to use PHP on a 300 MHz PowerPC based board. On some
pages, I am using $_SERVER and $_GET to get data from the webserver or
from other PHP pages. The loading/execution time for those pages are
painfully slow (about 30 - 40 seconds per page). This only happens if
I run them on PowerPC. At first I thought it was the webserver (I used
THTTPD). Then I changed it to LIGHTTPD and I only see minor decrease
(5 seconds) in the loading time. Any idea how to speed it up? I am
using PHP 4.4.5 (cgi-fcgi). Thanks.
Shirley
Re: PHP on PowerPC
am 20.08.2007 10:59:45 von Toby A Inkster
smayadewi wrote:
> I am trying to use PHP on a 300 MHz PowerPC based board. On some
> pages, I am using $_SERVER and $_GET to get data from the webserver or
> from other PHP pages.
PowerPCs are very nice processors which are very fast despite low-sounding
clock speeds.
My laptop is an old iBook with a 500 MHz running Mac OS 10.3.9, and can
easily serve several PHP pages per second using Apache, even with the
overhead of running a graphically intense operating system. And these pages
do lots and lots of OO stuff, running a few dozen database queries each,
and so on.
Even a 300 MHz PPC processor ought to be fast enough to serve at least one
PHP page per second, assuming they're not overly complex pages.
How much memory does the system have? If it's tight, and your OS (you've
not mentioned which OS!) supports virtual memory, then the system may need
to swap memory, which can be slow.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 60 days, 12:32.]
TrivialEncoder/0.2
http://tobyinkster.co.uk/blog/2007/08/19/trivial-encoder/