LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-10-2007, 03:17 PM   #1
paintcheck200
Member
 
Registered: Sep 2003
Location: Michigan
Distribution: Gentoo, Knoppix
Posts: 69

Rep: Reputation: 15
amavisd-new performance


I've set max_servers to 10 , and amavisd-nanny shows 10 processes, but 8 always almost seem to be idle

Code:
PID 08961:               0:06:07 .........:.........:.........:.....
PID 08964: 08964-01-18   0:00:01 =
PID 08965: 08965-02-21   0:00:01 =
PID 08967:               0:06:02 .........:.........:.........:.....
PID 08970:               0:06:43 .........:.........:.........:.....
PID 09332:               0:06:07 .........:.........:.........:.....
PID 09333:               0:06:01 .........:.........:.........:.....
PID 09334:               0:06:07 .........:.........:.........:.....
PID 18191:               0:00:58 .........:.........:.........:.....
PID 18435:               0:00:53 .........:.........:.........:.....
I have postfix set to the same
Code:
smtp-amavis   unix      -       -       n       -       10      smtp
   -o smtp_data_done_timeout=1200
   -o disable_dns_lookups=yes
   -o smtpd_client_connection_count_limit=0
   -o smtpd_client_connection_rate_limit=0
I also only ever get 2 showing up in top. It can keep up with my current load, but if it gets back logged, it takes forver to clear the postfix active queue.
Code:
Tasks: 156 total,   2 running, 154 sleeping,   0 stopped,   0 zombie
Cpu(s): 14.2%us,  1.1%sy,  0.0%ni, 83.6%id,  1.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2074112k total,  1582236k used,   491876k free,   290776k buffers
Swap:  1004052k total,        0k used,  1004052k free,   741576k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                   
 9334 amavis    22   0 72020  63m 2824 R   43  3.1   0:06.49 amavisd                                                   
 8967 amavis    15   0 71368  62m 2892 S   11  3.1   0:02.42 amavisd                                                   
 4087 root      15   0  2324 1088  428 S    1  0.1   1:54.83 syslog-ng                                                 
 4668 amavis    15   0  112m  93m 1060 S    0  4.6   1:00.01 clamd                                                     
 1024 root      10  -5     0    0    0 S    0  0.0   0:02.73 kjournald                                                 
 9072 postfix   15   0  4860 1704 1248 S    0  0.1   0:00.54 qmgr                                                      
 9077 postfix   15   0  5020 1900 1460 S    0  0.1   0:00.10 smtpd                                                     
 9643 root      18   0  1784  836  656 S    0  0.0   0:03.06 watch                                                     
 9815 postfix   16   0  5312 2136 1332 S    0  0.1   0:00.10 cleanup                                                   
19080 postfix   15   0  4812 1752 1396 S    0  0.1   0:00.08 smtp                                                      
25761 postfix   15   0  4872 1804 1424 S    0  0.1   0:00.20 smtpd                                                     
30806 root      15   0  2160 1152  844 R    0  0.1   0:00.01 top                                                       
    1 root      15   0  1532  528  460 S    0  0.0   0:01.32 init
ps -ef |grep amavis

Code:
amavis    4668     1  0 14:27 ?        00:01:00 /usr/sbin/clamd
amavis    8941     1  0 16:04 ?        00:00:02 amavisd (master)
amavis    8961  8941  0 16:04 ?        00:00:00 amavisd (ch2-avail)
amavis    8967  8941  0 16:04 ?        00:00:06 amavisd (ch2-08967-02-23)
amavis    8970  8941  0 16:04 ?        00:00:00 amavisd (virgin child)
amavis    9332  8941  0 16:05 ?        00:00:00 amavisd (virgin child)
amavis    9333  8941  0 16:05 ?        00:00:00 amavisd (ch1-avail)
amavis    9334  8941  1 16:05 ?        00:00:12 amavisd (ch1-09334-01-18)
root     13086 12907  0 16:07 pts/5    00:00:00 tail -f /var/log/amavis
amavis   18191  8941  0 16:10 ?        00:00:00 amavisd (virgin child)
amavis   18435  8941  0 16:10 ?        00:00:00 amavisd (virgin child)
postfix  24720  9068  0 16:13 ?        00:00:00 smtp -n smtp-amavis -t unix -u -o smtp_data_done_timeout 1200 -o disable_dns_lookups yes -o smtpd_client_connection_count_limit 0 -o smtpd_client_connection_rate_limit 0
postfix  24815  9068  0 16:13 ?        00:00:00 smtp -n smtp-amavis -t unix -u -o smtp_data_done_timeout 1200 -o disable_dns_lookups yes -o smtpd_client_connection_count_limit 0 -o smtpd_client_connection_rate_limit 0
postfix  28086  9068  0 16:14 ?        00:00:00 smtp -n smtp-amavis -t unix -u -o smtp_data_done_timeout 1200 -o disable_dns_lookups yes -o smtpd_client_connection_count_limit 0 -o smtpd_client_connection_rate_limit 0
amavis   30177  8941  0 16:15 ?        00:00:00 amavisd (virgin child)
amavis   30414  8941  0 16:15 ?        00:00:00 amavisd (virgin child)
root     32406 19811  0 16:16 pts/3    00:00:00 grep --colour=auto amavis

Appreciate any ideas
 
Old 11-27-2007, 11:29 PM   #2
paintcheck200
Member
 
Registered: Sep 2003
Location: Michigan
Distribution: Gentoo, Knoppix
Posts: 69

Original Poster
Rep: Reputation: 15
well, I finally dug back into this tonight, being that my q was backing up and I figured it out, even though I never got a response, thought I'd share incase someone else makes the same silly mistake -

I had
default_destination_concurrency_limit = 2

but what I really needed to do was define this concurrency limit explicitly to match my amount have set in master.cf and amavisd.conf

so I added smtp-amavis_destination_concurrency_limit = 20 and blamo this baby smokes!

Keep in mind this is a dual socket dual core box and I have /var/amavis running n tmpfs (650MB - 30MB x20 plus some room) - I will monitor for any swap hits or issues and add memory if needed
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amavisd question leiw Linux - Server 30 06-04-2007 10:33 AM
amavisd leiw Linux - General 1 05-21-2007 04:14 AM
Do anyone use amavisd with spamassassin? combilli Linux - Software 1 11-13-2006 09:48 PM
amavisd and postfix saavik Linux - Networking 4 10-27-2006 07:10 PM
amavisd-new does not start Ateo Linux - Networking 1 12-28-2004 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration