From owner-freebsd-dtrace@FreeBSD.ORG Sat Oct 12 15:32:12 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 D5AF3362 for ; Sat, 12 Oct 2013 15:32:12 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm32-vm4.bullet.mail.bf1.yahoo.com (nm32-vm4.bullet.mail.bf1.yahoo.com [72.30.239.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 64AF222E3 for ; Sat, 12 Oct 2013 15:32:11 +0000 (UTC) Received: from [98.139.212.148] by nm32.bullet.mail.bf1.yahoo.com with NNFMP; 12 Oct 2013 15:32:05 -0000 Received: from [68.142.230.77] by tm5.bullet.mail.bf1.yahoo.com with NNFMP; 12 Oct 2013 15:32:05 -0000 Received: from [127.0.0.1] by smtp234.mail.bf1.yahoo.com with NNFMP; 12 Oct 2013 15:32:05 -0000 X-Yahoo-Newman-Id: 303168.38000.bm@smtp234.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: LgcxALIVM1mt0uCP44.DTETctDhjFJUjDrPcl4x1yvDJ1vj S8NmSbJtbZZHKevNw3JrPWnKFuCLXqE8QRaEdu5mn9hilnG.Hy8AUgp1xruT tg8HQdv4RU_f.KFv7vkdIH_vYUYvcAf0ahZO_CJI4OjCLbWhulkMd8xe4hE1 2ReEkfEoO3ByN.UMI4LbmV11npZvGgA_OpuSxrWbIewLleoBw5aiO82pkuA7 .2JYueNgzG_Y1iTxboudsw5wR.ask0OsNKAfQ48oMAKc69jhP1rd.6GWLOE7 6tYoJnihWBmDBLEghNSOf3pn3ylGyhyltoKri5iMfhyd1PXUaRPVTGKQKrtJ ishKQBxnlOLBqLr4eOK.uk0YAMFwoe6WfMsLXQUGtT9XilyQi3kNXMc1SgQg _3G.ZeZQICeDBlYA9GUNYo3dmpInE7quh.zfUWwL0mQ0Ix8FQ7sKayHUsig5 LhjuQG.mERyZBEhHrKQQtMQlP24KkhmZUkGQbcDQlOrXZXvOXihKjRrB0aaQ UetH399pFUjf6AGK5jgzRHwMEXL.y7Tq54I2.bqAMIwuylhhgR4rnkToty2E f5Wu4i0WAmQbFXnYqG0y6k4ImqXrri.Mb9GvP.Sk48zXwinTU0IlNo_Na5gY aLx73qtMkIc7t_R6eT.4y2.6iMUsM48eM91Q2jnXPlQuyDBZeAOCiTANYxmz EAnSEucopVavO1p2u11U_Ubj5XGxELkhrtDfaoO0ftFRUeERLgRwe80TUkfO BQ_ARLzyxpGn5AFt1Klon7r6BMmahcWTktr8dolMsmcoT05yZmqaLVmT_UZN U1nnSmt3ITWFXfPj6T9RFksUY8bmKYCbAFP0N6Td8PaDRx7Po.IPA66WNp2F pKl_v6ATXM.FPHq7E5QRCxkFh4FalH8t9g8p2bN_P1wgIptb0XERI_eLw3X3 ADIJNfDaRU1T10ZME2BfTb2w086_YketpUmh.CsVJVkMP6vQ_KRahbmWI15T l0Ot1k2jc97srL5xA6pUkKa4Xie6DZ.696zk7 X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with ) by smtp234.mail.bf1.yahoo.com with SMTP; 12 Oct 2013 15:32:05 +0000 UTC Message-ID: <52596B73.2050702@FreeBSD.org> Date: Sat, 12 Oct 2013 10:32:03 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Mark Johnston Subject: Re: Dtrace providers wanted list References: <52546385.2050203@FreeBSD.org> <20131010042544.GB65451@raichu> In-Reply-To: <20131010042544.GB65451@raichu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: dtrace@FreeBSD.org 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: Sat, 12 Oct 2013 15:32:13 -0000 On 09.10.2013 23:25, Mark Johnston wrote: > On Tue, Oct 08, 2013 at 02:56:53PM -0500, Pedro Giffuni wrote: >> Hello; >> >> Sometime ago I looked around the list of Oracle's DTrace providers. >> >> https://wikis.oracle.com/display/DTrace/Providers >> >> 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. >> >> 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: >> >> http://dtrace.org/blogs/brendan/2013/09/25/the-use-method-freebsd-performance-checklist/ >> >> "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’t see an easy way to walk back to a thread struct; another approach >> may be via vm_fault_hold(). Good luck. ..." 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. OTOH, I found the fsinfo provider: https://bitbucket.org/illumos/illumos-gate/commits/5b50c2dcfdf948c4e4f0b880eb76210067e7af7c Our VFS does have some similarity so this may be easier/doable, plus it may be needed by the scsi and ZFS providers. >> This is closely related to pmc(3) but obviously our implementation is >> completely different from the Solaris one. >> >> >> Well, just though I should share the above links in the hope of >> motivating more DTrace provider porting. At this time our base Dtrace >> port is pretty good but we have the chicken and egg problem where >> developers don't know how useful DTrace really is because there is no >> provider for their code. > I think it's also important to have more and better documentation of > existing providers. More providers are nice, but they're not as useful > when their existence is not widely known or it's not clear how they > might be used. > > I don't really like having links to an Oracle wiki page at least partly > because none of the FreeBSD ports of those providers are 100% compatible. > I've started writing man pages for the network providers; an example is > here: > > http://people.freebsd.org/~markj/dtrace/dtrace-ip.4.txt > > But I'm open to other forms of documentation as well. The Wiki would probably better while things settle. Pedro.