From owner-freebsd-current Fri May 31 15:46:30 2002 Delivered-To: freebsd-current@freebsd.org Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by hub.freebsd.org (Postfix) with ESMTP id 0412937B40D for ; Fri, 31 May 2002 15:46:25 -0700 (PDT) Received: from angelica.unixdaemons.com (bmilekic@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.3/8.12.1) with ESMTP id g4VMjqMR082250; Fri, 31 May 2002 18:45:52 -0400 (EDT) X-Authentication-Warning: angelica.unixdaemons.com: Host bmilekic@localhost.unixdaemons.com [127.0.0.1] claimed to be angelica.unixdaemons.com Received: (from bmilekic@localhost) by angelica.unixdaemons.com (8.12.3/8.12.1/Submit) id g4VMjpND082249; Fri, 31 May 2002 18:45:51 -0400 (EDT) (envelope-from bmilekic) Date: Fri, 31 May 2002 18:45:51 -0400 From: Bosko Milekic To: Glenn Gombert Cc: "David W. Chapman Jr." , Nicolas Souchu , Current Subject: Re: -current as guest of VMWare2 Message-ID: <20020531184551.A81753@unixdaemons.com> References: <20020531220221.DA6366D9BB@www.fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020531220221.DA6366D9BB@www.fastmail.fm>; from freebsd@fastmail.fm on Fri, May 31, 2002 at 10:02:21PM +0000 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 HAH! This patch was posted by iedowse in response to one of MY POSTS and it does EXACTLY what I described in my previous Email, point (2). PLZ DO NOT BRING MY HOPES UP BY STATING THAT THERE IS ANOTHER PATCH WHICH DOES SOMETHING DIFFERENT WHEN IT FACT IT DOES WHAT I ALREADY KNOW I SHOULD DO K PLZ THX. :-))))) (I'm just fooling around, thanks for the pointer anyway. :-)) Cheers, Bosko On Fri, May 31, 2002 at 10:02:21PM +0000, Glenn Gombert wrote: > 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 > -- Bosko Milekic bmilekic@unixdaemons.com bmilekic@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message