From 19c0d8577c8bdcc198d887400123ffeb8df9ebb6 Mon Sep 17 00:00:00 2001
From: Jeff Trawick Listen
directives.
The directive AcceptMutex
can be used to
- change the selected mutex implementation at run-time.
AcceptMutex flock
This method uses the flock(2)
system call to
- lock a lock file (located by the LockFile
directive).
AcceptMutex fcntl
This method uses the fcntl(2)
system call to
- lock a lock file (located by the LockFile
directive).
AcceptMutex sysvsem
(1.3 or later) This method uses SysV-style semaphores to
- implement the mutex. Unfortunately SysV-style semaphores have
- some bad side-effects. One is that it's possible Apache will
- die without cleaning up the semaphore (see the
- ipcs(8)
man page). The other is that the
- semaphore API allows for a denial of service attack by any
- CGIs running under the same uid as the webserver
- (i.e., all CGIs, unless you use something like
- suexec
or cgiwrapper
).
AcceptMutex pthread
(1.3 or later) This method uses POSIX mutexes and should - work on any architecture implementing the full POSIX threads - specification, however appears to only work on Solaris (2.5 - or later), and even then only in certain configurations. If - you experiment with this you should watch out for your server - hanging and not responding. Static content only servers may - work just fine.
-AcceptMutex posixsem
(2.0 or later) This method uses POSIX semaphores. The - semaphore ownership is not recovered if a thread in the process - holding the mutex segfaults, resulting in a hang of the web - server.
-If your system has another method of serialization which - isn't in the above list then it may be worthwhile adding code - for it to APR.
+The Mutex
directive can
+ be used to change the mutex implementation of the
+ mpm-accept
mutex at run-time. Special considerations
+ for different mutex implementations are documented with that
+ directive.
Another solution that has been considered but never implemented is to partially serialize the loop -- that is, let diff --git a/docs/manual/misc/perf-tuning.xml.ko b/docs/manual/misc/perf-tuning.xml.ko index c2032bc268..9bc664c29f 100644 --- a/docs/manual/misc/perf-tuning.xml.ko +++ b/docs/manual/misc/perf-tuning.xml.ko @@ -1,7 +1,7 @@ - + + + + + + + + + + + + + + - + + + + + + - + + + +