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)