From owner-freebsd-stable@FreeBSD.ORG Wed Jan 2 16:20:55 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A81AF16A41B for ; Wed, 2 Jan 2008 16:20:55 +0000 (UTC) (envelope-from Jose-Marcio.Martins@ensmp.fr) Received: from cascavel.ensmp.fr (cascavel.ensmp.fr [194.214.158.227]) by mx1.freebsd.org (Postfix) with ESMTP id 3DF6713C447 for ; Wed, 2 Jan 2008 16:20:55 +0000 (UTC) (envelope-from Jose-Marcio.Martins@ensmp.fr) Received: from localhost.localdomain (joe.j-chkmail.org [82.226.38.60]) (authenticated bits=0) by cascavel.ensmp.fr (8.14.0/8.14.0/JMMC-23/Mar/2006) with ESMTP id m02G0J1k020601 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Jan 2008 17:00:20 +0100 (MET) Message-ID: <477BB513.20502@ensmp.fr> Date: Wed, 02 Jan 2008 17:00:19 +0100 From: Jose-Marcio Martins da Cruz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071202 Fedora/1.1.7-1.fc7 SeaMonkey/1.1.7 MIME-Version: 1.0 To: Vivek Khera References: <10C55115-843B-4275-A876-AA9CB656A519@khera.org> In-Reply-To: <10C55115-843B-4275-A876-AA9CB656A519@khera.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at cascavel with ID 477BB513.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-j-chkmail-Score: MSGID : 477BB513.000 on cascavel : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 Cc: stable@freebsd.org Subject: Re: building system's libmilter with poll() support? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jose-Marcio.Martins@ensmp.fr List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2008 16:20:55 -0000 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