Oleg Burlaca wrote:
and one more question: I have read that on linux platforms it's better to use prefork instead of mpm-worker, I remember that we did some performance test ourselves and it sounds to be true.
prefork will use a different process for each Apache child and thus a different Perl interpreter for each process. Normally this would mean a lot of memory usage, but since Linux uses COW (copy-on-write) memory as long as you preload you'll actually see about the same memory usage as with worker/threads.
And if you have a multi-core or multi-processor system, having sepeparate processes that know nothing about each other should result in less contention (they aren't sharing internal Perl structures). Plus you don't have to worry about trying to make sure every module you use from CPAN is thread-safe.
-- Michael Peters Plus Three, LP