www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brad Cox <b...@vs2.gmu.edu>
Subject Re: os-linux/2723: HTTPD dies complaining "error getting accept lock"
Date Tue, 15 Dec 1998 21:10:01 GMT
The following reply was made to PR os-linux/2723; it has been noted by GNATS.

From: Brad Cox <bcox@vs2.gmu.edu>
To: "Jeffrey W. Baker" <jwbaker@iname.com>, apbugs@apache.org
Cc:  Subject: Re: os-linux/2723: HTTPD dies complaining "error getting accept
 lock"
Date: Tue, 15 Dec 1998 16:02:55 -0500

 I just measured it. It serves requests more than 1,000,000 times faster
 running with ioctl than crashed with flock. See for yourself.
 http://virtualschool.edu/
 
 
 At 12:37 PM -0500 12/15/1998, Jeffrey W. Baker wrote:
 >According To Brad Cox <bcox@vs2.gmu.edu>, recompiling Apache to use
 >ioctl corrects this bug on linux.  Performance implications of this have
 >not been quantified.
 >
 >--Jeffrey
 >
 >Brad Cox wrote:
 >>
 >> Lincoln was right. Recompiling apache to use ioctl locking made this
 >> problem go away.
 >>
 >> Everybody beware. This one bites hard once it decides to act up.
 >>
 >> The fix is to simply modify src/include ap_config.h (LINUX section) as
 >> follows; eg use USE_FCNTL_SERIALIZED_ACCEPT instead of
 >> USE_FLOCK_SERIALIZED_ACCEPT
 >>
 >> /* flock is faster ... but hasn't been tested on 1.x systems */
 >> /* bjc: #define USE_FLOCK_SERIALIZED_ACCEPT */
 >> #define USE_FCNTL_SERIALIZED_ACCEPT
 
 
 ------------------------------------------------
 Dr. Brad Cox; 703 361 4751; bcox@virtualschool.edu (update your address book)
 http://virtualschool.edu/mon A Project with Paradoxical Goals
 PGP Signature: E194 C6E5 92D8 B8FB 20E8  8667 929A 95A0 FCB6 7C62

Mime
View raw message