httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor J. Orlikowski" <...@raleigh.ibm.com>
Subject [PATCH] Make AIX versions 4.3 and above use pthreads for locking in 1.3
Date Thu, 08 Jun 2000 21:30:15 GMT
Hullo all.

A fellow around here has had some trouble with massively parallel AIX boxes
and fcntl style locking.
Mostly, the story comes to a degradation of performance with an increased
number of clients on a large number of CPUs due to blocking in fcntl for
long period of time (possibly as a result of horridly broken locking in
AIX). Measurements seem to bear out that sysV semaphores and pthreads bring
astounding improvements, but sysV sems have the known problems (cgi DOS,
failure of cleanup).
Therefore, this patch puts in place pthread-based locking on AIX.

Index: src/Configure
===================================================================
RCS file: /cvs/apache/apache-1.3/src/Configure,v
retrieving revision 1.397
diff -u -r1.397 Configure
--- Configure   2000/04/18 19:26:28     1.397
+++ Configure   2000/06/08 17:19:29
@@ -316,8 +316,8 @@
        ;;
     *-ibm-aix4.3)
        OS='IBM AIX 4.3'
-       CFLAGS="$CFLAGS -DAIX=43 -U__STR__"
-       LDFLAGS="$LDFLAGS -lm"
+       CFLAGS="$CFLAGS -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__"
+       LDFLAGS="$LDFLAGS -lm -lpthread"
        RULE_SHARED_CORE=no
        DEF_SHARED_CORE=no
        ;;

Index: src/include/ap_config.h
===================================================================
RCS file: /cvs/apache/apache-1.3/src/include/ap_config.h,v
retrieving revision 1.287
diff -u -r1.287 ap_config.h
--- ap_config.h 2000/06/01 23:42:23     1.287
+++ ap_config.h 2000/06/08 17:19:30
@@ -268,7 +268,9 @@
 #ifdef NEED_RLIM_T
 typedef int rlim_t;
 #endif
+#if !defined(USE_PTHREAD_SERIALIZED_ACCEPT)
 #define USE_FCNTL_SERIALIZED_ACCEPT
+#endif
 #ifdef USEBCOPY
 #define memmove(a,b,c) bcopy(b,a,c)
 #endif



Mime
View raw message