Mark Martinec ha scritto: > Giuseppe, > > >> I was wondering whether it would be possible to add in amavisd-agent >> more statistical output about performances. E.g. the number of messages >> per seconds achievable in a certain period of time, >> > > You alerady have it: InMsgs gives a number of messages received > by amavisd, and its hourly mail rate. To measure a peak througput > with a given number of child processes, pause a MTA queue for > a while so that some mail accumulates in the queue, then restart > amavisd, flush the queue, and by the time a queue dries out > see what the InMsgs mail rate is. > > >> or the average size of a message, etc.; >> > > You already have it: > > InMsgsSize 2151MB 130MB/h 100.0 % (InMsgsSize) > InMsgsSizeInbound 1370MB 83MB/h 63.7 % (InMsgsSize) > InMsgsSizeInternal 303MB 18MB/h 14.1 % (InMsgsSize) > InMsgsSizeOutbound 568MB 34MB/h 26.4 % (InMsgsSize) >
Well, amavisd also process all the mails so maybe more statistic could be useful to be shown directly (or maybe for getting processed later by some MRTG tools), without having to take an handy calculator (e.g. taking the total number of MsgSize and divide by the number of messages) :-) >> I also obtain strange values for this parameter. E.g. I get a value of >> 7-8 s/msg, mostly taken in TimeElapsedSpamCheck >> (which means around 0.1 msgs/s). >> > > This arithmetic would only be valid if you only used one amavisd > child process. As usually there are dozens, especially on a > multiprocessor host, parallelism must be taken into account, > so mail rate would be about TimeElapsedTotal / $max_servers > during times when all child processes are busy. > well, yep, it could be reasonable also to take into account the number of servers running. Bye Giuseppe. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/