LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 09-23-2006, 11:12 AM   #1
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
DISCUSSION: Optimizing PHP, Part Three


This thread is to discuss the article titled:
Optimizing PHP, Part Three

Quote:
Optimizing PHP, Part Three Features - Power Tools Written by Jeremy Garcia Last month
 
Old 10-12-2006, 02:49 AM   #2
TGoddard
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
Failing to mention the tradeoffs

I find it disappointing that this article talks about performance tuning but fails to discuss the tradeoffs being made by the options given.

I am particularly alarmed by the --prefer-non-pic argument as this is a very serious CPU/memory tradeoff. If used incorrectly and in the wrong circumstances it can cause serious delays with memory consumption and library loading time due to the need for relocation. What scripts did you get the 10% improvements for? You might on a complicated CMS script but I would doubt you would get sufficient benefit for a simple database-driven page.

Note that I'm not a PHP guy at all - this is just a general comment on compiling any application that may have many CGI instances running at once without PIC code. There may be an improvement after all, but it would be nice to see the benchmarks and what circumstances are most appropriate.

EDIT: On rereading the article I noticed your condition "as an Apache DSO" attached. Sorry for misreading it. Non-PIC code may perform well under these circumstances.

Last edited by TGoddard; 10-12-2006 at 02:59 AM.
 
Old 12-04-2006, 07:26 PM   #3
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Original Poster
Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
Thanks for the feedback. That DSO bit is a very specific requirement for the '--prefer-non-pic' and it's actually a default on x86 machines in newer versions of PHP. As for the "simple database-driven page", by the time you need to do any kind of in-depth optimization like this, you should have a high traffic site that has much more than simple database-driven pages.

--jeremy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Power to the Users - part 1 stomfi LQ Articles Discussion 1 04-01-2006 10:05 PM
DISCUSSION: Power to the Users - Part 5 stomfi LQ Articles Discussion 1 04-01-2006 04:35 PM
DISCUSSION: Power to the Users - Part 7 stomfi LQ Articles Discussion 0 04-01-2006 10:59 AM
DISCUSSION: Power to the users - part 2 stomfi LQ Articles Discussion 4 04-01-2006 02:54 AM
DISCUSSION: Optimizing Apache jeremy LinuxAnswers Discussion 0 11-04-2004 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration