[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Limiting Child Processes - SpamAssassin



BruceG wrote:
      I think this was answered on this list a few weeks ago, but as usual,
my attention was elsewhere. Anyway - is there a way to limit the number of
child processes SpamAssassin can spawn?

      I am running fetchmail, exim4-heavy-daemon and ClamAV. I had
SpamAssasin running, but my PC started thrashing on heavier volumes of
e-mail. (my PC could handle a couple e-mails with both ClamAV and SA, but
had constant disk io and I was unable to ssh to it when going through larger
volumes of e-mail).

I solved the same problem on my system in my exim3 configuration:

----- /etc/exim.conf -----
# When this option is set, no message deliveries are ever done if the
# system load average is greater than its value, except for deliveries
# forced with the -M option. If deliver_queue_load_max is not set and
# the load gets this high during a queue run, the run is abandoned.
# There are some operating systems for which Exim cannot determine the
# load average (see chapter 1); for these this option has no effect.

deliver_load_max = 4

# If the system load average is higher than this value, all incoming
# messages are queued, and no automatic deliveries are started. If this
# happens during local or remote SMTP input, all subsequent messages on
# the same connection are queued. Deliveries will subsequently be
# performed by queue running processes, unless the load is higher than
# deliver_load_max. There are some operating systems for which Exim
# cannot determine the load average (see chapter 1); for these this
# option has no effect. See also smtp_accept_queue and
# smtp_load_reserve.

queue_only_load = 4
-----

I assume there would be similar settings for exim4. This helps regardless of what's driving up the system load. Adjust values to keep your system happy.

Randy



Reply to: