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: vm_map_protect / pmap_protect Can't lower protection

2009-07-28 Thread Andrey Simonenko
Hello Andrew, On Mon, Jul 20, 2009 at 04:14:02PM +0100, Andrew Brampton wrote: > However, memguard_unguard doesn't work correctly. It first calls > vm_map_protect with a read-write flag. > vm_map_protect correctly updates the vm_map_entry, and then calls > pmap_protect to set the actual pte. > pm