From owner-freebsd-emulation Sun Dec 19 19:43:49 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from gate.keisu.t.u-tokyo.ac.jp (ns06.t.u-tokyo.ac.jp [133.11.68.1]) by hub.freebsd.org (Postfix) with SMTP id E3680151A6 for ; Sun, 19 Dec 1999 19:43:29 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: (qmail 62601 invoked from network); 20 Dec 1999 03:43:27 -0000 Received: from sylph.sat.t.u-tokyo.ac.jp (10.6.1.20) by ns06.t.u-tokyo.ac.jp with SMTP; 20 Dec 1999 03:43:27 -0000 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [10.6.1.30]) by sylph.sat.t.u-tokyo.ac.jp (Postfix) with ESMTP id C5B202DAA9; Mon, 20 Dec 1999 12:43:25 +0900 (JST) Received: from ett.sat.t.u-tokyo.ac.jp by ett.sat.t.u-tokyo.ac.jp (8.9.3/sat-V0.6) id MAA59381; Mon, 20 Dec 1999 12:43:24 +0900 (JST) Date: Mon, 20 Dec 1999 12:43:23 +0900 Message-ID: From: Hidetoshi Shimokawa To: vsilyaev@mindspring.com Cc: guido@gvr.org, freebsd-emulation@FreeBSD.ORG, dbutter@wireless.net Subject: Re: VMware: Questions... In-Reply-To: In your message of "Sun, 19 Dec 1999 12:20:17 -0500" <19991219122016.A453@jupiter.delta.ny.us> References: <19991218204438.A706@jupiter.delta.ny.us> <19991219174414.A89114@gvr.gvr.org> <19991219122016.A453@jupiter.delta.ny.us> User-Agent: Wanderlust/2.2.9 (Gonna Make You Sweat) SEMI/1.13.6 (Komatsu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.2 (beta19) (Shinjuku) (i386-unknown-freebsd3.2) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7:#j7i14gu$ jgR\S*&C3R/pJX wrote: > > I am seeing the same freezes. I am running NT4 on a virtual drive. > > From time to time, the NT in vmware freezes. The IDE light on the vmware > > screen is off, yet there is a tremendous amount of disk activity > > going on (as seen from iostat or systat -vmstat). I am seeing > > 100 transaction per second. > I fill such freezes with linux as guest, but I never seen any disk activity > in that time. I don't have access to vmware sources or to any other source > of information, so I don't have any thinks about this freezes. This is because mmaped file is written every 30 second by sync daemon. The file is usually named /var/tmp/ram0 but it's unlinked right after opened so you cannot see it by 'ls' although it exits. Fortunately, MAP_NOSYNC is available recently. I use the following patch. It's urgly but simple. Index: linux_misc.c =================================================================== RCS file: /pub/FreeBSD-CVS/src/sys/i386/linux/linux_misc.c,v retrieving revision 1.75 diff -u -r1.75 linux_misc.c --- linux_misc.c 1999/10/29 18:08:45 1.75 +++ linux_misc.c 1999/12/12 09:21:31 @@ -704,6 +704,10 @@ bsd_args.flags |= MAP_FIXED; if (linux_args.flags & LINUX_MAP_ANON) bsd_args.flags |= MAP_ANON; +#if 1 + else + bsd_args.flags |= MAP_NOSYNC; +#endif if (linux_args.flags & LINUX_MAP_GROWSDOWN) { bsd_args.flags |= MAP_STACK; /\ 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