From owner-freebsd-emulation Wed Dec 13 22:36:20 2000 From owner-freebsd-emulation@FreeBSD.ORG Wed Dec 13 22:36:17 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 2B0BD37B400 for ; Wed, 13 Dec 2000 22:36:17 -0800 (PST) Received: from vmware (vmware.kfu.com [205.178.90.234]) by quack.kfu.com (8.11.1/8.11.1) with SMTP id eBE6a8m45074; Wed, 13 Dec 2000 22:36:08 -0800 (PST) (envelope-from nsayer@quack.kfu.com) From: "Nicholas W. Sayer" To: "Hidetoshi Shimokawa" , Cc: Subject: RE: VMWare performance when returning from suspend to disk Date: Wed, 13 Dec 2000 23:36:04 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Importance: Normal Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org *ding ding ding ding ding* Having applied this patch, it appears to have returned the systat numbers to a state where this problem does not occur, at least on my home machine (which is not the same one I was testing today at the office). Now the question is, why doesn't vmware unlink the mmap file when it's resuming like it does when it's booting? Bizarre. I was able to port the patch to -stable, but only by moving the SYSCTL_INT declaration and the mmap_nosync variable to /sys/compat/linux/linux_mib.c and keeping the functional part of the patch in /sys/i386/linux/linux_machdep.c. Anyone have any insight on that? -----Original Message----- From: owner-freebsd-emulation@FreeBSD.ORG [mailto:owner-freebsd-emulation@FreeBSD.ORG]On Behalf Of Hidetoshi Shimokawa Sent: Wednesday, December 13, 2000 5:35 PM To: freebsd-emulation@FreeBSD.ORG Cc: barry@lustig.com Subject: Re: VMWare performance when returning from suspend to disk At Tue, 12 Dec 2000 13:37:36 -0500, Barry Lustig wrote: > > VMWare running on dual 800Mhz with 512MB RAM runs great, except when I > suspend to disk and then restore that image. When the restored image starts > running, the mouse will move for a few moments and then freeze and then start > moving again. The same behavior happens to window input. During the > freezes, VMWare seems to be doing a lot of I/O. Any thoughts on where to > look? > > Thanks, This is because the restored image is mmaped without MAP_NOSYNC flag. (When you 'power on', the image is mmapped with the flag because the image is unlinked just after mmapped.) Try the patch included in http://home.jp.FreeBSD.ORG/cgi-bin/showmail/FreeBSD-users-jp/55885 /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: finger -l simokawa@sat.t.u-tokyo.ac.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message