On Sun, Oct 7, 2012 at 6:59 PM, rbo...@apache.org wrote:
Author: rbowen
Date: Sun Oct 7 22:59:14 2012
New Revision: 1395417
URL: http://svn.apache.org/viewvc?rev=1395417view=rev
Log:
Adds some clarification to the statement that the default MPM is
selected based on platform capabilities.
Modified:
httpd/httpd/trunk/docs/manual/mpm.html.en
httpd/httpd/trunk/docs/manual/mpm.xml
Modified: httpd/httpd/trunk/docs/manual/mpm.html.en
URL:
http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mpm.html.en?rev=1395417r1=1395416r2=1395417view=diff
==
--- httpd/httpd/trunk/docs/manual/mpm.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mpm.html.en Sun Oct 7 22:59:14 2012
@@ -99,6 +99,28 @@ choice at compile-time./p
code class=modulea href=./mod/event.htmlevent/a/code,
depending on platform capabilities/td/tr
tr class=oddtdWindows/tdtdcode class=modulea
href=./mod/mpm_winnt.htmlmpm_winnt/a/code/td/tr
/table
+
+div class=notepHere, 'Unix' is used to mean Unix-like operating
systems, such as
+Linux, BSD, Solaris, Mac OS X, etc./p/div
+
+pIn the case of Unix, the decision as to which MPM is installed is
+based on two questions:/p
+p1. Does the system support a
href=http://en.wikipedia.org/wiki/Threads_(computer_science)threads/a?/p
+p2. Does the system support a
href=http://en.wikipedia.org/wiki/Polling_(computer_science)polling/a?/p
+
+pIf the answer to both questions is 'yes', the default MPM is
+code class=modulea href=./mod/event.htmlevent/a/code./p
It isn't that simple.
APR_POLLSET_THREADSAFE has to be supported, and that is more than the
well-known capabilities of threads and polling.
APR_POLLSET_THREADSAFE means that the platform has an advanced polling
mechanism which allows pollsets to be manipulated in a certain way,
and that APR has an implementation that uses that mechanism.
Linux, Solaris, and FreeBSD/Mac OS X are platforms that satisify both
characteristics. z/OS is a platform that has an advanced polling
mechanism but without an APR implementation in the stable branches.
Neither AIX nor HP-UX have APR implementations, though I'd guess that
the OS has the feature and nobody has gotten around to exploiting it
in APR.
+
+pIf The answer to #1 is 'yes', but the answer to #2 is 'no', the
+default will be code class=modulea
href=./mod/worker.htmlworker/a/code./p
+
+pIf the answer to both questions is 'no', then the default MPM will be
+code class=modulea href=./mod/prefork.htmlprefork/a/code./p
+
+pIn practical terms, this means that the default will almost always be
+code class=modulea href=./mod/event.htmlevent/a/code, as all
modern operating systems support these
+two features./p
+
/divdiv class=topa href=#page-headerimg alt=top
src=./images/up.gif //a/div
div class=section
h2a name=static id=staticBuilding an MPM as a static module/a/h2
Modified: httpd/httpd/trunk/docs/manual/mpm.xml
URL:
http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mpm.xml?rev=1395417r1=1395416r2=1395417view=diff
==
--- httpd/httpd/trunk/docs/manual/mpm.xml (original)
+++ httpd/httpd/trunk/docs/manual/mpm.xml Sun Oct 7 22:59:14 2012
@@ -89,6 +89,30 @@ choice at compile-time./p
moduleevent/module, depending on platform capabilities/td/tr
trtdWindows/tdtdmodulempm_winnt/module/td/tr
/table
+
+notepHere, 'Unix' is used to mean Unix-like operating systems, such as
+Linux, BSD, Solaris, Mac OS X, etc./p/note
+
+pIn the case of Unix, the decision as to which MPM is installed is
+based on two questions:/p
+p1. Does the system support a
+href=http://en.wikipedia.org/wiki/Threads_(computer_science)threads/a?/p
+p2. Does the system support a
+href=http://en.wikipedia.org/wiki/Polling_(computer_science)polling/a?/p
+
+pIf the answer to both questions is 'yes', the default MPM is
+moduleevent/module./p
+
+pIf The answer to #1 is 'yes', but the answer to #2 is 'no', the
+default will be moduleworker/module./p
+
+pIf the answer to both questions is 'no', then the default MPM will be
+moduleprefork/module./p
+
+pIn practical terms, this means that the default will almost always be
+moduleevent/module, as all modern operating systems support these
+two features./p
+
/section
section id=statictitleBuilding an MPM as a static module/title
--
Born in Roswell... married an alien...
http://emptyhammock.com/