[Mimedefang] Mulitplexor and File Descriptor Errors
David F. Skoll
dfs at roaringpenguin.com
Mon Aug 21 10:16:24 EDT 2006
Jonog Kim wrote:
> Hello. I'm running into a problem with the multiplexor and file
> descriptors. We seem to be having an issue with 1024 FD's on parent
> md-multi pid is reach and it crashes and generated these erorrs.
You can't use more than 1024 file descriptors in select() without recompiling
your C library and kernel, unfortunately. :-(
> We tried to do a ulimit -n 2048 before running this command via sv
> user which happens to be sv. SV was setup with noshell and nologin.
> We even setup a shell, did a ulimit -n 2048 and try to run the
> multiplexor.
Won't help; FD_SETSIZE is hard-coded at 1024.
> Has anyone seen this? If so, then what is a solution I can try?
There is no solution, other than rewriting mimedefang-multiplexor to
use poll() instead of select(). I don't understand why each slave
is using 5 descriptors, though; it should only be 3/slave.
Regards,
David.
More information about the MIMEDefang
mailing list