From owner-freebsd-bugs Fri Nov 2 6:30:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 29BF037B408 for ; Fri, 2 Nov 2001 06:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fA2EU1V47065; Fri, 2 Nov 2001 06:30:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 752C837B40A for ; Fri, 2 Nov 2001 06:23:03 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fA2EN3V44895; Fri, 2 Nov 2001 06:23:03 -0800 (PST) (envelope-from nobody) Message-Id: <200111021423.fA2EN3V44895@freefall.freebsd.org> Date: Fri, 2 Nov 2001 06:23:03 -0800 (PST) From: jan grant To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/31708: VM system / fsync / flushing delayed indefinitely? Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31708 >Category: kern >Synopsis: VM system / fsync / flushing delayed indefinitely? >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 02 06:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: jan grant >Release: 4-STABLE >Organization: ILRT >Environment: FreeBSD tribble.ilrt.bris.ac.uk 4.4-STABLE FreeBSD 4.4-STABLE #0: Tue Oct 2 12:58:05 BST 2001 jan@tribble.ilrt.bris.ac.uk:/external/usr.obj/usr/src/sys/JAN i386 >Description: Recently the behaviour of vmware on my 4-STABLE machine has altered; I'm not sure if this classes as a bug or not, so I'm soliciting opinions. (This shows up using vmware 2.0.3.799_1, but does not appear to be limited to that program) Symptoms: vmware runs as normal. (I've got WinNT under it.) These days, vmware2-2.0.3.799_1 will exit immediately if I suspend and exit the program (as opposed to syncing status to disk - the VMware virtual drive is mmapped by vmware). However, I was slightly concerned when I came to shut down FreeBSD; the external drive (which the VMWare virtual disk occupies) went into several minutes of activity at the point where it was being unmounted. This seemed odd; I've since done a bit of experimenting and the activity can be triggered after exiting vmware (at pretty much an arbitrary length of time) by fsyncing * in the vmware external directory. There's quite a bit of memory in this machine (378MB) - my question is this: is this a late flushing of mmapped pages marked dirty, or does this behavior occur even if the pages were not touched? - And shouldn't those pages (if dirty) be flushed to disk in a "reasonable" amount of time*, rather than hanging around for (in one case) two weeks? * sync(2) doesn't cause the flush; fsync(1 or 2) will. >How-To-Repeat: I found vmware handy for this because it mmaps a large file. Run it, tinker, exit. Wait an indefinite period (vmware's pages are not flushed). Then either umount the fs with the vmware virtual disk or fsync those files. sync(2) will not cause this flushing activity. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message