From owner-freebsd-stable@FreeBSD.ORG Tue Feb 23 21:13:11 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 BF5011065672 for ; Tue, 23 Feb 2010 21:13:11 +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 5B2E48FC1B for ; Tue, 23 Feb 2010 21:13:10 +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 o1NLD7oW076274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 24 Feb 2010 08:13:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=riverwillow.com.au; s=m1001; t=1266959587; bh=P5mF0Ey53DKfzr3baN0EYemKqsvYgna+UP8H8IHoCuo=; h=Date:From:To:Subject:Message-ID:References:Mime-Version: Content-Type:In-Reply-To; b=rdl/vsU7lZxEsItzmI8DQOghACyEALTzIGRhVkwXgVW87CjJ5NBZG0V405Ld1OpQR F9vlAwZ6y44EXza5XNMHmPkL5GFWX9Jt61oMeMCpe89iFZOc09GrHPLV3P7JEinrb1 E0KwMXA/3hJWs7srwF5Cus/7Jy238qBIBcXJvivI= 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 o1NLD6bH012858 for ; Wed, 24 Feb 2010 08:13:06 +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 o1NLD6dl012857 for freebsd-stable@freebsd.org; Wed, 24 Feb 2010 08:13:06 +1100 (AEDT) (envelope-from john) Date: Wed, 24 Feb 2010 08:13:06 +1100 From: John Marshall To: freebsd-stable@freebsd.org Message-ID: <20100223211306.GI2303@rwpc12.mby.riverwillow.net.au> Mail-Followup-To: freebsd-stable@freebsd.org References: <20100223013522.GE2303@rwpc12.mby.riverwillow.net.au> <20100223093616.GO50403@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9Ek0hoCL9XbhcSqy" Content-Disposition: inline In-Reply-To: <20100223093616.GO50403@deviant.kiev.zoral.com.ua> 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: Tue, 23 Feb 2010 21:13:11 -0000 --9Ek0hoCL9XbhcSqy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 23 Feb 2010, 11:36 +0200, Kostik Belousov wrote: > On Tue, Feb 23, 2010 at 12:35:22PM +1100, John Marshall wrote: > > Environment: sendmail 8.14.4 on FreeBSD 8.0-RELEASE-p2 > >=20 > > Since upgrading a few local servers to FreeBSD 8.0-RELEASE (and > > subsequently 8.0-RELEASE-p2), I have been seeing VERY intermittent > > problems with sendmail persistent queue runners. One or more queue > > runners will fail to wake up (having been told to sleep for either 1 or > > 5 seconds) and mail accumulates in their queue group queues. > >=20 > > I have only seen this about 4 times but at least once on each of the > > three 8.0 servers. I've been seeing something like one occurrence per > > fortnight overall. The first few times I re-started sendmail. On > > Saturday I spent longer looking at it. >=20 > I think the best way to collect the data would be ktrace the queue runner= s, > preferrably starting the ktrace before they are stuck. OK. I've caught one of them (different server from Saturday). PID TT STAT TIME COMMAND 48501 ?? Ss 0:14.77 sendmail: accepting connections (sendmail) 48502 ?? S 1:00.24 sendmail: running queue: /var/spool/mqueue/qd1/df= (sendmail) 48503 ?? S 0:38.11 sendmail: running queue: /var/spool/mqueue/mby/df= (sendmail) 48504 ?? I 0:27.34 sendmail: running queue: /var/spool/mqueue/oz/df = (sendmail) 48505 ?? S 0:37.59 sendmail: running queue: /var/spool/mqueue/rw2/df= (sendmail) 48506 ?? S 0:34.93 sendmail: running queue: /var/spool/mqueue/hold/d= f (sendmail) My ktrace file was created with 'ktrace -g 48501'. I have the result of 'kdump -R -p 48504' available at: The affected queue group was empty. I have redirected messages for that domain to a different queue group so that I can leave that queue runner stuck. --=20 John Marshall --9Ek0hoCL9XbhcSqy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuEROIACgkQw/tAaKKahKKSWgCcDNneP07yDQBrWMjQENXgajSw 5O0AnjwZvc8wqLZ4MMKqD6dLZVpPqRQ4 =8gY4 -----END PGP SIGNATURE----- --9Ek0hoCL9XbhcSqy--