Re: Re: Really odd PHP problem
| From: | Rasmus Lerdorf | Date: | Sun, 05 Sep 2004 23:25:53 +0000 |
| Subject: | Re: Re: Really odd PHP problem | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12597@lists.php.net to get a copy of this message | ||
On Sun, 5 Sep 2004, Andi Gutmans wrote:
> At 03:13 PM 9/5/2004 -0700, Rasmus Lerdorf wrote:
> >On Sun, 5 Sep 2004, Russ Garrett wrote:
> > > APC doesn't seem to work at all as a DSO, I'll try it statically later.
> >
> >I run it on thousands of servers as a DSO. What are you seeing that would
> >make you think this?
> >
> >Also, if you are running PHP as a DSO and pushing your CPU you might want
> >to compile it non-pic. Use this patch and reconfigure/recompile:
> >
> > http://lerdorf.com/non-pic.txt
>
> Any reason we aren't putting this into the default tree? Does it break on
> any systems?
Yes, building a non-pic shared library doesn't work everywhere. But, the
way to put it in would be to write the appropriate
autoconf/automake/libtool magic to check this which I haven't had the
energy for. On systems that support non-pic shared libraries it makes a
lot of sense to build PHP that way. libphp.so is not a general-purpose
shared library, it is a very specific shared library built to only be
loaded into a single binary for the most part, so you don't lose anything
by going non-pic and you gain 10%-20% performance.
-Rasmus