From owner-freebsd-fs@freebsd.org Thu Aug 20 21:21:10 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 08ADE9BFB2B for ; Thu, 20 Aug 2015 21:21:10 +0000 (UTC) (envelope-from lkateley@kateley.com) Received: from mail-ig0-f178.google.com (mail-ig0-f178.google.com [209.85.213.178]) (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 CFAB3AF9 for ; Thu, 20 Aug 2015 21:21:09 +0000 (UTC) (envelope-from lkateley@kateley.com) Received: by igbjg10 with SMTP id jg10so881931igb.0 for ; Thu, 20 Aug 2015 14:21:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=kny94TsaTLi6VTr6Vg5sqhaNLgz7JO2dlXNUkkjsuR8=; b=My7y1fFfD12ZZ6d37kIXPgfreiP7Uv1vc+7IqGwRGU2SXxDxa2rkdacITlH4sf2d/R 0RG2jYliIedoYpKU8U0mvgVZdlb5ucOGvUEIIFvxLywvG9elshnDm1vy8zfWlKTenxuU NY8R0okoNAtkmCMd6gh2MXxagfML3vU4sXIxK7Qzkv8Ink/CzOVgvMscKOqqAV9MxS8x sGaniCHUMA0+hBu+TD03ypAGrZuoBUuTsO0VGzYYNvvc7+J4DdfhUjtzbXQq+5V3MKgA z1Vi7+QGcsyDezVOEwcNjvyJV3pZvR1q2ByVAXz2RSAX1waSaKUar9t4r9JmjsfEScMD yc5g== X-Gm-Message-State: ALoCoQmmfmVX0QWNx2qJlbNJi8JGaH24yycNvmGM2Nkn4OyW/DOC4LRnkvTz/8OFDqm6IFT+Q+uj X-Received: by 10.50.43.169 with SMTP id x9mr192378igl.12.1440105668200; Thu, 20 Aug 2015 14:21:08 -0700 (PDT) Received: from kateleycoimac.local ([63.231.252.189]) by smtp.googlemail.com with ESMTPSA id a1sm95434iga.4.2015.08.20.14.21.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Aug 2015 14:21:07 -0700 (PDT) Subject: Re: DTrace to measure ZFS operations & latency To: freebsd-fs@freebsd.org References: <20150820174559.GA28318@mail.michaelwlucas.com> From: Linda Kateley Message-ID: <55D644C2.8060701@kateley.com> Date: Thu, 20 Aug 2015 16:21:06 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150820174559.GA28318@mail.michaelwlucas.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 21:21:10 -0000 Usually what I will do with those is to try to find a similar probe in freebsd. Something like... #dtrace -l | grep async or something like that.. to try and find a similar function to trace. This one looks promising spa_async_dispatch_vd Not sure I will be able to quantize on the args though, without more time... Hopefully that will give you a start. On 8/20/15 12:45 PM, 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(@); > } > > -- Linda Kateley Kateley Company Skype ID-kateleyco http://kateleyco.com