Greeting ALL I am wondering if it is possible to monitor the ZFS ARC cache hits using DTRACE. In other words, would be possible to know how many ARC cache hits have been resulted by a particular application such as firefox ?? Your response is highly appreciated. Thanks -- Abdullah DAHLAWI at IEEE.ORG (IM) ieee2007 at hotmail.com ---- Check The Fastest 500 Super Computers Worldwide http://www.top500.org/list/2009/11/100 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20100209/446e1f11/attachment.html>
Brendan Gregg - Sun Microsystems
2010-Feb-09 19:21 UTC
[dtrace-discuss] ZFS ARC Hits By Apps !!
On Tue, Feb 09, 2010 at 02:15:23PM -0500, Abdullah Al-Dahlawi wrote:> Greeting ALL > I am wondering if it is possible to monitor the ZFS ARC cache hits > using DTRACE. In other words, would be possible to know how many ARC > cache hits have been resulted by a particular application such as > firefox ??You can start with: dtrace -n ''sdt:::arc-hit { @[execname] = count(); }'' Or to filter just on firefox: dtrace -n ''sdt:::arc-hit /execname == "firefox-bin"/ { @ = count(); }'' If neither of them work, it just means that that particular sdt provider probe wasn''t available, and we can get this information from using the fbt provider instead. Note: ZFS prefetch is pretty effective, so streaming reads from disk will often show up as arc hits since ZFS has put the data in cache before the application reads it. Which is the intent. Brendan> Your response is highly appreciated. > Thanks > -- > Abdullah > [1]DAHLAWI at IEEE.ORG > (IM) [2]ieee2007 at hotmail.com > ---- > Check The Fastest 500 Super Computers Worldwide > [3]http://www.top500.org/list/2009/11/100 > > References > > 1. mailto:DAHLAWI at IEEE.ORG > 2. mailto:ieee2007 at hotmail.com > 3. http://www.top500.org/list/2009/11/100> _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Brendan Gregg, Fishworks http://blogs.sun.com/brendan