From owner-freebsd-current Fri May 31 15: 2:33 2002 Delivered-To: freebsd-current@freebsd.org Received: from www.fastmail.fm (fastmail.fm [209.61.183.86]) by hub.freebsd.org (Postfix) with ESMTP id D478D37B401 for ; Fri, 31 May 2002 15:02:28 -0700 (PDT) Received: from www.fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id E29176DA09; Fri, 31 May 2002 17:02:21 -0500 (CDT) Received: by www.fastmail.fm (Postfix, from userid 99) id DA6366D9BB; Fri, 31 May 2002 17:02:21 -0500 (CDT) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 2.117 (F2.6; T0.14; A1.42; B2.12; Q2.03) Date: Fri, 31 May 2002 22:02:21 +0000 From: "Glenn Gombert" To: "Bosko Milekic" Reply-To: "Glenn Gombert" X-Epoch: 1022882541 X-Sasl-enc: VpiRUwBAQIUocMRO7W3YUA Cc: "David W. Chapman Jr." , "Nicolas Souchu" , "Current" Subject: Re: -current as guest of VMWare2 Message-Id: <20020531220221.DA6366D9BB@www.fastmail.fm> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here is the patch from a previous posting that fixes the problem of running FreeBSD -Current as a Guest OS under VMWare Workstation 3.0: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Someone mentioned on a list somewhere that vmware takes forever to emulate the cmpxchg instruction, and that using the I386_CPU version of atomic_cmpset_int() helps a lot. I noticed a major vmware slowdown with -current sometime in September, so I tried avoiding the cmpxchg's and things got much faster. Below is the patch I use (using this outside vmware on SMP hardware is a bad idea :-). Ian Index: atomic.h =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/i386/include/atomic.h,v retrieving revision 1.21 diff -u -r1.21 atomic.h --- atomic.h 2001/10/08 20:58:24 1.21 +++ atomic.h 2001/10/09 18:35:25 @@ -111,7 +111,7 @@ * Returns 0 on failure, non-zero on success */ -#if defined(I386_CPU) +#if defined(I386_CPU) || 1 static __inline int atomic_cmpset_int(volatile u_int *dst, u_int exp, u_int src) { Glenn G. -- Glenn Gombert freebsd@fastmail.fm "Never trust any operating system you don't have the source code for" -- http://fastmail.fm - Get back to work To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message