Paul,

> My point is that mail still seems to flow, and I'm still getting log
> messages (i.e. from postfix and imapd).  Everything seems to be working,
> except for the logging from amavisd (I even get new quarantined messages).
>
> Other ideas?  I really think this is a perl/syslog issue, and I hope there
> is a better solution than what I'm trying.

The 2.5.1-pre1 brings a refinement of the syslog patch I sent
on Monday. If you have a chance, I'd be interested to know
if it solves the problem.

One indicator of syslog contention is the new counter of
syslog retries. The utility amavisd-agent now shows three
additional indicators. On a busy syslogd, bombarded with
log level 5 logging, it may show something like:

  LogLines          4458915 716900/h 40112.6 % (InMsgs)
  LogRetries            244     39/h     2.2 % (InMsgs)
  ...
  TimeElapsedLogSleep    64 s      0.006 s/msg (InMsgs)

which tells there are about 400 syslog writes (at log level 5)
for each message on the average, that there were 39 retries
per hour on the average, and that the sleeps before each retry
took 6 ms of inactivity per message on the average.

At log level 2 or above, grepping the log for 'Logged after'
and 'Syslog failure' would also tell the reason for a retry.

The relevant text from release notes:

- modified syslog writing to check the (undocumented) status in errno
  after calling Unix::Syslog::syslog, and to retry a couple of times
  in case of a failure;  this should prevent or at least minimize loss
  of logged messages after syslogd daemon is restarted; unfortunately
  the system routine syslog(3) returns no value according to documentation,
  so its completion status can not be tested; problem reported by Paul;

- collect and report statistics on logging, amavisd-agent now also reports:
    LogLines    ... number of calls to syslog or direct writes to a log file
    LogRetries  ... number of times a failed syslog call needed to be retried
    TimeElapsedLogSleep  ... elapsed time in sleep between syslog retries


Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to