Hi, Does ZFS has support for kstats? If I want to extract information like no of files commited to disk during an interval, no of transactions performed, I/O bandwidth etc, how can I get that information? Regards, -Atul
On 3/27/07, Atul Vidwansa <atulvid at gmail.com> wrote:> Hi, > Does ZFS has support for kstats? If I want to extract information > like no of files commited to disk during an interval, no of > transactions performed, I/O bandwidth etc, how can I get that > information?>From the command line, look at the fsstat utility.If you want the raw kstats then you need to look for ones of the form ''unix:0:vopstats_*'' where there are two forms: with the name of the filesystem type (eg zfs or ufs) on the end, or the device id of the individual filesystem. -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
Peter, How do I get those stats programatically? Any clues? Regards, _Atul On 3/27/07, Peter Tribble <peter.tribble at gmail.com> wrote:> On 3/27/07, Atul Vidwansa <atulvid at gmail.com> wrote: > > Hi, > > Does ZFS has support for kstats? If I want to extract information > > like no of files commited to disk during an interval, no of > > transactions performed, I/O bandwidth etc, how can I get that > > information? > > From the command line, look at the fsstat utility. > > If you want the raw kstats then you need to look for ones > of the form ''unix:0:vopstats_*'' where there are two forms: > with the name of the filesystem type (eg zfs or ufs) on the > end, or the device id of the individual filesystem. > > -- > -Peter Tribble > http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ >
See Kernel Statistics Library Functions kstat(3KSTAT) -r Atul Vidwansa writes: > Peter, > How do I get those stats programatically? Any clues? > Regards, > _Atul >
On 27/03/07, Atul Vidwansa <atulvid at gmail.com> wrote:> Peter, > How do I get those stats programatically? Any clues? > Regards, > _Atulman kstat http://docs.sun.com/app/docs/doc/816-5172/6mbb7bu50?q=kstats&a=view -- "Less is only more where more is no good." --Frank Lloyd Wright Shawn Walker, Software and Systems Analyst binarycrusader at gmail.com - http://binarycrusader.blogspot.com/
Atul Vidwansa wrote:> Peter, > How do I get those stats programatically? Any clues?With the kstat(3kstat) API from C or Perl. -- Darren J Moffat
Atul, libkstat(3LIB) is the library. "man -s 3KSTAT kstat" should give a good start. Regards, Sanjeev. Atul Vidwansa wrote:> Peter, > How do I get those stats programatically? Any clues? > Regards, > _Atul > > On 3/27/07, Peter Tribble <peter.tribble at gmail.com> wrote: >> On 3/27/07, Atul Vidwansa <atulvid at gmail.com> wrote: >> > Hi, >> > Does ZFS has support for kstats? If I want to extract information >> > like no of files commited to disk during an interval, no of >> > transactions performed, I/O bandwidth etc, how can I get that >> > information? >> >> From the command line, look at the fsstat utility. >> >> If you want the raw kstats then you need to look for ones >> of the form ''unix:0:vopstats_*'' where there are two forms: >> with the name of the filesystem type (eg zfs or ufs) on the >> end, or the device id of the individual filesystem. >> >> -- >> -Peter Tribble >> http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ >> > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
I like these articles at SDN: http://developers.sun.com/solaris/articles/kstatc.html http://developers.sun.com/solaris/articles/kstat_part2.html Rayson On 3/27/07, Sanjeev Bagewadi <Sanjeev.Bagewadi at sun.com> wrote:> Atul, > > libkstat(3LIB) is the library. > "man -s 3KSTAT kstat" should give a good start. > > Regards, > Sanjeev. > > Atul Vidwansa wrote: > > Peter, > > How do I get those stats programatically? Any clues? > > Regards, > > _Atul > > > > On 3/27/07, Peter Tribble <peter.tribble at gmail.com> wrote: > >> On 3/27/07, Atul Vidwansa <atulvid at gmail.com> wrote: > >> > Hi, > >> > Does ZFS has support for kstats? If I want to extract information > >> > like no of files commited to disk during an interval, no of > >> > transactions performed, I/O bandwidth etc, how can I get that > >> > information? > >> > >> From the command line, look at the fsstat utility. > >> > >> If you want the raw kstats then you need to look for ones > >> of the form ''unix:0:vopstats_*'' where there are two forms: > >> with the name of the filesystem type (eg zfs or ufs) on the > >> end, or the device id of the individual filesystem. > >> > >> -- > >> -Peter Tribble > >> http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ > >> > > _______________________________________________ > > zfs-discuss mailing list > > zfs-discuss at opensolaris.org > > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >