At 04:51 PM 08-02-2001 +0000, Mark Delany wrote:
>it). I rediscovered that a concurrency of 1,000 qmail-remotes consumes
>very little system resource on FreeBSD.
What do we gain by multithreading?
The design of qmail will theoretically result in more latency e.g. process
1 forking and exec'ing process 2 which execs process 3 and so on.
Also there's less shareable memory that way. However the gain in
simplicity, security and robustness is worth it, especially since the
processes are very small making these nonissues in most cases and
especially for email. Also most other email servers aren't even close to
performing at that level in the first place :).
I can see how it will be an issue for web servers though.
Still if we start putting fat processes (a perl checkmail for instance) in
the typical qmail process pipeline it could get ugly. Or do anything which
needs a long startup time (make db connections).
Cheerio,
Link.