Abdullah, On Tue, Feb 09, 2010 at 02:12:24PM -0500, Abdullah Al-Dahlawi wrote: > Greeting ALL > > I am wondering if it is possible to monitor the ZFS ARC cache hits using > DTRACE. In orher words, would be possible to know how many ARC cache hits > have been resulted by a particular application such as firefox ??
ZFS has kstat for a whole bunch of these. You could run "kstat -m zfs" and see if which ones help you. Correlating these stats to a particular application would be a little difficult. Using Dtrace, you could track down the read/write operations and see if they lead to a hit/miss in ARC. Take a look at the routine arc_read here : http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/arc.c "ARCSTAT_BUMP(arcstat_hits);" is the routine which increments the hit count. You could track arc_read()s called from the context of the application and check if it causes a hit or a miss. Thanks and regards, Sanjeev > > Your response is highly appreciated. > > > Thanks > > > -- > Abdullah > dahl...@ieee.org > (IM) ieee2...@hotmail.com > ---- > Check The Fastest 500 Super Computers Worldwide > http://www.top500.org/list/2009/11/100 -- ---------------- Sanjeev Bagewadi Solaris RPE Bangalore, India _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss