From owner-freebsd-stable@FreeBSD.ORG Thu Feb 25 11:14:16 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 E204C106564A for ; Thu, 25 Feb 2010 11:14:15 +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 657C18FC13 for ; Thu, 25 Feb 2010 11:14:14 +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 o1PBE9WA005372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Feb 2010 22:14:10 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=riverwillow.com.au; s=m1001; t=1267096451; bh=N0LylPl8xeArgruYFAYt/0oOJj2fmPIuptGHh56RA9U=; h=Date:From:To:Subject:Message-ID:References:Mime-Version: Content-Type:In-Reply-To; b=kS90JQbLm586PuldNxrcIcQ4yMW8j6q7wMq1f5fP0mOOsd5/qInq7qylkuqNPjJFY Vsql8NZMLb4IwEushBRGypHjQx1WJVwdQWykCkhE/3SVmvru1OugoQKoEYWBzqXrKN pU9EiLp4Z7UfdalXPd2i/eW8TRrvKICL2V42UaOk= 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 o1PBE9F0020887 for ; Thu, 25 Feb 2010 22:14:09 +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 o1PBE7xD020886 for freebsd-stable@freebsd.org; Thu, 25 Feb 2010 22:14:07 +1100 (AEDT) (envelope-from john) Date: Thu, 25 Feb 2010 22:14:07 +1100 From: John Marshall To: freebsd-stable@freebsd.org Message-ID: <20100225111407.GE14464@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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hQiwHBbRI9kgIhsi" Content-Disposition: inline In-Reply-To: <20100224163803.GW50403@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: Thu, 25 Feb 2010 11:14:16 -0000 --hQiwHBbRI9kgIhsi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 24 Feb 2010, 18:38 +0200, Kostik Belousov wrote: > I would be interested if you tried latest RELENG_8 kernel, in regard > the sigsuspend(2) returning with EINTR without a signal delivered. I have just finished building RELENG_8 from a fresh csup on one of the three servers: I plan to isntall it in the morning (bed time now). 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. SLEEPING (HAPPY) QUEUE RUNNER - 8.14.4 Build on FreeBSD 8.0 (gdb) bt #0 0x2833f6eb in sigsuspend () from /lib/libc.so.7 #1 0x2833e050 in sigpause () from /lib/libc.so.7 #2 0x28334fae in pause () from /lib/libc.so.7 #3 0x080cc975 in sleep () #4 0x08099d96 in run_work_group () #5 0x0809a016 in runqueue () #6 0x08055379 in main () SLEEPING (HAPPY) QUEUE RUNNER - 8.14.4 Hacked Build on FreeBSD 8.0 (gdb) bt #0 0x283c43f7 in nanosleep () from /lib/libc.so.7 #1 0x080cbf7a in sleep () #2 0x08099c81 in run_work_group () #3 0x08099eef in runqueue () #4 0x080553bd in main () After the RELENG_8 upgrade in the morning I expect to have: SERVER 1 - FreeBSD 8.0-RELEASE-p2 - Sendmail 8.14.4 (modified so that sleep() uses nanosleep(2)) SERVER 2 - FreeBSD 8.0-RELEASE-p2 - Sendmail 8.14.4 SERVER 3 - FreeBSD 8-STABLE - Sendmail 8.14.4 =2E..and then watch sendmail on all three. --=20 John Marshall --hQiwHBbRI9kgIhsi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuGW38ACgkQw/tAaKKahKJy3ACePsm4NlStNnPKRndix/2QwPHI zJkAn04aPzPFqgngfb54U8ZDrurOx9fh =G1wx -----END PGP SIGNATURE----- --hQiwHBbRI9kgIhsi--