Re: Ability to lower PHP memory usage
| From: | Rasmus Lerdorf | Date: | Thu, 08 Jan 2004 17:53:29 +0000 |
| Subject: | Re: Ability to lower PHP memory usage | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6864@lists.php.net to get a copy of this message | ||
On Thu, 8 Jan 2004, Andi Gutmans wrote:
> It wouldn't hurt anyone and it *is* a pressing problem from talks I've had
> with all sorts of ppl that have high traffic machines.
You must be talking to different people than I am. 100 or so functions
all sitting in shared pages and thus shared across each httpd is a trivial
amount of memory. I suspect these people who are having problems don't
know how to optimize their httpd very well. You get a lot more bang for
the buck from making each request process faster and lowering the number
of httpd children you need to run. System-call optimization and overall
optimization of the various critical sections would give you a lot more
return on your effort than disabling a few functions. I would be very
surprised if you were to comment out 100 functions somewhere, that you
could even measure a performance difference on a high-traffic site.
-Rasmus