Date: Fri, 31 May 2002 22:02:21 +0000 From: "Glenn Gombert" <freebsd@fastmail.fm> To: "Bosko Milekic" <bmilekic@unixdaemons.com> Cc: "David W. Chapman Jr." <dwcjr@inethouston.net>, "Nicolas Souchu" <nsouch@free.fr>, "Current" <freebsd-current@FreeBSD.ORG> Subject: Re: -current as guest of VMWare2 Message-ID: <20020531220221.DA6366D9BB@www.fastmail.fm>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020531220221.DA6366D9BB>