From owner-cvs-all Tue Jun 4 15: 9:57 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 2028037B40F for ; Tue, 4 Jun 2002 15:09:30 -0700 (PDT) Received: (qmail 19194 invoked from network); 4 Jun 2002 22:09:28 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 4 Jun 2002 22:09:28 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g54M9PF54594; Tue, 4 Jun 2002 18:09:25 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200206042153.g54LrmT07436@freefall.freebsd.org> Date: Tue, 04 Jun 2002 18:09:20 -0400 (EDT) From: John Baldwin To: John Baldwin Subject: RE: cvs commit: src/sys/kern kern_mutex.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 04-Jun-2002 John Baldwin wrote: > jhb 2002/06/04 14:53:48 PDT > > Modified files: > sys/kern kern_mutex.c > Log: > Optimize the adaptive mutex spin a bit. Use a simple while loop with > simple reads (and on IA32, a "pause" instruction for each interation of the > loop) to spin until either the mutex owner field changes, or the lock owner > stops executing. > > Suggested by: tanimura > Tested on: i386 Not tested on Alpha SMP because SMP Alpha kernels aren't stable under load now. I've had various lockups or weird NULL pointer bugs (as if a thread variable passed down the stack suddenly became NULL) for a month or two now. SMP sparc64 doesn't boot atm, hence no testing on it. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message