Date: Wed, 02 Jan 2008 17:00:19 +0100 From: Jose-Marcio Martins da Cruz <Jose-Marcio.Martins@ensmp.fr> To: Vivek Khera <vivek@khera.org> Cc: stable@freebsd.org Subject: Re: building system's libmilter with poll() support? Message-ID: <477BB513.20502@ensmp.fr> In-Reply-To: <10C55115-843B-4275-A876-AA9CB656A519@khera.org> References: <10C55115-843B-4275-A876-AA9CB656A519@khera.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Vivek Khera wrote: > What's the procedure to configure buildworld to get sendmail to build > libmilter using poll() instead of select()? > > There is discussion on the postfix mailing list that some high-load > performance issues could be solved by switching this, but the "fix" was > to hack the libmilter header file to force the appropriate define to be > set, rather than using the sendmail configuration system. This would of > course be difficult to preserve across updates and buildworlds... The canonical way is to define (at devtools/Site/site.config.m4) : dnl To use poll instead of select : APPENDDEF(`conf_libmilter_ENVDEF',`-DSM_CONF_POLL=1') dnl To use a pool of workers instead of one thread per connection APPENDDEF(`conf_libmilter_ENVDEF',`-D_FFR_WORKERS_POOL=1') Note that the second automatically defines the first one. I don't know how to add this to buildworld. Hope this help... -- --------------------------------------------------------------- Jose Marcio MARTINS DA CRUZ http://j-chkmail.ensmp.fr
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?477BB513.20502>