From owner-cvs-src@FreeBSD.ORG Fri Dec 19 05:23:33 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBEF616A4CE; Fri, 19 Dec 2003 05:23:33 -0800 (PST) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81E0043D45; Fri, 19 Dec 2003 05:23:32 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (203.134.135.190) by smtp01.syd.iprimus.net.au (7.0.020) id 3F8B009E0197C845; Sat, 20 Dec 2003 00:23:30 +1100 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 6B9CA6127; Sat, 20 Dec 2003 00:24:29 +1100 (EST) Date: Sat, 20 Dec 2003 00:24:29 +1100 From: Tim Robbins To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Message-ID: <20031219132429.GA913@wombat.robbins.dropbear.id.au> References: <200312191307.hBJD7HYo099172@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312191307.hBJD7HYo099172@repoman.freebsd.org> User-Agent: Mutt/1.4.1i Subject: Re: cvs commit: src/sys/kern sysv_sem.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 13:23:34 -0000 On Fri, Dec 19, 2003 at 05:07:17AM -0800, Tim J. Robbins wrote: > tjr 2003/12/19 05:07:17 PST > > FreeBSD src repository > > Modified files: > sys/kern sysv_sem.c > Log: > Reduce the overhead of semop() by using the kernel stack instead of > malloc'd memory to store the operations array if it is small enough > to fit. FWIW, wall time for 100,000 increment/decrement pairs on a single semaphore: x before + after +--------------------------------------------------------------------------+ | ++ + xxx | |+++++ + xxx x| | |A_| |A_| | +--------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 9 5.35 5.5 5.39 5.3933333 0.044440972 + 9 3.8 3.93 3.85 3.8566667 0.041231056 Difference at 95.0% confidence -1.53667 +/- 0.0428394 -28.492% +/- 0.794303% (Student's t, pooled s = 0.0428661)