Is it possible to build AOLServer in a single-threaded, lock-free manner?

Because BerkeleyDB's tcl interface isn't thread safe, I'm running aolserver in single-thread mode, with
ns_param maxthreads 1

ApacheBench shows me getting 440 page requests per second, on an ADP page that does a database find and read operation, which is really fast still, even when I set concurrency at 10 with ApacheBench.

But, since I'm running in single-threaded mode, is it possible to disable thread-safety locking in AOLServer, to further speed things up?

If it isn't today, I could simple #define
Ns_MutexLock
Ns_MutexUnlock

as no-ops and that should do it.

Is it the case that Mutexes are the only lock type that's used in AOLServer's thread safety? Seems like it...

-john


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to