Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#175363 - 15/08/2003 12:44 PHP performance issues under RedHat
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I don't know that anyone here will have any experience with this, but....

A coworker of mine is attempting to set up SquirrelMail under RedHat. When he uses the PHP RPM, everything's good, except there's a bug in the version of PHP they've packaged up, so he goes to compile it himself. When he does that, PHP's performance goes down the pooper. So he tried recompiling the source RPM for the one RedHat ships. And it's performance is bad.

So that would tend to point to a compiler performance issue, since the source RPM should compile with the same options as they used for the binary RPM.

Has anyone else encountered this and found a solution?
_________________________
Bitt Faulk

Top
#175364 - 15/08/2003 12:50 Re: PHP performance issues under RedHat [Re: wfaulk]
robricc
carpal tunnel

Registered: 30/10/2000
Posts: 4931
Loc: New Jersey, USA
And it's performance is bad.
And its performance is bad.
_________________________
-Rob Riccardelli
80GB 16MB MK2 090000736

Top
#175365 - 15/08/2003 13:00 Re: PHP performance issues under RedHat [Re: robricc]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
Oh my God, Bitt's been Bitted. This kind of fundamental paradox can only lead to a chain reaction resulting in the collapse of the space-time continuum as we know it.
_________________________
Tony Fabris

Top
#175366 - 15/08/2003 13:28 Re: PHP performance issues under RedHat [Re: robricc]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Ouch.
_________________________
Bitt Faulk

Top
#175367 - 15/08/2003 15:25 Re: PHP performance issues under RedHat [Re: wfaulk]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
Any optimized CFLAGS being used?

Also, what configure flags are being used?

What do you mean by performance issues, exactly?

I've compiled PHP4 on Red Hat countless times and have never had performance issues.
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#175368 - 15/08/2003 16:13 Re: PHP performance issues under RedHat [Re: wfaulk]
tarkie
journeyman

Registered: 28/12/2001
Posts: 99
Did he build in the Zend Optimizer?
_________________________
M2a/Smoke/60gb/Tuner!! Thanks Joe M2a/Blue10gb Thanks Ian!

Top
#175369 - 15/08/2003 17:37 Re: PHP performance issues under RedHat [Re: ricin]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Correct me if I'm wrong, but wouldn't all the CFLAGS and configure options and whatnot be contained within a RedHat source RPM? And isn't it supposed to match how the binary RPM was made?

If I'm right, then all those questions about CFLAGS and configure options are moot, as it's supposed to be being built with the exact same options and it's slower anyway.

By performance issues, I mean that with the binary RPM PHP, the SquirrelMail installation responds over its web interface immediately. With the locally-built one, it takes a still small but noticeable amount of time. Given that it'll probably be used by thousands of people, a small wait with no load does not bode well.

I've honestly not had the ability to play with it myself, and I don't know if he's rebuilding Apache along with it or what. For all I know, he's building it in a totally unoptimized manner. But I was hoping someone might say ``Oh, yeah! I've had that problem; use gcc 3.<no one else uses it>''.
_________________________
Bitt Faulk

Top
#175370 - 15/08/2003 18:24 Re: PHP performance issues under RedHat [Re: wfaulk]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
Right. If the spec is being used then all the patches will be applied and the configure options specified in the spec will be used (duh ). I don't believe there are many default CFLAGS options set (I think just -O2), so he might want to optimize those anyway.

I am not sure if there are any additional CFLAGS set when the original RPM is built, but I imagine they really can't add much or it would break compatibility.

Either way, I'd recommend tweaking the spec before compiling, or not using it at all and doing it all from clean source. I've always just done the latter and haven't had any problems.

Then again, what do I know?
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#175371 - 15/08/2003 18:39 Re: PHP performance issues under RedHat [Re: tfabris]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Oh my God, Bitt's been Bitted. This kind of fundamental paradox can only lead to a chain reaction resulting in the collapse of the space-time continuum as we know it.

Man, we can only hope. Maybe we'll find ourselves in a parallel universe - one where the 9/11 attacks never happened, the DMCA and Patriot Act never got passed, Herr Ashcroft never got confirmed and the economy wasn't in the toilet bowl.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#175372 - 15/08/2003 19:22 Re: PHP performance issues under RedHat [Re: ricin]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
[do] it all from clean source
As I attempted to say, he already tried that and it didn't help.
_________________________
Bitt Faulk

Top
#175373 - 16/08/2003 00:25 Re: PHP performance issues under RedHat [Re: wfaulk]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
I understood that he tried it, but did he try it with all the optimizations and such? Maybe a newer version?

I don't know; now I'm just getting annoying and not helping at all. I'll just shut-up now.
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top