On Tue, 28 Jul 2009 17:33:59 -0700 Yuri <[email protected]> mentioned: > I have a file mmapped to memory area and partially modified this way. > > Is there a way to know what are the actual disk writes/reads done on the > file in this scenario? > Would kqueue events on file's vnode be triggered for mmapped writes?
Yes, it should be possible to monitor files written to via mmapped region with EVFILT_VNODE kevents. Please note, however, that changes to mmapped region may be propagated to the files not immediately depending on the region attributes. -- Stanislav Sedov ST4096-RIPE
pgp9Cy8NS57bQ.pgp
Description: PGP signature

