SA Bugzilla – Bug 78
Implement maximum number of children
Last modified: 2002-06-15 03:58:08 UTC
My computer is too slow, OR, spamd uses way too much memory on my P1/100 40MB RAM. It would be great to limit the number of children forked by spamd.
Created attachment 3 [details] Patch implementing maximum number of children
I'm only a bit concerned that this might break BSD with the -m option. However, I believe BSD queues only 5 connections, so it would be unwise to use this option in the first place.
Pending mailing list discussion of sighandler
I think the concensus is the patch breaks *BSD compatibility -- did you hear any suggestions on how to make it better? If not, I think I'll just leave this bug in the DB here and we can refer people to it if they want to limit the number of child processes.
I disagree. There has been no consensus. I'm not convinced anyone has even tested the patch. Read the thread 'Request for testing on BSD / Limiting children for spamd' again. Furthermore, the patch leaves everything the same if the -m option is not given. I'd really like this to be implemented. When I came back from vacation yesterday, all 397 messages from fetchmail were processed without slowing my machine to the point where I couldn't even log in. (as it would have without this)
Ok, well I gave the BSDers a comment period :) If this does cause BSD problems, we'll fix it. For now I'm adding the patch to CVS.