Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compile Apache2 in Multithreaded Mode?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Sun Mar 28, 2004 8:08 pm    Post subject: Compile Apache2 in Multithreaded Mode? Reply with quote

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
View user's profile Send private message
øxygen
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 236
Location: Bergheim, Germany

PostPosted: Sun Mar 28, 2004 8:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
yottabit
Guru
Guru


Joined: 11 Nov 2002
Posts: 313
Location: Columbus, Ohio, US

PostPosted: Sun Mar 28, 2004 11:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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