OT: why do web BBS's and blogs get so slow?

Paul Rubin http
Sun Feb 1 16:17:07 EST 2004


David Steuber <david.steuber at verizon.net> writes:
> > 1) It would be single threaded web server (asyncore, twistedmatrix)
> > with a select loop talking to a socket, either on port 80 directly, or
> > to a proxy web server running mod_gzip, SSL, and so forth.
> 
> Is this how you would handle concurrency?

Yes, it's a BBS, not a data mining system.  There should be few if any
long-running transactions.  Maybe some occasional complicated requests
would get spun off to a new thread or even just forked off.  The
server would run normal requests to completion before going on to the
next request.

> Also, how bad is using files really?  A decent Unix will use memory
> to cache files, abstracting disk io behind the scenes for you.

Maybe.  Using mmap does avoid a lot of system calls/context switches.



More information about the Python-list mailing list