Sorry to quote the whole thing, but:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> "Owen McShane" writes:
> >Hi,
> >
> >we are using SA 2.63 on Solaris 7 for sparc, with perl 5.8.0 and exim 4.04 
> >This is with spamc/spamd.
> >
> >This is for our internal staff mail server, which receives a lot of spam.
> >
> >So far SA is only scanning mail for a handful of users, but we have found 
> >the load placed on the server to be quite high.
> >
> >We have tried to get around this by using spamd -m 10 to limit the max 
> >number of children to 10.
> >
> >My understanding of this is that once this limit is reached, the remaining 
> >mails are queued until a child process is freed up.
> >
> >The number of queued mails depends on the (OS specific) value of SOMAXCONN
> >
> >On Solaris, this value appears to be '5'(?!), as defined in 
> >/usr/include/sys/socket.h
> >
> ># perl -MSocket -e'print SOMAXCONN'
> >5# 
> >
> >Whereas on Redhat Linux 9, it is 128:
> >
> >[EMAIL PROTECTED] owen]$ perl -MSocket -e'print SOMAXCONN'
> >128
> >
> >Obviously Solaris is quite capable of handling more open sockets than 5, so 
> >my question is does spamd actually use the value returned by perl? Should it 
> >not use some other variable?
> 
> Hi Owen --
> 
> I'm pretty sure it's easy enough to increase this value, using
> either ulimit or a kernel parameter.  can't remember how, though ;)

> 

I've been looking into this for a while now, and it would seem that it is not 
that tunable.

Can any SA developers tell me if spamd will actually start freaking out after 
it's queued 5 connections over the max-children limit?

If it does, would replacing all references to SOMAXCONN in spamd with a 
pre-defined variable (1024 say) be adhered to?

Thanks,

Owen

--
 Via Net.Works UK Ltd
 Local Touch Global Reach 
 Owen McShane                   Systems Administrator
 http://www.vianetworks.co.uk   Tel +44 (0)1925 484444

Reply via email to