Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 May 2006 11:12:21 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: optimize msleep with PCATCH flag
Message-ID:  <200605201112.21415.davidxu@freebsd.org>
In-Reply-To: <446E75C2.4080305@elischer.org>
References:  <200605200935.54828.davidxu@freebsd.org> <446E75C2.4080305@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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)



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