On Tue, Nov 11, 2003 at 10:00:12AM -0800, Nathan Seven wrote:

> > Um, so you're saying the advantage to an external db driver here
> > is that AOLserver + db driver now consists of two processes rather
> > than one, so they will make more efficient use of FreeBSD's
> > inferior threading model on a dual cpu machine?
>
> Well, 9 processes to be more exact- (8-connection db-pool)

Ah, there is a seperate external database driver process (the
"database proxy daemon") for each database connection, and those proxy
daemons (normally, and preferably) run on the web server box, not on
the database box.  The comments at the top of nssybpd.c seem to make
that clear.  I wasn't aware of that, I'd incorrectly assumed that the
proxy daemon was a single multi-threaded process.

> You're thinking about 2 processes, with 9 processes I
> would expect the kernel to be able to scedule things
> across multiple CPUs just fine.

I wouldn't trust that without real testing...

> I guess another option would be a virtual-server model with multiple
> instances of the OS running on that front end.

All to solve the problem that FreeBSD's older threads library is
crappy?  I'd think either using a newer Linux-or-Solaris-like threads
library, or if those aren't good enough yet simply switching to Linux,
would both be much simpler choices.  (After all, apparently all you're
using this box for is AOLserver web serving, it has nothing else
running on it which depends on FreeBSD.)

--
Andrew Piskorski <[EMAIL PROTECTED]>
http://www.piskorski.com


--
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