From owner-freebsd-hackers Thu Nov 15 7:35:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by hub.freebsd.org (Postfix) with ESMTP id 48FBA37B405 for ; Thu, 15 Nov 2001 07:35:19 -0800 (PST) Received: (qmail 26895 invoked from network); 15 Nov 2001 15:35:18 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 15 Nov 2001 15:35:18 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011115115921.LISE29441.mta11.onebox.com@onebox.com> Date: Thu, 15 Nov 2001 07:35:18 -0800 (PST) From: John Baldwin To: Glenn Gombert Subject: Re: FreeBSD on vmware Cc: hackers@FreeBSD.org, Ian Dowse Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 15-Nov-01 Glenn Gombert wrote: > > Thanks for the tip Ian ...this works great! I have applied this patch > to my desktop system ...and the FreeBSD Current kernel with this patch > applied boots right up now...anyone else running Current under FreeBSD > would fine it helpful to do as well.... Perhaps we need an 'options VMWARE' that this could be triggered off of. > Glenn G. > > > ---- Ian Dowse wrote: >> In message <20011113165944.G52323-100000@fledge.watson.org>, Robert >> Watson writ >> es: >> >I've had -STABLE run fine, but of late have had a lot of trouble with >> >-current. Userland processes during the boot sequence seem to spend >> a lot >> >of time just spinning -- it's not clear to me what the cause is, and >> I >> >haven't had time to debug. >> >> 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) >> { >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-hackers" in the body of the message >> > > __________________________________________________ > FREE voicemail, email, and fax...all in one place. > Sign Up Now! http://www.onebox.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- 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 freebsd-hackers" in the body of the message