From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 14 09:03:26 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F4C01065670 for ; Mon, 14 Mar 2011 09:03:26 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 1A2388FC0C for ; Mon, 14 Mar 2011 09:03:25 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p2E93Ir9036600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Mar 2011 11:03:18 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p2E93Ij7055953; Mon, 14 Mar 2011 11:03:18 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p2E93I6P055952; Mon, 14 Mar 2011 11:03:18 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 14 Mar 2011 11:03:18 +0200 From: Kostik Belousov To: Ravi Murty Message-ID: <20110314090318.GG78089@deviant.kiev.zoral.com.ua> References: <201103141230.49277.erich@alogreentechnologies.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vBwLacbGVLp/4r+w" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: "freebsd-hackers@freebsd.org" , Erich Dollansky Subject: Re: SIGSTOP and SIGKILL X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 09:03:26 -0000 --vBwLacbGVLp/4r+w Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 13, 2011 at 11:30:00PM -0700, Ravi Murty wrote: > I haven't, are there specific improvements in this area of the kernel? First, the 8.2, compared to 8.0, changed the mechanism of delivering the process-global signal to a thread. Now, the thread to deliver is selected at the moment of delivery, instead of the moment of post. This was done to close a race where either thread changed signal mask after post, or exited after post, causing signal be undefinitely delayed or ignored, respectively. Second, 8.2 less often stops the threads in the sleep state, more often trying to move the thread to safer user<->kernel boundary, to take a stop. Sleeping thread might indicate the unsafe sleep (from the POV of stopping) by using PBDRY flag to msleep. Both the changes are not directly address the behaviour you described, but they are explicitely in the area of your interest. BTW, it is not clear to me, does the process in the state as you described, able to unwind from the stop state using SIGCONT ? I.e., is it 'weird but recoverable' state, or is it 'weird and unrecoverable' state ? >=20 > On Mar 13, 2011, at 10:30 PM, Erich Dollansky wrote: >=20 > > Hi, > >=20 > > On Monday 14 March 2011 11:41:21 Ravi Murty wrote: > >=20 > >>=20 > >> Any good solutions to this problem? > >=20 > > did you try your program on 8.2? > >=20 > > Erich > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" --vBwLacbGVLp/4r+w Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk192dUACgkQC3+MBN1Mb4h1VwCgxwjjrxGe5lW+RWej+OIAbYc7 oxsAn2kiD6Wj3ldTS/DJvfZDS/rJ0Cxo =6l8B -----END PGP SIGNATURE----- --vBwLacbGVLp/4r+w--