Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2010 22:14:07 +1100
From:      John Marshall <john.marshall@riverwillow.com.au>
To:        freebsd-stable@freebsd.org
Subject:   Re: sleep(3) sometimes too sleepy on FreeBSD 8.0?
Message-ID:  <20100225111407.GE14464@rwpc12.mby.riverwillow.net.au>
In-Reply-To: <20100224163803.GW50403@deviant.kiev.zoral.com.ua>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100225111407.GE14464>