Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel
libmilter's workers pool in clamav-milter
 

Index | Next | Previous | View Flat


ew-reg at mailbox

Dec 15, 2007, 2:37 PM


Views: 987
Permalink
libmilter's workers pool in clamav-milter

Good evening,

version:
libmilter - sendmail-8.14.2
clamav-milter - clamav-0.91.2


If you configure libmilter library with using poll() rather than
select() and use workers pool you might hit problem related with locking
up your clamav-milter.

To reproduce this kind of behavior you should ran clamav-milter in 32
bit mode, lower max-children and set timeout to some rather high value.
When number of simultaneous connections exceed max children then every
new connection will equal one thread. Going step further, when threads
allocate all virtual memory available for clamav-milter workers from
libmilter will not have space to execute (clamav-milter: LAUNCH_WORKER
error: Cannot allocate memory).

Daemon clamav-milter will not answer with temporary error but will
keep going with blocking threads/connections.

How to solve this kind of problem? Does not clamav-milter is prepare for
workers from libmilter?

Most interesing is how to limit clamav-milter's resource based on thre-
ads. In described situation number of threads are not equal number of
connections, limiting it with dont-wait threads is not a good idea.
Maybe there is a way to limit numbers of threads that workers can
consume?

Best regards,
Ernest Wypierowski
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Subject User Time
libmilter's workers pool in clamav-milter ew-reg at mailbox Dec 15, 2007, 2:37 PM
    Re: libmilter's workers pool in clamav-milter Jose-Marcio.Martins at ensmp Dec 16, 2007, 12:49 AM
        Re: libmilter's workers pool in clamav-milter Jose-Marcio.Martins at ensmp Dec 16, 2007, 2:25 AM
            Re: libmilter's workers pool in clamav-milter ew-reg at mailbox Dec 16, 2007, 3:53 AM
                Re: libmilter's workers pool in clamav-milter Jose-Marcio.Martins at ensmp Dec 16, 2007, 5:05 AM
                Re: libmilter's workers pool in clamav-milter Jose-Marcio.Martins at ensmp Dec 28, 2007, 1:15 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.