From owner-freebsd-threads@FreeBSD.ORG Mon May 15 11:03:12 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31B7E16A401 for ; Mon, 15 May 2006 11:03:12 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA4B543D48 for ; Mon, 15 May 2006 11:03:11 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4FB3BRx075414 for ; Mon, 15 May 2006 11:03:11 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4FB3Axu075408 for freebsd-threads@freebsd.org; Mon, 15 May 2006 11:03:10 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 15 May 2006 11:03:10 GMT Message-Id: <200605151103.k4FB3Axu075408@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 11:03:12 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2005/01/26] threads/76690threads fork hang in child for (-lc_r & -lthr) 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/07/18] kern/20016 threads pthreads: Cannot set scheduling timer/Can s [2001/01/20] threads/24472threads libc_r does not honor SO_SNDTIMEO/SO_RCVT s [2001/01/25] threads/24632threads libc_r delicate deviation from libc in ha o [2001/01/25] kern/24641 threads pthread_rwlock_rdlock can deadlock s [2001/11/26] bin/32295 threads pthread dont dequeue signals s [2002/02/01] threads/34536threads accept() blocks other threads o [2002/05/25] kern/38549 threads the procces compiled whith pthread stoppe s [2002/06/27] threads/39922threads [threads] [patch] Threaded applications e o [2002/08/04] kern/41331 threads Pthread library open sets O_NONBLOCK flag s [2003/03/02] threads/48856threads Setting SIGCHLD to SIG_IGN still leaves z s [2003/03/10] threads/49087threads Signals lost in programs linked with libc s [2004/03/15] kern/64313 threads FreeBSD (OpenBSD) pthread implicit set/un o [2004/08/26] threads/70975threads unexpected and unreliable behaviour when o [2004/10/05] threads/72353threads Assertion fails in /usr/src/lib/libpthrea o [2004/10/07] threads/72429threads threads blocked in stdio (fgets, etc) are o [2004/10/21] threads/72953threads fork() unblocks blocked signals w/o PTHRE o [2004/12/19] threads/75273threads FBSD 5.3 libpthread (KSE) bug o [2004/12/21] threads/75374threads pthread_kill() ignores SA_SIGINFO flag s [2005/01/26] threads/76694threads fork cause hang in dup()/close() function p [2005/03/10] threads/78660threads Java hangs unkillably in STOP state after o [2005/04/08] threads/79683threads svctcp_create() fails if multiple threads o [2005/04/28] threads/80435threads panic on high loads o [2005/05/19] threads/81258threads Thread specific data is sometimes assigne o [2005/07/22] threads/83914threads [libc] popen() doesn't work in static thr s [2005/08/02] threads/84483threads problems with devel/nspr and -lc_r on 4.x o [2005/08/20] threads/85160threads [libthr] [patch] libobjc + libpthread/lib p [2005/11/19] threads/89262threads [kernel] [patch] multi-threaded process h o [2005/12/12] threads/90278threads libthr, ULE and -current produces >100% W o [2006/01/03] kern/91266 threads [threads] Trying sleep, but thread marked s [2006/03/15] threads/94467threads send(), sendto() and sendmsg() are not co 30 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2000/06/13] kern/19247 threads uthread_sigaction.c does not do anything s [2000/10/21] kern/22190 threads A threaded read(2) from a socketpair(2) f s [2001/09/09] threads/30464threads pthread mutex attributes -- pshared s [2002/05/02] threads/37676threads libc_r: msgsnd(), msgrcv(), pread(), pwri s [2002/07/16] threads/40671threads pthread_cancel doesn't remove thread from s [2004/07/13] threads/69020threads pthreads library leaks _gc_mutex o [2004/09/21] threads/71966threads Mlnet Core Dumped : Fatal error '_pq_inse o [2004/11/21] threads/74180threads KSE problem. Applications those riched ma o [2005/04/13] threads/79887threads [patch] freopen() isn't thread-safe o [2005/05/13] threads/80992threads abort() sometimes not caught by gdb depen o [2005/05/26] threads/81534threads [libc_r] [patch] libc_r close() will fail 11 problems total. From owner-freebsd-threads@FreeBSD.ORG Wed May 17 08:20:14 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FDA316A405 for ; Wed, 17 May 2006 08:20:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5212143D45 for ; Wed, 17 May 2006 08:20:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4H8KEmG068554 for ; Wed, 17 May 2006 08:20:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4H8KEdQ068553; Wed, 17 May 2006 08:20:14 GMT (envelope-from gnats) Date: Wed, 17 May 2006 08:20:14 GMT Message-Id: <200605170820.k4H8KEdQ068553@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: David Xu Cc: Subject: Re: threads/78660: Java hangs unkillably in STOP state after fork() X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Xu List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 08:20:14 -0000 The following reply was made to PR threads/78660; it has been noted by GNATS. From: David Xu To: bug-followup@freebsd.org, thomas.lange@techunity.de Cc: Subject: Re: threads/78660: Java hangs unkillably in STOP state after fork() Date: Wed, 17 May 2006 16:10:19 +0800 --nextPart2929417.852CmX9nJ8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Can you try 6.1-RELEASE ? David Xu --nextPart2929417.852CmX9nJ8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBEatp30t+1uH1kynoRAuZOAKCLT19mAKI/gty2XIceq4xZYEtj1ACeOMpL dfJbIsvkE6IRc5qh4Yh79GM= =XSuJ -----END PGP SIGNATURE----- --nextPart2929417.852CmX9nJ8-- From owner-freebsd-threads@FreeBSD.ORG Wed May 17 23:47:46 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CD6316B14D; Wed, 17 May 2006 23:47:46 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26C4B43D45; Wed, 17 May 2006 23:47:46 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4HNlje3031600; Wed, 17 May 2006 23:47:45 GMT (envelope-from davidxu@freefall.freebsd.org) Received: (from davidxu@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4HNljxf031596; Wed, 17 May 2006 23:47:45 GMT (envelope-from davidxu) Date: Wed, 17 May 2006 23:47:45 GMT From: David Xu Message-Id: <200605172347.k4HNljxf031596@freefall.freebsd.org> To: thomas.lange@techunity.de, davidxu@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/78660: Java hangs unkillably in STOP state after fork() X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 23:47:46 -0000 Synopsis: Java hangs unkillably in STOP state after fork() State-Changed-From-To: patched->closed State-Changed-By: davidxu State-Changed-When: Wed May 17 23:47:04 UTC 2006 State-Changed-Why: Originator said he can not reproduce it on 6.0-RELEASE. http://www.freebsd.org/cgi/query-pr.cgi?pr=78660 From owner-freebsd-threads@FreeBSD.ORG Sat May 20 01:36:05 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from localhost.my.domain (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id B311016A425 for ; Sat, 20 May 2006 01:36:04 +0000 (UTC) (envelope-from davidxu@freebsd.org) From: David Xu To: freebsd-threads@freebsd.org Date: Sat, 20 May 2006 09:35:54 +0800 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605200935.54828.davidxu@freebsd.org> Subject: optimize msleep with PCATCH flag X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2006 01:36:05 -0000 Hi, Here is a patch to reduce overhead when PCATCH flag is set for msleep. http://people.freebsd.org/~davidxu/patch/PCATCH_optimize.patch I use SUN's mutex ping-pong program to test it, source code is here: http://people.freebsd.org/~davidxu/bench/pp.c I have tested it on a dual PIII machine, with command: ./pp -v -s system -n 4 Here is the result before and after the patch: x plain_PCATCH.txt + PCATCH_optimized.txt +--------------------------------------------------------------------------+ |+ + + x ++ +* xx x x * x| | |__________________A__|M___________M_|______________| | +--------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 8 35311 41714 37750.5 38101 1954.5673 + 8 32191 39802 36179 35670.125 2401.755 Difference at 95.0% confidence -2430.88 +/- 2348.35 -6.38008% +/- 6.1635% (Student's t, pooled s = 2189.61) David Xu From owner-freebsd-threads@FreeBSD.ORG Sat May 20 01:49:55 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D24E16A428; Sat, 20 May 2006 01:49:55 +0000 (UTC) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B5B43D45; Sat, 20 May 2006 01:49:55 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.23.205]) ([10.251.23.205]) by a50.ironport.com with ESMTP; 19 May 2006 18:49:55 -0700 Message-ID: <446E75C2.4080305@elischer.org> Date: Fri, 19 May 2006 18:49:54 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Xu References: <200605200935.54828.davidxu@freebsd.org> In-Reply-To: <200605200935.54828.davidxu@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: optimize msleep with PCATCH flag X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2006 01:49:55 -0000 David Xu wrote: >Hi, > >Here is a patch to reduce overhead when PCATCH flag is set >for msleep. >http://people.freebsd.org/~davidxu/patch/PCATCH_optimize.patch > >I use SUN's mutex ping-pong program to test it, source code >is here: http://people.freebsd.org/~davidxu/bench/pp.c > >I have tested it on a dual PIII machine, with command: >./pp -v -s system -n 4 > >Here is the result before and after the patch: > >x plain_PCATCH.txt >+ PCATCH_optimized.txt >+--------------------------------------------------------------------------+ >|+ + + x ++ +* xx x x * x| >| |__________________A__|M___________M_|______________| | >+--------------------------------------------------------------------------+ > N Min Max Median Avg Stddev >x 8 35311 41714 37750.5 38101 1954.5673 >+ 8 32191 39802 36179 35670.125 2401.755 >Difference at 95.0% confidence > -2430.88 +/- 2348.35 > -6.38008% +/- 6.1635% > (Student's t, pooled s = 2189.61) > >David Xu >_______________________________________________ >freebsd-threads@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-threads >To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" > > looks like you need to do a lot more samples to get a better error value.. (8 may not be enough) From owner-freebsd-threads@FreeBSD.ORG Sat May 20 03:12:31 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from localhost.my.domain (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 19F5616A437; Sat, 20 May 2006 03:12:31 +0000 (UTC) (envelope-from davidxu@freebsd.org) From: David Xu To: Julian Elischer Date: Sat, 20 May 2006 11:12:21 +0800 User-Agent: KMail/1.8.2 References: <200605200935.54828.davidxu@freebsd.org> <446E75C2.4080305@elischer.org> In-Reply-To: <446E75C2.4080305@elischer.org> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200605201112.21415.davidxu@freebsd.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: optimize msleep with PCATCH flag X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2006 03:12:31 -0000 On Saturday 20 May 2006 09:49, Julian Elischer wrote: > looks like you need to do a lot more samples to get a better error > value.. (8 may not be enough) Is 40 enough ? this time, the system runs in single user mode, so any noise is eliminated. x plain_PCATCH.st + PCATCH_optimized.st +--------------------------------------------------------------------------+ | + | | + + | | + + | | + + x x | | + ++++ + x xx | | ++++++++++ + xx x xxxxx x | |+ +++++++++++++ + x xxx+xxxxxxxxx xxx x x xxx xx x x x| | |____A____| |_______M____A___________| | +--------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 40 31199 38404 32691.5 33376.775 1740.5576 + 40 28245 31794 29300.5 29380.8 649.64192 Difference at 95.0% confidence -3995.98 +/- 584.857 -11.9723% +/- 1.75229% (Student's t, pooled s = 1313.69) From owner-freebsd-threads@FreeBSD.ORG Sat May 20 18:01:08 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBB4116A486; Sat, 20 May 2006 18:01:08 +0000 (UTC) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id B135443D6A; Sat, 20 May 2006 18:00:57 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [192.168.2.2]) ([10.251.60.15]) by a50.ironport.com with ESMTP; 20 May 2006 11:00:42 -0700 Message-ID: <446F5948.8040508@elischer.org> Date: Sat, 20 May 2006 11:00:40 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Xu References: <200605200935.54828.davidxu@freebsd.org> <446E75C2.4080305@elischer.org> <200605201112.21415.davidxu@freebsd.org> In-Reply-To: <200605201112.21415.davidxu@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: optimize msleep with PCATCH flag X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2006 18:01:09 -0000 David Xu wrote: >On Saturday 20 May 2006 09:49, Julian Elischer wrote: > > >>looks like you need to do a lot more samples to get a better error >>value.. (8 may not be enough) >> >> > >Is 40 enough ? this time, the system runs in single user mode, so >any noise is eliminated. > > That is a much clearer picture.. Thanks! >x plain_PCATCH.st >+ PCATCH_optimized.st >+--------------------------------------------------------------------------+ >| + | >| + + | >| + + | >| + + x x | >| + ++++ + x xx | >| ++++++++++ + xx x xxxxx x | >|+ +++++++++++++ + x xxx+xxxxxxxxx xxx x x xxx xx x x x| >| |____A____| |_______M____A___________| | >+--------------------------------------------------------------------------+ > N Min Max Median Avg Stddev >x 40 31199 38404 32691.5 33376.775 1740.5576 >+ 40 28245 31794 29300.5 29380.8 649.64192 >Difference at 95.0% confidence > -3995.98 +/- 584.857 > -11.9723% +/- 1.75229% > (Student's t, pooled s = 1313.69) >_______________________________________________ >freebsd-threads@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-threads >To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" > >