At 23:00 -0500 10-03-2004, Justin Baugh, KSC wrote:
Hello,

This sounds like a very newbie-ish question, so I apologize in advance.

I am running qmail-scanner / qmail / et al on a very large box (Dual Xeon 2.4ghz, 2gb RAM) which should be able to handle many, many connections. I am running FreeBSD 5.1.

I am hitting a limit that I can't detect: tcpserver/qmail-scanner start starts saying they can't fork. Using truss to attach to one of the processes, I see that qmail-scanner is sitting there doing vfork/nanosleep over and over and over, always getting "Resource temporarily unavailable". Once the processes get into this state, they don't ever get out of it, and it seems to build up over time (??) - i.e. more and more forking errors until everything is hosed.

At the moment I'm not even using softlimit in the qmail startup script in order to eliminate it as a cause. tcpserver is set to allow 60 concurrent qmail processes; the problems start to occur at about 35-40 processes. At the moment there are no set limits on resource consumption for tcpserver or its children - at least not ones that I am setting!

I've checked kern.maxproc, kern.maxfiles, kern.maxfilesperproc, kern.maxprocperuid, etc. I've also looked at kern.somaxconn, etc, mostly just shooting in the dark. All of these are at sane limits and I am nowhere near the limits on open files or number of processes. I've also checked the kernel max datasize (kern.maxdsize), etc etc.

Is there something I am missing? Could spamd be causing the problem?

How many children process has spamd (-m option)? You could test setting 50 concurrency incoming connections in tcpserver and 52 for spamd.


From man spamd:

-m number, --max-children=number
Specify a maximum number of children to spawn. Spamd will wait until another child finishes before forking again. Meanwhile, incoming connections will be queued.


Please note that there is a OS specific maximum of connections that can be queued (Try perl -MSocket -e'print SOMAXCONN' to find this maximum). Also, this option causes spamd to create an extra pipe for each child.


Cheers


Salvatore


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to