From owner-freebsd-stable@FreeBSD.ORG Wed Mar 3 23:31:53 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF5CA106566C for ; Wed, 3 Mar 2010 23:31:53 +0000 (UTC) (envelope-from john.marshall@riverwillow.com.au) Received: from mail1.riverwillow.net.au (mail1.riverwillow.net.au [203.58.93.36]) by mx1.freebsd.org (Postfix) with ESMTP id 528BC8FC12 for ; Wed, 3 Mar 2010 23:31:52 +0000 (UTC) Received: from rwpc12.mby.riverwillow.net.au (rwpc12.mby.riverwillow.net.au [172.25.24.168]) (authenticated bits=0) by mail1.riverwillow.net.au (8.14.4/8.14.4) with ESMTP id o23NViGX034986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 4 Mar 2010 10:31:45 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=riverwillow.com.au; s=m1001; t=1267659105; bh=gXaEydPatvXSlz9PBA5BZYJ91rmonVzJPUgiVfhAbio=; h=Date:From:To:Subject:Message-ID:References:Mime-Version: Content-Type:In-Reply-To; b=KoIFG+83SEIWTdC9bI7ILgko8iFbDQASKUZ1qvmtOjc4mUoQRCzpDCUQKJF33piOn tu5k7SC8dp1/8uLrMWA9J+F70CBaAZZH03uTKosv1OcljDYtXXrcT8xNwz/a8wmWzu j6Jd7U/35vqKEY523jfAsxzs74rb4w2vIxHofo5E= Received: from rwpc12.mby.riverwillow.net.au (localhost [127.0.0.1]) by rwpc12.mby.riverwillow.net.au (8.14.3/8.14.3) with ESMTP id o23NVh7P095690 for ; Thu, 4 Mar 2010 10:31:44 +1100 (AEDT) (envelope-from john.marshall@riverwillow.com.au) Received: (from john@localhost) by rwpc12.mby.riverwillow.net.au (8.14.3/8.14.3/Submit) id o23NVfVd095689 for freebsd-stable@freebsd.org; Thu, 4 Mar 2010 10:31:41 +1100 (AEDT) (envelope-from john) Date: Thu, 4 Mar 2010 10:31:41 +1100 From: John Marshall To: freebsd-stable@freebsd.org Message-ID: <20100303233141.GC4420@rwpc12.mby.riverwillow.net.au> Mail-Followup-To: freebsd-stable@freebsd.org References: <20100223013522.GE2303@rwpc12.mby.riverwillow.net.au> <20100224075359.GA61876@server.vk2pj.dyndns.org> <20100224112139.GT50403@deviant.kiev.zoral.com.ua> <20100224114441.GA57760@icarus.home.lan> <20100224122045.GU50403@deviant.kiev.zoral.com.ua> <20100224124101.GC14464@rwpc12.mby.riverwillow.net.au> <20100224163803.GW50403@deviant.kiev.zoral.com.ua> <20100225111407.GE14464@rwpc12.mby.riverwillow.net.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0ntfKIWw70PvrIHh" Content-Disposition: inline In-Reply-To: <20100225111407.GE14464@rwpc12.mby.riverwillow.net.au> User-Agent: Mutt/1.4.2.3i OpenPGP: id=A29A84A2; url=http://pki.riverwillow.net.au/pgp/johnmarshall.asc Subject: Re: sleep(3) sometimes too sleepy on FreeBSD 8.0? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 23:31:54 -0000 --0ntfKIWw70PvrIHh Content-Type: multipart/mixed; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 25 Feb 2010, 22:14 +1100, John Marshall wrote: > Another thing I did was to patch the sendmail build config on another > one of the servers, and rebuild, so that sendmail's sleep() would simply > call FreeBSD's nanosleep(2). I have asked on comp.mail.sendmail if > anyone knows why the sendmail build only enbles use of nanosleep on > Solaris. After checking with jhb@ re appropriate value of __FreeBSD_version for the test, I have submitted a build configuration patch to the sendmail folks so that a sendmail build on FreeBSD >=3D 300000 will use nanosleep(). The patch has been accepted by sendmail and is attached for reference. > SERVER 1 > - FreeBSD 8.0-RELEASE-p2 > - Sendmail 8.14.4 (modified so that sleep() uses nanosleep(2)) >=20 > SERVER 2 > - FreeBSD 8.0-RELEASE-p2 > - Sendmail 8.14.4 >=20 > SERVER 3 > - FreeBSD 8-STABLE > - Sendmail 8.14.4 >=20 > ...and then watch sendmail on all three. One week has elapsed and no queue runners have succumbed to excessive drowsiness. --=20 John Marshall --+HP7ph2BbKc20aGI Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="include_sm_conf.h.diff" --- include/sm/conf.h.orig 2009-06-17 09:41:32.000000000 +1000 +++ include/sm/conf.h 2010-02-27 09:31:33.000000000 +1100 @@ -1014,6 +1014,9 @@ # if __FreeBSD_version >= 222000 /* 2.2.2-release and later */ # define HASSETUSERCONTEXT 1 /* BSDI-style login classes */ # endif /* __FreeBSD_version >= 222000 */ +# if __FreeBSD_version >= 300000 /* 3.0.0-release and later */ +# define HAVE_NANOSLEEP 1 /* has nanosleep(2) */ +# endif /* __FreeBSD_version >= 300000 */ # if __FreeBSD_version >= 330000 /* 3.3.0-release and later */ # ifndef SMRSH_CMDDIR # define SMRSH_CMDDIR "/usr/libexec/sm.bin" --+HP7ph2BbKc20aGI-- --0ntfKIWw70PvrIHh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuO8V0ACgkQw/tAaKKahKIRPACgyJkBCNMupz1+ek2JWkqpoTSc 4WcAoIjve3uqoTgi66GaGxKSxRQQW+Wo =bbmV -----END PGP SIGNATURE----- --0ntfKIWw70PvrIHh--