[dtrace-discuss] DTrace and I/O

2009-03-17 Thread Ferrand
Hye everyboy,

I try to obtain the REAL size of I/O in block or Ko in order to know how ZFS 
manage the block size.

I've tried the io provider with

this-byte_size = args[0]-b_bcount;
this-kibi_byte_size = this-byte_size/1024;

but my results seems strange ( block of 56 ko with UFS ... )

How can i retrieve REAL block size for I/O ?
Thanks
R.
-- 
This message posted from opensolaris.org
___
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org


Re: [dtrace-discuss] DTrace and I/O

2009-03-17 Thread Jim Mauro

You're looking at byte counts, not block sizes.

56kb sounds typical for UFS, which uses an 8k block size,
with 1k frags (default), so you'll typically see IO sizes
to/from UFS in multiples of 8k. The actually amount of
IO depends of course on several factors.

You can also just use iostat data. For reads, divide kbytes reads by
reads-per-second to get the physical IO size for a given row of
data. (same for writes).

/jim


Ferrand wrote:

Hye everyboy,

I try to obtain the REAL size of I/O in block or Ko in order to know how ZFS 
manage the block size.

I've tried the io provider with

this-byte_size = args[0]-b_bcount;
this-kibi_byte_size = this-byte_size/1024;

but my results seems strange ( block of 56 ko with UFS ... )

How can i retrieve REAL block size for I/O ?
Thanks
R.
  

___
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org


Re: [dtrace-discuss] dtrace

2009-03-17 Thread David Lutz
On Tuesday, March 17, 2009, at 4:11 am, gautham k wrote:
 hello everyone
 can i get some example on how to integrate dtrace with scripting language


Take a look at the examples in DtraceToolkit, several of
which combine scripting languages and dtrace.  In OpenSolaris,
this is the SUNWDtraceToolkit package, which is installed in
/opt/DTT.  It is also available as a tar ball from
http://opensolaris.org/os/community/dtrace/dtracetoolkit/

HTH,
David


___
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org


Re: [dtrace-discuss] dtrace

2009-03-17 Thread Amit Saha
On Tue, Mar 17, 2009 at 7:20 PM, David Lutz david.l...@sun.com wrote:
 On Tuesday, March 17, 2009, at 4:11 am, gautham k wrote:
 hello everyone
 can i get some example on how to integrate dtrace with scripting language


 Take a look at the examples in DtraceToolkit, several of
 which combine scripting languages and dtrace.  In OpenSolaris,
 this is the SUNWDtraceToolkit package, which is installed in
 /opt/DTT.  It is also available as a tar ball from
 http://opensolaris.org/os/community/dtrace/dtracetoolkit/

Also, please take a look at a similar discussion on BOSUG:
http://opensolaris.org/jive/thread.jspa?threadID=96871tstart=0

-Amit

-- 
http://amitksaha.blogspot.com
http://amitsaha.in.googlepages.com/
*Bangalore Open Java Users Group*:http:www.bojug.in

Recursion is the basic iteration mechanism in Scheme
--- http://c2.com/cgi/wiki?TailRecursion
___
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org