From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 29 00:34:01 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A1C61065675 for ; Wed, 29 Jul 2009 00:34:01 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3E7B98FC18 for ; Wed, 29 Jul 2009 00:34:01 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from eagle.syrec.org (c-24-6-210-150.hsd1.ca.comcast.net [24.6.210.150]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id n6T0Y0i2015034 for ; Tue, 28 Jul 2009 17:34:00 -0700 (PDT) Message-ID: <4A6F98F7.2080304@rawbw.com> Date: Tue, 28 Jul 2009 17:33:59 -0700 From: Yuri User-Agent: Thunderbird 2.0.0.22 (X11/20090724) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How to profile the disk io performed through mmaps? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2009 00:34:02 -0000 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