Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2015 11:02:11 -0700
From:      Lacey Powers <lacey.leanne@gmail.com>
To:        "Michael W. Lucas" <mwlucas@michaelwlucas.com>
Cc:        fs@freebsd.org
Subject:   Re: DTrace to measure ZFS operations & latency
Message-ID:  <CAA7NH1_OM6xUEmc3ssACZuJyte4zxxqE_KiKNbO%2Bq8-8Mo95Cg@mail.gmail.com>
In-Reply-To: <20150820174559.GA28318@mail.michaelwlucas.com>
References:  <20150820174559.GA28318@mail.michaelwlucas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <mwlucas@michaelwlucas.com>
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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAA7NH1_OM6xUEmc3ssACZuJyte4zxxqE_KiKNbO%2Bq8-8Mo95Cg>