Igor, For me it is always a research project. There are 5 type of kstats. KSTAT_TYPE_RAW 0 /* can be anything */ KSTAT_TYPE_NAMED 1 /* name/value pair */ KSTAT_TYPE_INTR 2 /* interrupt statistics */ KSTAT_TYPE_IO 3 /* I/O statistics */ KSTAT_TYPE_TIMER 4 /* event timer */
My experience is that KSTAT_TYPE_RAW and KSTAT_TYPE_IO are documented in some fashion in the include files. I have no experience with KSTAT_TYPE_INTR and KSTAT_TYPE_TIMER but they appear to be documented in kstat.h. class disk appears to be documented in /usr/include/sys/kstat.h. see kstat_io The class net is typically name,value pairs. I rely on the descriptive name as well as the source to determine what the parameter means. My x64 box does not contain a hat class. Sorry, but I do not know of a single source for the documentation. Next week I will research the existence of an RFE or create one. rick On Mon, Aug 11, 2008 at 01:26:39AM +0700, Igor Yegunov wrote: > X-Originating-IP: [76.96.62.94] > X-Authority-Analysis: v=1.0 c=1 a=ep_KMAzDAAAA:8 a=Zk3OmFfbAAAA:8 > a=5bjnAjGIbHGGqB9DHvgA:9 a=Ux4shVU3znIfeyEtTRwA:7 > a=Dy9Un829nBBOohavO4Rwv6n2YhgA:4 a=apKvyRWt5h0A:10 a=i5EirvfssmEA:10 > a=UvPOAeHLQvwA:10 a=RD1bzJOsQUcA:10 a=si9q_4b84H0A:10 a=EfJqPEOeqlMA:10 > a=TC1Ce7_l9HwA:10 a=3SmO1NJXDBsA:10 a=3d_ZfaeaEARdCoyriocA:9 > a=86tvtRk1gIRI5uFFGgcA:7 a=enlc6KuS1LS9z4Z5xjdn27cHEN8A:4 > a=37WNUvjkh6kA:10 > X-Originating-IP: [72.140.74.179] > From: Igor Yegunov <[EMAIL PROTECTED]> > To: rickey c weisner <[EMAIL PROTECTED]> > CC: perf-discuss@opensolaris.org > Subject: RE: [perf-discuss] about kstat > Date: Mon, 11 Aug 2008 01:26:39 +0700 > Importance: Normal > In-Reply-To: <[EMAIL PROTECTED]> > X-OriginalArrivalTime: 10 Aug 2008 18:26:40.0080 (UTC) > FILETIME=[A1B36500:01C8FB16] > > > Hi Rick, > > I am trying to use kstat for monitoring and performance turning but there is > not an information about a methodology. All information that I googled is > how to use the parameters and publishing a dump of results. It would be more > sense to give the steps dependent of mesured the previous results. I found > the description of the class cpu_stat in /usr/include/sys/ but where I can > find a description of other classes like disk, hat, net, etc? > > thank you, > Igor > > > Date: Sun, 10 Aug 2008 00:17:41 -0500 > > From: [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > > CC: perf-discuss@opensolaris.org > > Subject: Re: [perf-discuss] about kstat > > > > Igor, > > I have not discovered any all inclusive documentation. > > I have resorted to > > researching the source and include files whenever I want to > > make a new use of the kstat data. If there is a better way I am > > all ears. Is there any particular field you are interested in ? > > rick > > > > On Sat, Aug 09, 2008 at 05:57:37AM -0700, Igor wrote: > > > X-Originating-IP: [76.96.30.31] > > > X-Authority-Analysis: v=1.0 c=1 a=PIdugnyYV97K0FprzydTSA==:17 > > > a=n11yr4j5-2ddn9QjdjgA:9 a=_JAZoHchqERvdN_N5POLlp7DuJcA:4 > > > a=RD1bzJOsQUcA:10 a=TC1Ce7_l9HwA:10 a=4iXfik_MsjQA:10 > > > X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on > > > oss-mail1.opensolaris.org > > > X-Spam-Level: ** > > > X-Spam-Status: No, score=2.1 required=5.0 tests=AWL,FORGED_HOTMAIL_RCVD2, > > > RDNS_NONE autolearn=no version=3.2.3 > > > X-Original-To: perf-discuss@opensolaris.org > > > Delivered-To: perf-discuss@opensolaris.org > > > Date: Sat, 09 Aug 2008 05:57:37 PDT > > > From: Igor <[EMAIL PROTECTED]> > > > To: perf-discuss@opensolaris.org > > > In-Reply-To: <[EMAIL PROTECTED]> > > > X-OpenSolaris-URL: > > > http://www.opensolaris.org/jive/message.jspa?messageID=267433&tstart=0#2 > > > 67433 > > > Subject: Re: [perf-discuss] about kstat > > > X-BeenThere: perf-discuss@opensolaris.org > > > X-Mailman-Version: 2.1.9 > > > Precedence: list > > > List-Id: Performance General Discussion <perf-discuss.opensolaris.org> > > > List-Unsubscribe: > > > <http://mail.opensolaris.org/mailman/listinfo/perf-discuss>, > > > <mailto:[EMAIL PROTECTED]> > > > List-Archive: <http://mail.opensolaris.org/pipermail/perf-discuss> > > > List-Post: <mailto:perf-discuss@opensolaris.org> > > > List-Help: <mailto:[EMAIL PROTECTED]> > > > List-Subscribe: > > > <http://mail.opensolaris.org/mailman/listinfo/perf-discuss>, > > > <mailto:[EMAIL PROTECTED]> > > > Errors-To: [EMAIL PROTECTED] > > > > > > Rick, > > > that is good article how to use API but what about a description of each > > > field in kstat? I googled a lot of useless articles with just > > > performing kstat+args and kstat-response but nothing about description or > > > how people use it to analyze/tuning performance. There is a quick > > > explanation in SolarisInternals but not enough. I found a couple of > > > cpu-classes in /usr/include/sys/ but what about others? > > > > > > > > > This message posted from opensolaris.org > > > _______________________________________________ > > > perf-discuss mailing list > > > perf-discuss@opensolaris.org > > > > -- > > > > Rickey C. Weisner > > Software Development and Performance Specialist > > cell phone: 615-308-1147 > > email: [EMAIL PROTECTED] > > _________________________________________________________________ > Invite your mail contacts to join your friends list with Windows Live Spaces. > It's easy! > http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -- Rickey C. Weisner Software Development and Performance Specialist cell phone: 615-308-1147 email: [EMAIL PROTECTED] _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org