How to profile the disk io performed through mmaps?

2009-07-28 Thread Yuri
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? Yuri ___ freeb

Re: How to profile the disk io performed through mmaps?

2009-07-29 Thread Stanislav Sedov
On Tue, 28 Jul 2009 17:33:59 -0700 Yuri 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?

Re: How to profile the disk io performed through mmaps?

2009-07-29 Thread Yuri
Stanislav Sedov wrote: 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. But is there any command line

Re: How to profile the disk io performed through mmaps?

2009-07-29 Thread Stanislav Sedov
On Wed, 29 Jul 2009 09:49:12 -0700 Yuri mentioned: > Stanislav Sedov wrote: > > 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 dependi

Re: How to profile the disk io performed through mmaps?

2009-07-29 Thread Yuri
Stanislav Sedov wrote: 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. From kqueue(2) I don't see how