Re: [Exim] exim performance

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Alexander V Alekseev
Dátum:  
Címzett: Paulo Henrique Baptista de Oliveira
CC: exim-users
Tárgy: Re: [Exim] exim performance
        Hello!

On Wed, 23 Oct 2002, Paulo Henrique Baptista de Oliveira wrote:

> --
>     Hi all,
>     I want to run Exim for a great number of messages/day (1 Milion or more)
> in a i386 machine.
>     I installed Exim 3.35 in a Debian GNU/Linux woody server.
>     The following are the specs(cpu, mem and bogomips):

>
> model name      : Intel(R) Pentium(R) 4 CPU 1.70GHz
> cpu MHz         : 1715.328
> bogomips        : 3420.97
> free
>              total       used       free     shared    buffers     cached
> Mem:        254972     248740       6232          0      28044     205508
> -/+ buffers/cache:      15188     239784
> Swap:       506008          0     506008

>
>     Exim is configured without any tweaks.
>     We wrote an small C program to send 200 messages through Exim.

>
>     ./test
> Wed Oct 23 04:11:11 BRST 2002
> Wed Oct 23 04:11:49 BRST 2002

>
>     The program indicates that Exim can handle only 5 mes/sec! ;(
> (200 mes/40s).
>     This is so bad.
>     What I can do to improve this number?
>     I' m atacching the exim.conf too.
>     Much thanks,        Paulo Henrique


    Just like my testing configuration. The only difference, I used
latest exim-4.10 (btw: why did you use 3.35?). My testing program was
written on expect. So, a few ideas:


1. Exim spawns new process very often. So, you need enough memory. I
suppose, you should start with 1Gb. (In my case, each exim eats about
8Mb RAM).

2. Mail goes in parallel. So, you should be able to accept it and
deliver. May be you should increase queue_run_max (default 5, I suppose
something like 100 should be reasonable).

3. Exim enques mail much faster, than delivers. (I suppose, about 3
times). So, you need to benchmark delivery speed and enqueue speed.

4. When testing, do parallel SMTP delivery. I tried 20 parallel requests
per 500 e-mail each. This shows better speed.

5. With 4.10 I could do up to 90 enques/30 deliveries per second. But
not more. CGP does about 1000 enques and 100 deliveries on such hardware.
It looks strange.


        Bye. Alex.