View previous topic :: View next topic |
Author |
Message |
yottabit Guru
Joined: 11 Nov 2002 Posts: 313 Location: Columbus, Ohio, US
|
Posted: Sun Mar 28, 2004 8:08 pm Post subject: Compile Apache2 in Multithreaded Mode? |
|
|
I couldn't find a USE flag for compiling Apache2 with multithreading mode (as opposed to the traditional multiprocess mode like Apache1).
Has anyone thought about adding this option? Should I submit a bug report / feature request?
I guess I'll poke around with the local ebuild to enable it in my server...
Cheers,
J _________________ Play The Hitchhiker's Guide to the Galaxy! |
|
Back to top |
|
|
øxygen Apprentice
Joined: 09 Mar 2004 Posts: 236 Location: Bergheim, Germany
|
Posted: Sun Mar 28, 2004 8:37 pm Post subject: |
|
|
look at the eclass file, it's easy to change there, but beware of modules that taint the apache non threaded, because they aren't thread-safe. |
|
Back to top |
|
|
yottabit Guru
Joined: 11 Nov 2002 Posts: 313 Location: Columbus, Ohio, US
|
Posted: Sun Mar 28, 2004 11:48 pm Post subject: |
|
|
ah yes, I went into the ebuild file, turned on multithreads...
Recompiled... apache2 yells about my php not being thread-safe and to recompile php.
So I recompiled php. Started apache2.
Load my gallery page... the time went back UP. Incredible.
Apache1 took average 15s. Apache2-prefork took average 12s (20% speed improvement!). Apache2-worker took 15s.
So what is the point?
I suspect the gallery PHP code is primarily monolithic and cannot take advantage of the multithreading abilities.
So alas, for now, back to Apache2-prefork.
J _________________ Play The Hitchhiker's Guide to the Galaxy! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|