From owner-freebsd-fs@freebsd.org Thu Aug 20 18:02:14 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 705469BFA49 for ; Thu, 20 Aug 2015 18:02:14 +0000 (UTC) (envelope-from lacey.leanne@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4F7DF1256 for ; Thu, 20 Aug 2015 18:02:14 +0000 (UTC) (envelope-from lacey.leanne@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 4C7EB9BFA48; Thu, 20 Aug 2015 18:02:14 +0000 (UTC) Delivered-To: fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 321109BFA47 for ; Thu, 20 Aug 2015 18:02:14 +0000 (UTC) (envelope-from lacey.leanne@gmail.com) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AEE171255 for ; Thu, 20 Aug 2015 18:02:13 +0000 (UTC) (envelope-from lacey.leanne@gmail.com) Received: by laba3 with SMTP id a3so27486259lab.1 for ; Thu, 20 Aug 2015 11:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5r+ZLodUNvy1wQimBFzb0vm+1O1E+j1tEQ3ox994gzQ=; b=Z8T0IjpFahe+dlg8EawEd77ep/0P738n0eArFYCu4mU7ugBoQifqXTx9FEJVXGhcEZ 7Wu2UEtb6XbHCEcezJ5UrZR3frkOuLCoGgHHFpMQ0t3kMmdDo+TkJ25QoAlR+s0sevf1 gJ6C23I2RbQCu+EhzrvoFfs/sXt9Zcfak5aS1PjtCjO2ASYmi/v7cMoVLrLb7OlfUsNj UVoLOz1ZRwEAnFIWX4EkRSFugSbFrWwPStzw3/ukU13v27tzp4LoJ2TqlWTQ/0ctJCDz 37q6UxCeksDre2cLzTxW/2CuLvGf2dY0NPtIYinIavr6L290xsoAHcUck85wTT1ivCn5 QO1A== MIME-Version: 1.0 X-Received: by 10.112.201.36 with SMTP id jx4mr4078947lbc.9.1440093731759; Thu, 20 Aug 2015 11:02:11 -0700 (PDT) Received: by 10.25.88.80 with HTTP; Thu, 20 Aug 2015 11:02:11 -0700 (PDT) Received: by 10.25.88.80 with HTTP; Thu, 20 Aug 2015 11:02:11 -0700 (PDT) In-Reply-To: <20150820174559.GA28318@mail.michaelwlucas.com> References: <20150820174559.GA28318@mail.michaelwlucas.com> Date: Thu, 20 Aug 2015 11:02:11 -0700 Message-ID: Subject: Re: DTrace to measure ZFS operations & latency From: Lacey Powers To: "Michael W. Lucas" Cc: fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2015 18:02:14 -0000 I put in a bug for this because the function is inlined and thus hidden from dtrace. The patch hasn't been applied for several months. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200316 You could always custom compile to expose this like I did to try and debug it for my own use with ZFS and PostgreSQL. Hope that helps. Regards, Lacey On Aug 20, 2015 10:48 AM, "Michael W. Lucas" wrote: > Hi, > > I'm working on measuring the number & latency of async operations in > ZFS. (Yes, this is still for the ZFS book.) There's a nice script at > http://dtrace.org/blogs/ahl/2014/08/31/openzfs-tuning/, but it's > illumos-specific. I try to run the script on last week's -current and > get: > > # dtrace -s q.d zroot > dtrace: failed to compile script q.d: line 4: probe description > fbt::vdev_queue_max_async_writes:entry does not match any probes > > Any chance someone could help me out here? > > Thanks, > ==ml > > PS: The script is: > > #pragma D option aggpack > #pragma D option quiet > > fbt::vdev_queue_max_async_writes:entry > { > self->spa = args[0]; > } > fbt::vdev_queue_max_async_writes:return > /self->spa && self->spa->spa_name == $$1/ > { > @ = lquantize(args[1], 0, 30, 1); > } > > tick-1s > { > printa(@); > clear(@); > } > > > -- > Michael W. Lucas - mwlucas@michaelwlucas.com, Twitter @mwlauthor > http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/ > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >