Date: Wed, 8 Dec 1999 19:46:43 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Richard Wendland <richard@netcraft.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: mmap() and atime/mtime Message-ID: <199912090346.TAA45576@apollo.backplane.com> References: <199912082246.WAA00863@ns0.netcraft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
:Matthew Dillon wrote: : :> Things like file meta-data always sync, though if the only data written :> to a file is through such an mmap() the filesystem will not have much :> to do there. : :Incidentally, I notice that files "read" through a mmap (PROT_READ, :MAP_SHARED) don't cause the file's atime to be set, on 3.3-STABLE :and 2.2.8-STABLE at least. : :This doesn't strike me as the right thing to do, even if the stat(2) man :page says: I think you're right, but it isn't something that I can fix this second. I recommend filing a PR and then emailing me the PR number. I'll assign it to myself so it shows up in my weekly reminder but I don't think I'm going to get to it for a couple of months. :I'm inclined to the view that it would be nice if mtime was set at :the first write reference that would change the underlying object, :but not synced out to disk at that time. This means running :processes do at least see the mtime change immediately, just as :they'd see the changes if they mmap'd the file. : : Richard :-- :Richard Wendland richard@starburst.demon.co.uk I would hesitate to delve that deeply into the VFS system from a VM fault for performance reasons. The Open Group specification you quoted seems reasonable to me, but the mtime specification is not 100% achieveable % in a coherent VM/buffer-cache because once the page is dirtied the process can make further modifications to it (that essentially modify the underlying file) without any further faulting. -Matt Matthew Dillon <dillon@backplane.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912090346.TAA45576>