From owner-freebsd-dtrace@FreeBSD.ORG Sun Oct 13 02:17:57 2013 Return-Path: Delivered-To: dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8F42591A for ; Sun, 13 Oct 2013 02:17:57 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm34-vm7.bullet.mail.bf1.yahoo.com (nm34-vm7.bullet.mail.bf1.yahoo.com [72.30.239.79]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2F75D2BA4 for ; Sun, 13 Oct 2013 02:17:56 +0000 (UTC) Received: from [98.139.215.140] by nm34.bullet.mail.bf1.yahoo.com with NNFMP; 13 Oct 2013 02:17:49 -0000 Received: from [98.139.211.207] by tm11.bullet.mail.bf1.yahoo.com with NNFMP; 13 Oct 2013 02:17:49 -0000 Received: from [127.0.0.1] by smtp216.mail.bf1.yahoo.com with NNFMP; 13 Oct 2013 02:17:49 -0000 X-Yahoo-Newman-Id: 344694.74294.bm@smtp216.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: thgVkUYVM1m0.jfZ1Ascx5EOjjluJIjEFkuwALKnCBgcCfe 7LmpqluBtyqnxsiW_5g5MlEoOkdZ6e5ADJpLgItpeBTPtaVtoMaOGO8ot9cg UJFSmeQ4QiRK6qCXsHVLV9.0QUtUU16JHNnJO2DY.cHvVFXzrwmRmvADQSap WSkOhMeEptwPyjzHKmP21ZarZI1ZLVL1x.05Iguvc6g5vQTS9PD4p5rCw_fi .aNbUUg_qLFj6xMtZnI3vTIOMp_F9P3q5aGsV6tCg8jKAMGYjvfJtTQhe1Af LiDSRfwpfaKsVssotNZQ0FEMlQUQEq9mXKBkpVXX3q0aKBaE1KpWM7vboV03 MMw14C5ONz3uKzwplzw9aYclec3FdAOVKWew7pwLnpmt_Sm4P2Egc9gnlYpl WulxYKL0NuaQSYjko92PhjwFX3fmjG1MkuPKBK2aRV5qGYi9CtOo9rw13shi t8U28SPJqBkWoR3KD7QuXLwnFoa_OxzvXbVAuylGafBC4FR_pbBlXsEjnw.l Ei4rxlFThrxwWIEwLvYHaor.UziamFuHQCZHpuVscKtXerNon2zKEZHhJEDO N.Ixw.l3hDq0uFmvc79P8UOgLkf6HWk9nbRqrqbaDNuxb8dCoybDZzqYwH_I B3VsNNI8pUUPeI.SDhG_NaMnspqJD0_xKQcU.sVOy8j8R6Mx8KVZH_lxD6ag VU9cMtoJANo63R1NvkTVgiMiqH_Y.FIMeHLqaYFd9wnHaOjgcQLS4MZLvheD 83fR8ilyxa4FTursZgqiSu2NzwIUHahKbe6W6zbdDLAeRtDzVXx9OcwRr9Jk Vk6K0OpWYJZnsArmeQjZgL4dT3Ezjke2Q6vS1vVES714GE1..1DYxjwnaDAc QUfUrrxFH7kBy6k960mO3i0ZLhRinzZFheDpG0XPuPacztNP883cwu537KAz VkauOGQ-- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.101] (pfg@190.157.126.109 with ) by smtp216.mail.bf1.yahoo.com with SMTP; 12 Oct 2013 19:17:49 -0700 PDT Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: Dtrace providers wanted list From: Pedro Giffuni In-Reply-To: <52596B73.2050702@FreeBSD.org> Date: Sat, 12 Oct 2013 21:17:46 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <6A4B05EA-D9C7-4014-BF86-4676EF01071C@FreeBSD.org> References: <52546385.2050203@FreeBSD.org> <20131010042544.GB65451@raichu> <52596B73.2050702@FreeBSD.org> To: dtrace@FreeBSD.org X-Mailer: Apple Mail (2.1510) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 02:17:57 -0000 Il giorno 12/ott/2013, alle ore 10:32, Pedro Giffuni = ha scritto: > On 09.10.2013 23:25, Mark Johnston wrote: >> On Tue, Oct 08, 2013 at 02:56:53PM -0500, Pedro Giffuni wrote: >>> Hello; >>>=20 >>> Sometime ago I looked around the list of Oracle's DTrace providers. >>>=20 >>> https://wikis.oracle.com/display/DTrace/Providers >>>=20 >>> We absolutely want them and although extremely useful as it is, = DTrace >>> won't be complete until we have them all ;). For the time being we >>> should probably focus on getting the really critical ones though. >>>=20 >>> The first in the list that we don't have that I think is critical is >>> mentioned in Brendan Gregg's FreeBSD specific blog post: >>>=20 >>> = http://dtrace.org/blogs/brendan/2013/09/25/the-use-method-freebsd-performa= nce-checklist/ >>>=20 >>> "Tracing paging is tricker until the vminfo provider is added; you = could >>> try tracing from swap_pager_putpages() and swap_pager_getpages(), = but I >>> didn=92t see an easy way to walk back to a thread struct; another = approach >>> may be via vm_fault_hold(). Good luck. ..." >=20 > I started looking at this but it is somewhat more work than expected: > Solaris has a specific vminfo interface in sysinfo.h. It looks very = handy > for providing general vm statistics but our vm is different and I am > not sure we want to go into implementing such interface. It depends > on a VM guru, anyways. >=20 > OTOH, I found the fsinfo provider: >=20 > = https://bitbucket.org/illumos/illumos-gate/commits/5b50c2dcfdf948c4e4f0b88= 0eb76210067e7af7c >=20 > Our VFS does have some similarity so this may be easier/doable, plus > it may be needed by the scsi and ZFS providers. Ugh =85 I looked at this one too, and similarly to the vminfo provider, there is = a vopstats structure in vnode.h that we don't have. Both the vopstats and vminfo structures are used to support Solaris' = kstat(1M) utility. In other words, this is an in kernel system made to report statistics. = While it seems natural to use them for DTrace in Solaris, we would have to = reimplement it in some way if we want to have equivalent providers in FreeBSD. :-( I am afraid that the CPC Provider may have similar issues but I haven't = looked at it. Pedro.