Date: 12/15/00
- Next message: klaasb <email protected>: "[PHP-DEV] PHP 4.0 Bug #8274: PHP not w3c compliant"
- Previous message: Stig S. Bakken: "Re: [PHP-DEV] Could some kind soul review these patches please."
- In reply to: szii <email protected>: "[PHP-DEV] Speed/Performance"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Speed/Performance"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Speed/Performance"
- Reply: szii <email protected>: "Re: [PHP-DEV] Speed/Performance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
szii <email protected> wrote:
>
> We're running some speed trials right now, and seeing that .php files
> are taking considerably longer even if they have NO <?php ?> tags.
> They're static pages, but by having the extension they're running slower
> do to the parser running through them.
>
> Does anyone have any "performance" tips for PHP files? Caches that
> aren't turned on by default?
>
> Here are the ones I know:
> Compile into Apache, not as a DSO
> Lots O RAM
> Don't use "known php extensions" for non-php files.
>
> We're taking a single-CPU client running a multithreaded app.
> It spawns X threads each of which open a socket, requests a
> file, and shuts down the socket.
>
> At 100 threads we're choking the server (K6 233) and not
> even touching the client's CPU usage. We're also deep
> into VM/swap space, even at 192 MB RAM. This is quite
> obviously not our production server (cringe at the thought).
> We're just "playing" with this one.
>
> Any one have more ideas? 2.4 kernel with khttpd? Won't affect
> PHP, but could make static pages faster...
It seems to me like you have a memory problem. With Apache/PHP you are
in deep trouble if you run out of physical memory, and when you say that
your server is choking, it sounds to me like it's "trashing" (spends
most of its time paging memory in and out). 192MB RAM is not exactly a
lot these days, even my laptop has more. :-)
try {
while (server_trashes) {
add_more_ram();
}
} catch (OutOfMemorySlotsException) {
rewrite_code();
}
I wouldn't consider running a system like the one you are outlining with
less than 512MB.
- Stig
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: klaasb <email protected>: "[PHP-DEV] PHP 4.0 Bug #8274: PHP not w3c compliant"
- Previous message: Stig S. Bakken: "Re: [PHP-DEV] Could some kind soul review these patches please."
- In reply to: szii <email protected>: "[PHP-DEV] Speed/Performance"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Speed/Performance"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Speed/Performance"
- Reply: szii <email protected>: "Re: [PHP-DEV] Speed/Performance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

