From jw137282@sac.sfbay.sun.com Sun Oct 25 20:23:09 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9Q3N9rJ004096
	for <psarc-ext@sac.sfbay.sun.com>; Sun, 25 Oct 2009 20:23:09 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id n9Q3N8bw024136;
	Sun, 25 Oct 2009 20:23:09 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS300C03QQH4R00@brm-avmta-1.central.sun.com>; Sun,
 25 Oct 2009 21:23:06 -0600 (MDT)
Received: from dm-sfbay-01.sfbay.sun.com ([129.145.155.118])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS3002KCQQH5360@brm-avmta-1.central.sun.com>; Sun,
 25 Oct 2009 21:23:05 -0600 (MDT)
Received: from sac.sfbay.sun.com (sac.SFBay.Sun.COM [129.146.226.132])
	by dm-sfbay-01.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4)
 with ESMTP id n9Q3N5xW020666; Sun, 25 Oct 2009 20:23:05 -0700 (PDT)
Received: from sac.sfbay.sun.com (localhost [127.0.0.1])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9Q3N4Zp004091; Sun,
 25 Oct 2009 20:23:04 -0700 (PDT)
Received: (from jw137282@localhost)
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8/Submit) id n9Q3N3Ln004087; Sun,
 25 Oct 2009 20:23:03 -0700 (PDT)
Date: Sun, 25 Oct 2009 20:23:03 -0700 (PDT)
From: James Walker <jw137282@sac.sfbay.sun.com>
Subject: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
To: PSARC-ext@sun.com
Cc: robert.sohigian@sun.com
Message-id: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
Status: RO
Content-Length: 2536

I'm sponsoring this familiarity case for Robert Sohigian. The requested
release binding is minor. The man pages have been posted in the
materials directory.

Template Version: @(#)sac_nextcase 1.68 02/23/09 SMI
This information is Copyright 2009 Sun Microsystems
1. Introduction
    1.1. Project/Component Working Name:
	 libstatgrab
    1.2. Name of Document Author/Supplier:
	 Author:  Robert Sohigian
    1.3  Date of This Document:
	25 October, 2009
4. Technical Description
Summary
=======

libstatgrab[1] is a library that provides cross platform access to statistics
about the system on which it is run. It is written in C and presents a
selection of useful interfaces which can be used to access key system
statistics including Linux and BSD sysctl-style and MRTG output format.
The current list of statistics includes CPU usage, memory utilisation,
disk usage, process counts, network traffic, disk I/O, and more. 

The package also includes a couple of useful tools. The first, saidar,
provides a curses-based interface to viewing the current state of the system.
The second, statgrab, gives a sysctl-style interface to the statistics
gathered by libstatgrab. 

Libstatgrab version 0.16 will be delivered as part of this proposal in
the SUNWlibstatgrab package. A minor release binding is requested. 


Dependencies
============

None


Interfaces
==========

Exported Interfaces			Classification	Comment
-------------------			--------------	--------------------
SUNWlibstatgrab				Uncommitted	Package

/usr/bin/saidar 			Uncommitted	Command
/usr/bin/statgrab			Uncommitted	Command
/usr/bin/statgrab-make-mrtg-config	Uncommitted	Config Script
/usr/bin/statgrab-make-mrtg-index	Uncommitted	Config Script
/usr/include/*            		Uncommitted	Header Files 
/usr/lib/libstatgrab.so.6.2.2		Uncommitted	32-bit Library
/usr/lib/libstatgrab.so.6		Uncommitted	Symbolic Link
/usr/lib/libstatgrab.so			Uncommitted	Symbolic Link
/usr/lib/pkgconfig/libstatgrab.pc	Uncommitted	Pkg Config Script

/usr/lib/64/libstatgrab.so.6.2.2	Uncommitted	64-bit Library
/usr/lib/64/libstatgrab.so      	Uncommitted	Symbolic Link
/usr/lib/64/libstatgrab.so.6     	Uncommitted	Symbolic Link
/usr/lib/64/pkgconfig/libstatgrab.pc 	Uncommitted	Pkg Config Script

*64 = sparcv9 and amd64


Reference Documents
===================
[1] http://www.i-scream.org/libstatgrab/

6. Resources and Schedule
    6.4. Steering Committee requested information
   	6.4.1. Consolidation C-team Name:
		SFW
    6.5. ARC review type: FastTrack
    6.6. ARC Exposure: open


From Darren.Moffat@sun.com Mon Oct 26 02:32:22 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9Q9WLUr025174
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 02:32:21 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n9Q9WJpL010859
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 26 Oct 2009 03:32:21 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS4008117TWR700@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 02:32:20 -0700 (PDT)
Received: from gmp-eb-inf-1.sun.com ([192.18.6.21])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS4006757TVQA10@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 26 Oct 2009 02:32:20 -0700 (PDT)
Received: from fe-emea-10.sun.com
 (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged))
	by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9Q9WI7F014470	for
 <PSARC-ext@sun.com>; Mon, 26 Oct 2009 09:32:19 +0000 (GMT)
Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS400A006DNH100@fe-emea-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 09:32:16 +0000 (GMT)
Received: from [192.168.1.105]
 (cpc2-rdng20-2-0-cust917.15-3.cable.virginmedia.com [86.28.167.150])
 by fe-emea-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS4008G17TFJXA0@fe-emea-10.sun.com>; Mon,
 26 Oct 2009 09:32:04 +0000 (GMT)
Date: Mon, 26 Oct 2009 09:32:03 +0000
From: Darren J Moffat <Darren.Moffat@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
Sender: Darren.Moffat@sun.com
To: James Walker <jw137282@sac.sfbay.sun.com>
Cc: PSARC-ext@sun.com, Robert.Sohigian@sun.com
Message-id: <4AE56C93.20209@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090929)
Status: RO
Content-Length: 1197

James Walker wrote:
> I'm sponsoring this familiarity case for Robert Sohigian. The requested
> release binding is minor. The man pages have been posted in the
> materials directory.
> 
> Template Version: @(#)sac_nextcase 1.68 02/23/09 SMI
> This information is Copyright 2009 Sun Microsystems
> 1. Introduction
>     1.1. Project/Component Working Name:
> 	 libstatgrab
>     1.2. Name of Document Author/Supplier:
> 	 Author:  Robert Sohigian
>     1.3  Date of This Document:
> 	25 October, 2009
> 4. Technical Description
> Summary
> =======
> 
> libstatgrab[1] is a library that provides cross platform access to statistics
> about the system on which it is run. It is written in C and presents a
> selection of useful interfaces which can be used to access key system
> statistics including Linux and BSD sysctl-style and MRTG output format.
> The current list of statistics includes CPU usage, memory utilisation,
> disk usage, process counts, network traffic, disk I/O, and more. 

What does it use on OpenSolaris ?  Does it use kstat ?  If so how does 
it use them ?

I can't see from this case what it consumes on Solaris and what type of 
stats I'd expect to get.

-- 
Darren J Moffat

From gdamore@sun.com Mon Oct 26 06:32:04 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9QDW4JJ029487
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 06:32:04 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail3mpk.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id n9QDW26M029108
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 26 Oct 2009 06:32:04 -0700 (PDT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS40091LIXGWM00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 06:32:04 -0700 (PDT)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS400HCTIXFEVD0@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 26 Oct 2009 06:32:03 -0700 (PDT)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9QDW3LU017564	for
 <PSARC-ext@sun.com>; Mon, 26 Oct 2009 06:32:03 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS400G00IWZ0000@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 06:32:03 -0700 (PDT)
Received: from [192.168.251.11] ([unknown] [76.93.15.33])
 by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS400FIMIXFKLF0@fe-sfbay-09.sun.com>; Mon,
 26 Oct 2009 06:32:03 -0700 (PDT)
Date: Mon, 26 Oct 2009 06:32:02 -0700
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
Sender: Garrett.Damore@sun.com
To: James Walker <jw137282@sac.sfbay.sun.com>
Cc: PSARC-ext@sun.com, Robert.Sohigian@sun.com
Message-id: <4AE5A4D2.2020406@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090909)
Status: RO
Content-Length: 3532

Mostly I like this, having reviewed the documentation on the website as 
well.

A few things I'd like to see in this case before I assert +1:

    1) a list of the actual interfaces (routines) provided... you'll 
need to provide man pages for them anyway, so this shouldn't be too 
onerous ... along with commitment levels for each (probably all Uncommitted)

    2) a list of interfaces being *imported*, along with the stability 
for each, for any non-public interfaces.  (I suspect that it uses 
several such interfaces, although I've not checked the code.  Some of 
the details may be challenging to collect.)

    3) for Network interfaces, I'd like to know how it collects the 
details -- does it use libdlpi?   Does it use kstats?  libdladm?  Will 
it show up vnics and other crossbow kinds of pseudo-interfaces?

    -- Garrett

James Walker wrote:
> I'm sponsoring this familiarity case for Robert Sohigian. The requested
> release binding is minor. The man pages have been posted in the
> materials directory.
>
> Template Version: @(#)sac_nextcase 1.68 02/23/09 SMI
> This information is Copyright 2009 Sun Microsystems
> 1. Introduction
>     1.1. Project/Component Working Name:
> 	 libstatgrab
>     1.2. Name of Document Author/Supplier:
> 	 Author:  Robert Sohigian
>     1.3  Date of This Document:
> 	25 October, 2009
> 4. Technical Description
> Summary
> =======
>
> libstatgrab[1] is a library that provides cross platform access to statistics
> about the system on which it is run. It is written in C and presents a
> selection of useful interfaces which can be used to access key system
> statistics including Linux and BSD sysctl-style and MRTG output format.
> The current list of statistics includes CPU usage, memory utilisation,
> disk usage, process counts, network traffic, disk I/O, and more. 
>
> The package also includes a couple of useful tools. The first, saidar,
> provides a curses-based interface to viewing the current state of the system.
> The second, statgrab, gives a sysctl-style interface to the statistics
> gathered by libstatgrab. 
>
> Libstatgrab version 0.16 will be delivered as part of this proposal in
> the SUNWlibstatgrab package. A minor release binding is requested. 
>
>
> Dependencies
> ============
>
> None
>
>
> Interfaces
> ==========
>
> Exported Interfaces			Classification	Comment
> -------------------			--------------	--------------------
> SUNWlibstatgrab				Uncommitted	Package
>
> /usr/bin/saidar 			Uncommitted	Command
> /usr/bin/statgrab			Uncommitted	Command
> /usr/bin/statgrab-make-mrtg-config	Uncommitted	Config Script
> /usr/bin/statgrab-make-mrtg-index	Uncommitted	Config Script
> /usr/include/*            		Uncommitted	Header Files 
> /usr/lib/libstatgrab.so.6.2.2		Uncommitted	32-bit Library
> /usr/lib/libstatgrab.so.6		Uncommitted	Symbolic Link
> /usr/lib/libstatgrab.so			Uncommitted	Symbolic Link
> /usr/lib/pkgconfig/libstatgrab.pc	Uncommitted	Pkg Config Script
>
> /usr/lib/64/libstatgrab.so.6.2.2	Uncommitted	64-bit Library
> /usr/lib/64/libstatgrab.so      	Uncommitted	Symbolic Link
> /usr/lib/64/libstatgrab.so.6     	Uncommitted	Symbolic Link
> /usr/lib/64/pkgconfig/libstatgrab.pc 	Uncommitted	Pkg Config Script
>
> *64 = sparcv9 and amd64
>
>
> Reference Documents
> ===================
> [1] http://www.i-scream.org/libstatgrab/
>
> 6. Resources and Schedule
>     6.4. Steering Committee requested information
>    	6.4.1. Consolidation C-team Name:
> 		SFW
>     6.5. ARC review type: FastTrack
>     6.6. ARC Exposure: open
>
>   


From Nicolas.Williams@sun.com Mon Oct 26 08:52:05 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9QFq4ZB001327
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 08:52:04 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n9QFq1mp015386;
	Mon, 26 Oct 2009 15:52:02 GMT
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS400A01PEPL500@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 26 Oct 2009 08:52:01 -0700 (PDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS400AAEPEOP0E0@nwk-avmta-1.sfbay.Sun.COM>; Mon,
 26 Oct 2009 08:52:01 -0700 (PDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n9QFm47F008663;
 Mon, 26 Oct 2009 10:48:04 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n9QFm4gE008662; Mon,
 26 Oct 2009 10:48:04 -0500 (CDT)
Date: Mon, 26 Oct 2009 10:48:04 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE56C93.20209@Sun.COM>
To: Darren J Moffat <Darren.Moffat@sun.com>
Cc: James Walker <jw137282@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        Robert.Sohigian@sun.com
Message-id: <20091026154804.GI892@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE56C93.20209@Sun.COM>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 724

On Mon, Oct 26, 2009 at 09:32:03AM +0000, Darren J Moffat wrote:
> What does it use on OpenSolaris ?  Does it use kstat ?  If so how does 
> it use them ?
> 
> I can't see from this case what it consumes on Solaris and what type of 
> stats I'd expect to get.

We had an earlier case that proposed enabling remote access to kstats,
and that case had to be withdrawn on account of the instability of
kstats.  The same logic would have to apply here, but then, I suspect
that it won't because: a) Linux familiarity rules will apply, b) my
sense from the libstatgrab home page is that it uses only a subset of
stats that are reasonably common across many operating systems,
therefore likely to be stable in practice.

Nico
-- 

From Nicolas.Williams@sun.com Mon Oct 26 08:53:26 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9QFrPlB001342
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 08:53:25 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n9QFrEkJ016123;
	Mon, 26 Oct 2009 15:53:23 GMT
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS400I0BPGW7A00@nwk-avmta-2.sfbay.sun.com>; Mon,
 26 Oct 2009 08:53:20 -0700 (PDT)
Received: from binky.Central.Sun.COM ([129.153.128.104])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS400CTWPGW6570@nwk-avmta-2.sfbay.sun.com>; Mon,
 26 Oct 2009 08:53:20 -0700 (PDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1])
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n9QFnN1l008679;
 Mon, 26 Oct 2009 10:49:23 -0500 (CDT)
Received: (from nw141292@localhost)
	by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n9QFnN5V008678; Mon,
 26 Oct 2009 10:49:23 -0500 (CDT)
Date: Mon, 26 Oct 2009 10:49:23 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <20091026154804.GI892@Sun.COM>
To: Darren J Moffat <Darren.Moffat@sun.com>
Cc: James Walker <jw137282@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        Robert.Sohigian@sun.com
Message-id: <20091026154922.GJ907@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE56C93.20209@Sun.COM> <20091026154804.GI892@Sun.COM>
X-Authentication-warning: binky.Central.Sun.COM: nw141292 set sender to
 Nicolas.Williams@sun.com using -f
User-Agent: Mutt/1.5.7i
Status: RO
Content-Length: 895

On Mon, Oct 26, 2009 at 10:48:04AM -0500, Nicolas Williams wrote:
> On Mon, Oct 26, 2009 at 09:32:03AM +0000, Darren J Moffat wrote:
> > What does it use on OpenSolaris ?  Does it use kstat ?  If so how does 
> > it use them ?
> > 
> > I can't see from this case what it consumes on Solaris and what type of 
> > stats I'd expect to get.
> 
> We had an earlier case that proposed enabling remote access to kstats,
> and that case had to be withdrawn on account of the instability of
> kstats.  The same logic would have to apply here, but then, I suspect
> that it won't because: a) Linux familiarity rules will apply, b) my
> sense from the libstatgrab home page is that it uses only a subset of
> stats that are reasonably common across many operating systems,
> therefore likely to be stable in practice.

Oh, but I think I misunderstood: libstatgrab doesn't provide a remote
stats protocol.

From Darren.Moffat@Sun.COM Mon Oct 26 09:04:41 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9QG4e8C001973
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 09:04:41 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n9QG4YYU022803
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 26 Oct 2009 16:04:40 GMT
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS40000DPZP9W00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 10:04:37 -0600 (MDT)
Received: from gmp-eb-inf-2.sun.com ([192.18.6.24])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS400KWHPZPDQ20@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 26 Oct 2009 10:04:37 -0600 (MDT)
Received: from fe-emea-10.sun.com
 (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged))
	by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9QG4ais011942	for
 <PSARC-ext@sun.com>; Mon, 26 Oct 2009 16:04:36 +0000 (GMT)
Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS400G00OOB7900@fe-emea-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 16:04:22 +0000 (GMT)
Received: from [192.168.1.105]
 (cpc2-rdng20-2-0-cust917.15-3.cable.virginmedia.com [86.28.167.150])
 by fe-emea-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS400JVJPZ1AO30@fe-emea-10.sun.com>; Mon,
 26 Oct 2009 16:04:14 +0000 (GMT)
Date: Mon, 26 Oct 2009 16:04:13 +0000
From: Darren J Moffat <Darren.Moffat@Sun.COM>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <20091026154804.GI892@Sun.COM>
Sender: Darren.Moffat@Sun.COM
To: Nicolas Williams <Nicolas.Williams@Sun.COM>
Cc: James Walker <jw137282@sac.sfbay.sun.com>, PSARC-ext@Sun.COM,
        Robert.Sohigian@Sun.COM
Message-id: <4AE5C87D.4060701@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE56C93.20209@Sun.COM> <20091026154804.GI892@Sun.COM>
User-Agent: Thunderbird 2.0.0.23 (X11/20090929)
Status: RO
Content-Length: 948

Nicolas Williams wrote:
> On Mon, Oct 26, 2009 at 09:32:03AM +0000, Darren J Moffat wrote:
>> What does it use on OpenSolaris ?  Does it use kstat ?  If so how does 
>> it use them ?
>>
>> I can't see from this case what it consumes on Solaris and what type of 
>> stats I'd expect to get.
> 
> We had an earlier case that proposed enabling remote access to kstats,
> and that case had to be withdrawn on account of the instability of
> kstats.  The same logic would have to apply here, but then, I suspect
> that it won't because: a) Linux familiarity rules will apply, b) my
> sense from the libstatgrab home page is that it uses only a subset of
> stats that are reasonably common across many operating systems,
> therefore likely to be stable in practice.

I can't see from the case what they are and what OpenSolaris interfaces 
are consumed to get them.

The submitted case talks about Linux and BSD not not OpenSolaris.

-- 
Darren J Moffat

From robs@sun.com Mon Oct 26 17:48:24 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9R0mNhi013046
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 17:48:24 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n9R0mDV1012230
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Tue, 27 Oct 2009 08:48:22 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS500803E8KNJ00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 17:48:20 -0700 (PDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS500M0NE8JSX70@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 26 Oct 2009 17:48:19 -0700 (PDT)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9R0mJ18026753	for
 <PSARC-ext@sun.com>; Mon, 26 Oct 2009 17:48:19 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS500500E2Q7200@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 17:48:19 -0700 (PDT)
Received: from [192.168.1.149] ([unknown] [114.246.164.23])
 by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS5005FLE8GY000@fe-sfbay-09.sun.com>; Mon,
 26 Oct 2009 17:48:19 -0700 (PDT)
Date: Tue, 27 Oct 2009 08:47:46 +0800
From: Robs <robs@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE5C87D.4060701@Sun.COM>
Sender: Robert.Sohigian@sun.com
To: Darren J Moffat <Darren.Moffat@sun.com>
Cc: Nicolas Williams <Nicolas.Williams@sun.com>,
        James Walker <jw137282@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        Robert.Sohigian@sun.com
Message-id: <4AE64332.3020504@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE56C93.20209@Sun.COM> <20091026154804.GI892@Sun.COM>
 <4AE5C87D.4060701@Sun.COM>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.1) Gecko/20090721
 Lightning/1.0pre Thunderbird/3.0b3
Status: RO
Content-Length: 1896

Hi.

The supporting materials are here:

    http://sac.sfbay/arc/PSARC/2009/583/materials/

The DESCRIPTION field of the statgrab(3) man page gives a good overview 
of the package, including how it is implemented on Solaris:

    http://sac.sfbay/arc/PSARC/2009/583/materials/statgrab.3.txt

kstat is indeed used. It is in cpu_stats.c and disk_stats.c, which can 
be seen here:

    
/net/spidey.sfbay/builds/robs/usr/src/lib/libstatgrab/libstatgrab-0.16/src/libstatgrab

Output from the two included commands are here:

    http://sac.sfbay/arc/PSARC/2009/583/materials/statgrab-out.txt
    http://sac.sfbay/arc/PSARC/2009/583/materials/saidar-out.png

saidar is a curses-based tool, so I took a screenshot.

NOTE: although spidey.sfbay shows-up in the output for both commands, 
the commands were run on another system... it's just that spidey.sfbay 
was being accessed.



Regards,

--Robs





On 10/27/09 12:04 AM, Darren J Moffat wrote:
> Nicolas Williams wrote:
>> On Mon, Oct 26, 2009 at 09:32:03AM +0000, Darren J Moffat wrote:
>>> What does it use on OpenSolaris ?  Does it use kstat ?  If so how 
>>> does it use them ?
>>>
>>> I can't see from this case what it consumes on Solaris and what type 
>>> of stats I'd expect to get.
>>
>> We had an earlier case that proposed enabling remote access to kstats,
>> and that case had to be withdrawn on account of the instability of
>> kstats.  The same logic would have to apply here, but then, I suspect
>> that it won't because: a) Linux familiarity rules will apply, b) my
>> sense from the libstatgrab home page is that it uses only a subset of
>> stats that are reasonably common across many operating systems,
>> therefore likely to be stable in practice.
>
> I can't see from the case what they are and what OpenSolaris 
> interfaces are consumed to get them.
>
> The submitted case talks about Linux and BSD not not OpenSolaris.
>

From gdamore@sun.com Mon Oct 26 18:46:37 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9R1kanx013823
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 18:46:37 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n9R1kRfe008712
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Tue, 27 Oct 2009 09:46:28 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS500K01GXFTD00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 18:46:27 -0700 (PDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS5003EHGXF2660@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 26 Oct 2009 18:46:27 -0700 (PDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9R1kQuU029460	for
 <PSARC-ext@sun.com>; Mon, 26 Oct 2009 18:46:26 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS500400GMI9100@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 18:46:26 -0700 (PDT)
Received: from [192.168.251.11] ([unknown] [76.93.15.33])
 by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS500EEYGXE0060@fe-sfbay-10.sun.com>; Mon,
 26 Oct 2009 18:46:26 -0700 (PDT)
Date: Mon, 26 Oct 2009 18:46:18 -0700
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE64332.3020504@sun.com>
Sender: Garrett.Damore@sun.com
To: Robs <robs@sun.com>
Cc: Darren J Moffat <Darren.Moffat@sun.com>,
        Nicolas Williams <Nicolas.Williams@sun.com>,
        James Walker <jw137282@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        Robert.Sohigian@sun.com
Message-id: <4AE650EA.5000405@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE56C93.20209@Sun.COM> <20091026154804.GI892@Sun.COM>
 <4AE5C87D.4060701@Sun.COM> <4AE64332.3020504@sun.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090909)
Status: RO
Content-Length: 2505

Robs wrote:
> Hi.
>
> The supporting materials are here:
>
>    http://sac.sfbay/arc/PSARC/2009/583/materials/
>
> The DESCRIPTION field of the statgrab(3) man page gives a good 
> overview of the package, including how it is implemented on Solaris:
>
>    http://sac.sfbay/arc/PSARC/2009/583/materials/statgrab.3.txt

Actually it doesn't mention anything other than some details about the 
device tree.  No mention of actual kstats is given at all.

>
> kstat is indeed used. It is in cpu_stats.c and disk_stats.c, which can 
> be seen here:
>
>    
> /net/spidey.sfbay/builds/robs/usr/src/lib/libstatgrab/libstatgrab-0.16/src/libstatgrab 
>

Grunging through the source code to figure out the interfaces imported 
is the job of the submitter, not of the reviewers.  Please go through, 
and find out which kstats are used (as well as any other calls -- does 
it use network kstats, for example, or does it use dladm?  How does it 
identify devices?)  The details should be in the case materials 
presented here.

    - Garrett
>
> Output from the two included commands are here:
>
>    http://sac.sfbay/arc/PSARC/2009/583/materials/statgrab-out.txt
>    http://sac.sfbay/arc/PSARC/2009/583/materials/saidar-out.png
>
> saidar is a curses-based tool, so I took a screenshot.
>
> NOTE: although spidey.sfbay shows-up in the output for both commands, 
> the commands were run on another system... it's just that spidey.sfbay 
> was being accessed.
>
>
>
> Regards,
>
> --Robs
>
>
>
>
>
> On 10/27/09 12:04 AM, Darren J Moffat wrote:
>> Nicolas Williams wrote:
>>> On Mon, Oct 26, 2009 at 09:32:03AM +0000, Darren J Moffat wrote:
>>>> What does it use on OpenSolaris ?  Does it use kstat ?  If so how 
>>>> does it use them ?
>>>>
>>>> I can't see from this case what it consumes on Solaris and what 
>>>> type of stats I'd expect to get.
>>>
>>> We had an earlier case that proposed enabling remote access to kstats,
>>> and that case had to be withdrawn on account of the instability of
>>> kstats.  The same logic would have to apply here, but then, I suspect
>>> that it won't because: a) Linux familiarity rules will apply, b) my
>>> sense from the libstatgrab home page is that it uses only a subset of
>>> stats that are reasonably common across many operating systems,
>>> therefore likely to be stable in practice.
>>
>> I can't see from the case what they are and what OpenSolaris 
>> interfaces are consumed to get them.
>>
>> The submitted case talks about Linux and BSD not not OpenSolaris.
>>


From robs@sun.com Mon Oct 26 20:17:35 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9R3HYdw015103
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 20:17:35 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n9R3HXuk055631
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 26 Oct 2009 21:17:34 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS500A07L58RY00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 20:17:32 -0700 (PDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS5003VTL582GA0@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 26 Oct 2009 20:17:32 -0700 (PDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9R3HWif002662	for
 <PSARC-ext@sun.com>; Mon, 26 Oct 2009 20:17:32 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS500G00KYCY700@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 20:17:32 -0700 (PDT)
Received: from [129.158.145.245] ([unknown] [129.158.145.245])
 by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS500A2HL55DF30@fe-sfbay-10.sun.com>; Mon,
 26 Oct 2009 20:17:32 -0700 (PDT)
Date: Tue, 27 Oct 2009 11:17:16 +0800
From: Robs <robs@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE650EA.5000405@sun.com>
Sender: Robert.Sohigian@sun.com
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: Darren J Moffat <Darren.Moffat@sun.com>,
        Nicolas Williams <Nicolas.Williams@sun.com>,
        James Walker <jw137282@sac.sfbay.sun.com>, PSARC-ext@sun.com,
        Robert.Sohigian@sun.com
Message-id: <4AE6663C.5020907@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE56C93.20209@Sun.COM> <20091026154804.GI892@Sun.COM>
 <4AE5C87D.4060701@Sun.COM> <4AE64332.3020504@sun.com>
 <4AE650EA.5000405@sun.com>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.4pre)
 Gecko/20090923 Lightning/1.0pre Thunderbird/3.0b4
Status: RO
Content-Length: 3059



On 10/27/09 09:46 AM, Garrett D'Amore wrote:
> Robs wrote:
>> Hi.
>>
>> The supporting materials are here:
>>
>>    http://sac.sfbay/arc/PSARC/2009/583/materials/
>>
>> The DESCRIPTION field of the statgrab(3) man page gives a good 
>> overview of the package, including how it is implemented on Solaris:
>>
>>    http://sac.sfbay/arc/PSARC/2009/583/materials/statgrab.3.txt
>
> Actually it doesn't mention anything other than some details about the 
> device tree.  No mention of actual kstats is given at all.
Right. Wasn't meant to cover kstats, just give an overview of the 
package. :)
>
>>
>> kstat is indeed used. It is in cpu_stats.c and disk_stats.c, which 
>> can be seen here:
>>
>>    
>> /net/spidey.sfbay/builds/robs/usr/src/lib/libstatgrab/libstatgrab-0.16/src/libstatgrab 
>>
>
> Grunging through the source code to figure out the interfaces imported 
> is the job of the submitter, not of the reviewers. 
Understood.

However, the files in question are only 289 and 1026 lines in length, 
and this is certainly out of my area of expertise.

More below...
> Please go through, and find out which kstats are used (as well as any 
> other calls -- does it use network kstats, for example, or does it use 
> dladm?  How does it identify devices?)  The details should be in the 
> case materials presented here.
If someone would help me offline with this, I'd really appreciate it.

It'd be a good opportunity for me to learn, and will probably make this 
case go through a lot easier.


Thanks!


--Robs

>
>    - Garrett
>>
>> Output from the two included commands are here:
>>
>>    http://sac.sfbay/arc/PSARC/2009/583/materials/statgrab-out.txt
>>    http://sac.sfbay/arc/PSARC/2009/583/materials/saidar-out.png
>>
>> saidar is a curses-based tool, so I took a screenshot.
>>
>> NOTE: although spidey.sfbay shows-up in the output for both commands, 
>> the commands were run on another system... it's just that 
>> spidey.sfbay was being accessed.
>>
>>
>>
>> Regards,
>>
>> --Robs
>>
>>
>>
>>
>>
>> On 10/27/09 12:04 AM, Darren J Moffat wrote:
>>> Nicolas Williams wrote:
>>>> On Mon, Oct 26, 2009 at 09:32:03AM +0000, Darren J Moffat wrote:
>>>>> What does it use on OpenSolaris ?  Does it use kstat ?  If so how 
>>>>> does it use them ?
>>>>>
>>>>> I can't see from this case what it consumes on Solaris and what 
>>>>> type of stats I'd expect to get.
>>>>
>>>> We had an earlier case that proposed enabling remote access to kstats,
>>>> and that case had to be withdrawn on account of the instability of
>>>> kstats.  The same logic would have to apply here, but then, I suspect
>>>> that it won't because: a) Linux familiarity rules will apply, b) my
>>>> sense from the libstatgrab home page is that it uses only a subset of
>>>> stats that are reasonably common across many operating systems,
>>>> therefore likely to be stable in practice.
>>>
>>> I can't see from the case what they are and what OpenSolaris 
>>> interfaces are consumed to get them.
>>>
>>> The submitted case talks about Linux and BSD not not OpenSolaris.
>>>
>

From James.Walker@Sun.COM Mon Oct 26 20:22:18 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9R3MHxR015247
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 20:22:17 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n9R3MFKm024662
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Tue, 27 Oct 2009 11:22:16 +0800 (SGT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS500301LD3A500@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 21:22:15 -0600 (MDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS500EU0LD2JPC0@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 26 Oct 2009 21:22:14 -0600 (MDT)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n9R3MELs019337	for
 <PSARC-ext@sun.com>; Tue, 27 Oct 2009 03:22:14 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS500500KYZTF00@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 21:22:14 -0600 (MDT)
Received: from [172.20.25.153] ([unknown] [172.20.25.153])
 by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit
 (built Jul  2 2009)) with ESMTPSA id <0KS500FUXLCSCUE0@mail-amer.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 26 Oct 2009 21:22:04 -0600 (MDT)
Date: Mon, 26 Oct 2009 21:25:11 -0600
From: Jim Walker <James.Walker@Sun.COM>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE6663C.5020907@sun.com>
Sender: James.Walker@Sun.COM
To: Robert.Sohigian@Sun.COM
Cc: PSARC-ext@Sun.COM
Reply-to: James.Walker@Sun.COM
Message-id: <4AE66817.8080204@sun.com>
Organization: Sun Microsystems, Inc.
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE56C93.20209@Sun.COM> <20091026154804.GI892@Sun.COM>
 <4AE5C87D.4060701@Sun.COM> <4AE64332.3020504@sun.com>
 <4AE650EA.5000405@sun.com> <4AE6663C.5020907@sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080728)
Status: RO
Content-Length: 232

Robs wrote:
> If someone would help me offline with this, I'd really appreciate it.

Rob,

I can help you. It's a reasonable request.

Cheers,
Jim

-- 
Jim Walker, http://blogs.sun.com/jwalker
Sun Microsystems, Broomfield, Colorado

From robs@sun.com Mon Oct 26 20:23:54 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9R3NrkQ015262
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 26 Oct 2009 20:23:54 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n9R3NRMY025281
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Tue, 27 Oct 2009 11:23:52 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS500K01LFSH000@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 20:23:52 -0700 (PDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS500IQ0LFR7A90@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 26 Oct 2009 20:23:51 -0700 (PDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9R3NpVk002859	for
 <PSARC-ext@sun.com>; Mon, 26 Oct 2009 20:23:51 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS500K00LEV0A00@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 20:23:51 -0700 (PDT)
Received: from [129.158.145.245] ([unknown] [129.158.145.245])
 by fe-sfbay-10.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS500AV9LFKDF30@fe-sfbay-10.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 26 Oct 2009 20:23:46 -0700 (PDT)
Date: Tue, 27 Oct 2009 11:23:36 +0800
From: Robs <robs@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE66817.8080204@sun.com>
Sender: Robert.Sohigian@sun.com
To: James.Walker@sun.com
Cc: Robert.Sohigian@sun.com, PSARC-ext@sun.com
Message-id: <4AE667B8.4060607@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE56C93.20209@Sun.COM> <20091026154804.GI892@Sun.COM>
 <4AE5C87D.4060701@Sun.COM> <4AE64332.3020504@sun.com>
 <4AE650EA.5000405@sun.com> <4AE6663C.5020907@sun.com>
 <4AE66817.8080204@sun.com>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.4pre)
 Gecko/20090923 Lightning/1.0pre Thunderbird/3.0b4
Status: RO
Content-Length: 248

Yep, thanks.

Definitely agree. :)

--Robs


On 10/27/09 11:25 AM, Jim Walker wrote:
> Robs wrote:
>> If someone would help me offline with this, I'd really appreciate it.
>
> Rob,
>
> I can help you. It's a reasonable request.
>
> Cheers,
> Jim
>

From James.Walker@sun.com Wed Oct 28 01:28:54 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9S8Sr5L009733
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 28 Oct 2009 01:28:54 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n9S8SdMN001993
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Wed, 28 Oct 2009 08:28:53 GMT
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS700D01U83UU00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 01:28:51 -0700 (PDT)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS700LZKU829170@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Wed,
 28 Oct 2009 01:28:51 -0700 (PDT)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n9S8SoQ3023120	for
 <PSARC-ext@sun.com>; Wed, 28 Oct 2009 08:28:50 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS700800U7FOX00@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 02:28:50 -0600 (MDT)
Received: from c-24-8-149-144.hsd1.co.comcast.net ([unknown] [129.150.32.121])
 by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS700F4QU82ZQ60@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 02:28:50 -0600 (MDT)
Date: Wed, 28 Oct 2009 02:28:50 -0600
From: Jim Walker <James.Walker@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE5A4D2.2020406@sun.com>
Sender: James.Walker@sun.com
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: PSARC-ext@sun.com, Robert.Sohigian@sun.com
Reply-to: James.Walker@sun.com
Message-id: <4AE800C2.3060703@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
Status: RO
Content-Length: 1571

Garrett D'Amore wrote:
> Mostly I like this, having reviewed the documentation on the website as 
> well.
> 
> A few things I'd like to see in this case before I assert +1:
> 
>    1) a list of the actual interfaces (routines) provided... you'll need 
> to provide man pages for them anyway, so this shouldn't be too onerous 
> ... along with commitment levels for each (probably all Uncommitted)
> 
>    2) a list of interfaces being *imported*, along with the stability 
> for each, for any non-public interfaces.  (I suspect that it uses 
> several such interfaces, although I've not checked the code.  Some of 
> the details may be challenging to collect.)
> 
>    3) for Network interfaces, I'd like to know how it collects the 
> details -- does it use libdlpi?   Does it use kstats?  libdladm?  Will 
> it show up vnics and other crossbow kinds of pseudo-interfaces?

The project team has updated the proposal.txt file
with the requested information.

http://sac.sfbay/arc/PSARC/2009/583/proposal.txt
http://arc.opensolaris.org/caselog/PSARC/2009/583/proposal.txt
(may not be pushed yet)

In addition, output from another statgrab run is provided that
shows crossbow vnic information. kstats is used.

http://sac.sfbay/arc/PSARC/2009/583/materials/statgrab.vnic.txt

net.vnic0.collisions = 0
net.vnic0.duplex = unknown
net.vnic0.ierrors = 0
net.vnic0.interface_name = vnic0
net.vnic0.ipackets = 0
net.vnic0.oerrors = 0
net.vnic0.opackets = 31
net.vnic0.rx = 0
net.vnic0.speed = 0
net.vnic0.systime = 1256701191
net.vnic0.tx = 2152
net.vnic0.up = true

Cheers,
Jim

From Darren.Moffat@sun.com Wed Oct 28 03:04:02 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9SA40hv011189
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 28 Oct 2009 03:04:01 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n9SA3h4x026888
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Wed, 28 Oct 2009 10:03:59 GMT
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS70031LYMK3O00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 03:03:56 -0700 (PDT)
Received: from gmp-eb-inf-1.sun.com ([192.18.6.21])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS700L9RYMJ8LE0@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Wed,
 28 Oct 2009 03:03:56 -0700 (PDT)
Received: from fe-emea-09.sun.com
 (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged))
	by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9SA3tJ9022798	for
 <PSARC-ext@sun.com>; Wed, 28 Oct 2009 10:03:55 +0000 (GMT)
Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS700A00XG05E00@fe-emea-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 10:03:46 +0000 (GMT)
Received: from [192.168.1.105]
 (cpc2-rdng20-2-0-cust917.15-3.cable.virginmedia.com [86.28.167.150])
 by fe-emea-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS700395YM3DRE0@fe-emea-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 10:03:39 +0000 (GMT)
Date: Wed, 28 Oct 2009 10:03:39 +0000
From: Darren J Moffat <Darren.Moffat@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE800C2.3060703@sun.com>
Sender: Darren.Moffat@sun.com
To: James.Walker@sun.com
Cc: "Garrett D'Amore" <gdamore@sun.com>, PSARC-ext@sun.com,
        Robert.Sohigian@sun.com
Message-id: <4AE816FB.8040905@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090929)
Status: RO
Content-Length: 1042

> libstatgrab works with root and non-root privileges. If root privileges
> are given, then libstatgrab returns more information. The sg_init()
> function performs all the one-time initialization including operations
> that use setuid/setgid privileges if root privilege is used.  Afterwards,
> sg_drop_privileges() is used to discard setuid/setgid privileges. 
> The following code is common in commands using libstatgrab:

How does this fit with OpenSolaris given we don't actually use a uid==0 
is all powerful model anymore ?  setuid root does still work they way it 
used to but we try not to document things that away any more; instead 
say which privileges are required.

What operations that libstatgrab does, on OpenSolaris, require privilege 
and what privileges are they ? [ not that root is NOT a privilege it is 
a userid that by default happens to have all privileges ].

kstats don't need privileges to view them anyway, so I'm not sure what 
operations that libstatgrab provides would need any privilege.

-- 
Darren J Moffat

From gdamore@sun.com Wed Oct 28 07:19:29 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9SEJSj0014439
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 28 Oct 2009 07:19:29 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n9SEJRQX016521
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Wed, 28 Oct 2009 14:19:28 GMT
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS800007AGDCY00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 07:19:25 -0700 (PDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS800H3LAGC3650@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Wed,
 28 Oct 2009 07:19:24 -0700 (PDT)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9SEJO1V027682	for
 <PSARC-ext@sun.com>; Wed, 28 Oct 2009 07:19:24 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS800500AEN0400@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 07:19:24 -0700 (PDT)
Received: from [192.168.251.11] ([unknown] [76.93.15.33])
 by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS80057PAGC9N80@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 07:19:24 -0700 (PDT)
Date: Wed, 28 Oct 2009 07:19:24 -0700
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE816FB.8040905@Sun.COM>
Sender: Garrett.Damore@sun.com
To: Darren J Moffat <Darren.Moffat@sun.com>
Cc: James.Walker@sun.com, PSARC-ext@sun.com, Robert.Sohigian@sun.com
Message-id: <4AE852EC.70608@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE816FB.8040905@Sun.COM>
User-Agent: Thunderbird 2.0.0.22 (X11/20090909)
Status: RO
Content-Length: 1301

Darren J Moffat wrote:
>> libstatgrab works with root and non-root privileges. If root privileges
>> are given, then libstatgrab returns more information. The sg_init()
>> function performs all the one-time initialization including operations
>> that use setuid/setgid privileges if root privilege is used.  
>> Afterwards,
>> sg_drop_privileges() is used to discard setuid/setgid privileges. The 
>> following code is common in commands using libstatgrab:
>
> How does this fit with OpenSolaris given we don't actually use a 
> uid==0 is all powerful model anymore ?  setuid root does still work 
> they way it used to but we try not to document things that away any 
> more; instead say which privileges are required.
>
> What operations that libstatgrab does, on OpenSolaris, require 
> privilege and what privileges are they ? [ not that root is NOT a 
> privilege it is a userid that by default happens to have all 
> privileges ].
>
> kstats don't need privileges to view them anyway, so I'm not sure what 
> operations that libstatgrab provides would need any privilege.
>
I think it was using root privilege to access some portions of the 
device tree.  (Accessing the information from the prom requires root, IIRC.)

This should be reevaluated, because it shouldn't be needed.

    - Garrett

From gdamore@sun.com Wed Oct 28 07:21:40 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9SELdXg014454
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 28 Oct 2009 07:21:40 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id n9SELawi014622
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Wed, 28 Oct 2009 22:21:38 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS800C1LAK1J600@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 07:21:37 -0700 (PDT)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS8007B7AK0MX30@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Wed,
 28 Oct 2009 07:21:36 -0700 (PDT)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9SELa1I005358	for
 <PSARC-ext@sun.com>; Wed, 28 Oct 2009 07:21:36 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS800500AEN0400@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 07:21:36 -0700 (PDT)
Received: from [192.168.251.11] ([unknown] [76.93.15.33])
 by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS8005W6AJP9N80@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 28 Oct 2009 07:21:25 -0700 (PDT)
Date: Wed, 28 Oct 2009 07:21:24 -0700
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE800C2.3060703@sun.com>
Sender: Garrett.Damore@sun.com
To: James.Walker@sun.com
Cc: PSARC-ext@sun.com, Robert.Sohigian@sun.com
Message-id: <4AE85364.7030604@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090909)
Status: RO
Content-Length: 1972

Can you add *which* kstats are being used?  Individual kstats are 
normally not documented, and some of them are more volatile than 
others.  If this case is going to use kstats, then I think we need to 
document which ones are used in case someone decides to change them in 
the future.

Thanks.

    - Garrett

Jim Walker wrote:
> Garrett D'Amore wrote:
>> Mostly I like this, having reviewed the documentation on the website 
>> as well.
>>
>> A few things I'd like to see in this case before I assert +1:
>>
>>    1) a list of the actual interfaces (routines) provided... you'll 
>> need to provide man pages for them anyway, so this shouldn't be too 
>> onerous ... along with commitment levels for each (probably all 
>> Uncommitted)
>>
>>    2) a list of interfaces being *imported*, along with the stability 
>> for each, for any non-public interfaces.  (I suspect that it uses 
>> several such interfaces, although I've not checked the code.  Some of 
>> the details may be challenging to collect.)
>>
>>    3) for Network interfaces, I'd like to know how it collects the 
>> details -- does it use libdlpi?   Does it use kstats?  libdladm?  
>> Will it show up vnics and other crossbow kinds of pseudo-interfaces?
>
> The project team has updated the proposal.txt file
> with the requested information.
>
> http://sac.sfbay/arc/PSARC/2009/583/proposal.txt
> http://arc.opensolaris.org/caselog/PSARC/2009/583/proposal.txt
> (may not be pushed yet)
>
> In addition, output from another statgrab run is provided that
> shows crossbow vnic information. kstats is used.
>
> http://sac.sfbay/arc/PSARC/2009/583/materials/statgrab.vnic.txt
>
> net.vnic0.collisions = 0
> net.vnic0.duplex = unknown
> net.vnic0.ierrors = 0
> net.vnic0.interface_name = vnic0
> net.vnic0.ipackets = 0
> net.vnic0.oerrors = 0
> net.vnic0.opackets = 31
> net.vnic0.rx = 0
> net.vnic0.speed = 0
> net.vnic0.systime = 1256701191
> net.vnic0.tx = 2152
> net.vnic0.up = true
>
> Cheers,
> Jim


From James.Walker@sun.com Thu Oct 29 01:35:40 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9T8ZeY6020859
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 29 Oct 2009 01:35:40 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n9T8ZbM9003486
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 29 Oct 2009 02:35:39 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS900401P7FSN00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 29 Oct 2009 01:35:39 -0700 (PDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS9007GAP7EHPE0@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 29 Oct 2009 01:35:38 -0700 (PDT)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n9T8Zcxi009999	for
 <PSARC-ext@sun.com>; Thu, 29 Oct 2009 08:35:38 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS900F00OQOFH00@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 29 Oct 2009 02:35:38 -0600 (MDT)
Received: from c-24-8-149-144.hsd1.co.comcast.net ([unknown] [129.150.176.249])
 by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS9003IEP7DV060@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 29 Oct 2009 02:35:38 -0600 (MDT)
Date: Thu, 29 Oct 2009 02:35:37 -0600
From: Jim Walker <James.Walker@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE852EC.70608@sun.com>
Sender: James.Walker@sun.com
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: Darren J Moffat <Darren.Moffat@sun.com>, PSARC-ext@sun.com,
        Robert.Sohigian@sun.com
Reply-to: James.Walker@sun.com
Message-id: <4AE953D9.1060501@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE816FB.8040905@Sun.COM> <4AE852EC.70608@sun.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
Status: RO
Content-Length: 1753

Garrett D'Amore wrote:
> Darren J Moffat wrote:
>>> libstatgrab works with root and non-root privileges. If root privileges 
>>> are given, then libstatgrab returns more information. The sg_init() 
>>> function performs all the one-time initialization including operations 
>>> that use setuid/setgid privileges if root privilege is used. Afterwards, 
>>> sg_drop_privileges() is used to discard setuid/setgid privileges. The 
>>> following code is common in commands using libstatgrab:
>> 
>> How does this fit with OpenSolaris given we don't actually use a uid==0 is
>> all powerful model anymore ?  setuid root does still work they way it used
>> to but we try not to document things that away any more; instead say which
>> privileges are required.
>> 
>> What operations that libstatgrab does, on OpenSolaris, require privilege
>> and what privileges are they ? [ not that root is NOT a privilege it is a
>> userid that by default happens to have all privileges ].
>> 
>> kstats don't need privileges to view them anyway, so I'm not sure what 
>> operations that libstatgrab provides would need any privilege.
>> 
> I think it was using root privilege to access some portions of the device
> tree.  (Accessing the information from the prom requires root, IIRC.)

Correct. Historically it was related to the device tree.

> This should be reevaluated, because it shouldn't be needed.

The project team has reevaluated the need for root privileges.

Root privileges are not needed, and user and root statgrab runs with
a diff file are included in the materials directory to show this.

../materials/statgrab.root.out
../materials/statgrab.user.out
../materials/statgrab.user.root.diff

This has also been noted in the proposal.txt file.

Cheers,
Jim

From James.Walker@sun.com Thu Oct 29 01:39:08 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9T8d8ni020873
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 29 Oct 2009 01:39:08 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id n9T8d2Qn005798
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 29 Oct 2009 02:39:07 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KS90050DPD71200@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 29 Oct 2009 01:39:07 -0700 (PDT)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KS9007TKPD6HPE0@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 29 Oct 2009 01:39:06 -0700 (PDT)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n9T8d6PY010197	for
 <PSARC-ext@sun.com>; Thu, 29 Oct 2009 08:39:06 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KS900M00P4LCT00@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 29 Oct 2009 02:39:06 -0600 (MDT)
Received: from c-24-8-149-144.hsd1.co.comcast.net ([unknown] [129.150.176.249])
 by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KS900AGKPD5X950@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 29 Oct 2009 02:39:06 -0600 (MDT)
Date: Thu, 29 Oct 2009 02:39:05 -0600
From: Jim Walker <James.Walker@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE85364.7030604@sun.com>
Sender: James.Walker@sun.com
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: PSARC-ext@sun.com, Robert.Sohigian@sun.com
Reply-to: James.Walker@sun.com
Message-id: <4AE954A9.10808@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE85364.7030604@sun.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
Status: RO
Content-Length: 430

Garrett D'Amore wrote:
> Can you add *which* kstats are being used?  Individual kstats are 
> normally not documented, and some of them are more volatile than 
> others.  If this case is going to use kstats, then I think we need to 
> document which ones are used in case someone decides to change them in 
> the future.

Appendix A. in the proposal file has been updated to include the
individual kstat information.

Cheers,
Jim

From gdamore@sun.com Thu Oct 29 07:04:47 2009
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id n9TE4kbH026293
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 29 Oct 2009 07:04:47 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail5.uk.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2) with ESMTP id n9TE4j86003878
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 29 Oct 2009 14:04:46 GMT
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KSA003034FX2H00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 29 Oct 2009 07:04:45 -0700 (PDT)
Received: from sca-es-mail-1.sun.com ([192.18.43.132])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KSA00L504FWHT60@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 29 Oct 2009 07:04:44 -0700 (PDT)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9TE4ifb029096	for
 <PSARC-ext@sun.com>; Thu, 29 Oct 2009 07:04:44 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KSA001004DZFX00@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 29 Oct 2009 07:04:44 -0700 (PDT)
Received: from [192.168.251.11] ([unknown] [76.93.15.33])
 by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KSA00M544FVGY10@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 29 Oct 2009 07:04:44 -0700 (PDT)
Date: Thu, 29 Oct 2009 07:04:43 -0700
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE954A9.10808@sun.com>
Sender: Garrett.Damore@sun.com
To: James.Walker@sun.com
Cc: PSARC-ext@sun.com, Robert.Sohigian@sun.com
Message-id: <4AE9A0FB.2000108@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE85364.7030604@sun.com> <4AE954A9.10808@sun.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090909)
Status: RO
Content-Length: 668

Jim Walker wrote:
> Garrett D'Amore wrote:
>> Can you add *which* kstats are being used?  Individual kstats are 
>> normally not documented, and some of them are more volatile than 
>> others.  If this case is going to use kstats, then I think we need to 
>> document which ones are used in case someone decides to change them 
>> in the future.
>
> Appendix A. in the proposal file has been updated to include the
> individual kstat information.
>
> Cheers,
> Jim

Thanks.  The stats you're using look reasonable to me, but I'd like to 
hear from someone more familiar with the VM subsystem -- the anoninfo 
and cpu_vminfo stats might be unreliable...

    - Garrett

From James.Walker@sun.com Tue Nov  3 15:48:12 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id nA3NmAKl003773
	for <psarc-ext@sac.sfbay.sun.com>; Tue, 3 Nov 2009 15:48:11 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id nA3Nm872028651
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Wed, 4 Nov 2009 07:48:10 +0800 (SGT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KSK00J094S83I00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Tue, 03 Nov 2009 16:48:08 -0700 (MST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KSK008UY4S8W860@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Tue,
 03 Nov 2009 16:48:08 -0700 (MST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id nA3Nm8Jr022622	for
 <PSARC-ext@sun.com>; Tue, 03 Nov 2009 23:48:08 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KSK0000044O9P00@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Tue, 03 Nov 2009 16:48:08 -0700 (MST)
Received: from [172.20.25.153] ([unknown] [172.20.25.153])
 by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit
 (built Jul  2 2009)) with ESMTPSA id <0KSK00I0C4S641C0@mail-amer.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Tue,
 03 Nov 2009 16:48:06 -0700 (MST)
Date: Tue, 03 Nov 2009 16:52:06 -0700
From: Jim Walker <James.Walker@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AE9A0FB.2000108@sun.com>
Sender: James.Walker@sun.com
To: PSARC-ext@sun.com
Cc: Robert.Sohigian@sun.com
Reply-to: James.Walker@sun.com
Message-id: <4AF0C226.6020600@sun.com>
Organization: Sun Microsystems, Inc.
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE85364.7030604@sun.com> <4AE954A9.10808@sun.com> <4AE9A0FB.2000108@sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080728)
Status: RO
Content-Length: 1100

Garrett D'Amore wrote:
> Jim Walker wrote:
>> Garrett D'Amore wrote:
>>> Can you add *which* kstats are being used?  Individual kstats are 
>>> normally not documented, and some of them are more volatile than 
>>> others.  If this case is going to use kstats, then I think we need to 
>>> document which ones are used in case someone decides to change them 
>>> in the future.
>>
>> Appendix A. in the proposal file has been updated to include the
>> individual kstat information.
>>
>> Cheers,
>> Jim
> 
> Thanks.  The stats you're using look reasonable to me, but I'd like to 
> hear from someone more familiar with the VM subsystem -- the anoninfo 
> and cpu_vminfo stats might be unreliable...

Here are the anoninfo and cpu_vminfo stats being used.

anoninfo.ani_max;
anoninfo.ani_resv;
cpu_vminfo.pgpgin;
cpu_vminfo.pgpgout;

Can someone knowledgeable give an idea of their reliability?

Currently, we are assuming they are as reliable as any
other stat.

I would like to wrap up this case.

Here's the full proposal:
http://arc.opensolaris.org/caselog/PSARC/2009/583/proposal.txt

Cheers,
Jim

From jason.brian.king@gmail.com Thu Nov  5 11:25:22 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id nA5JPMjq021437
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 5 Nov 2009 11:25:22 -0800 (PST)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id nA5JPHiK053677
	for <@sunmail2sca.sfbay.sun.com:psarc-ext@sun.com>; Thu, 5 Nov 2009 12:25:22 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KSN00C0FHY98400@nwk-avmta-1.sfbay.Sun.COM> for psarc-ext@sun.com
 (ORCPT psarc-ext@sun.com); Thu, 05 Nov 2009 11:25:21 -0800 (PST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KSN00HUYHY8F1C0@nwk-avmta-1.sfbay.Sun.COM> for
 psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Thu,
 05 Nov 2009 11:25:20 -0800 (PST)
Received: from relay14i.sun.com
 (ip124.net129179-4.block1.us.syntegra.com [129.179.4.124])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id nA5JPJFv019581	for
 <psarc-ext@sun.com>; Thu, 05 Nov 2009 19:25:20 +0000 (GMT)
Received: from mmp12es.mmp.us.syntegra.com ([160.41.208.12] [160.41.208.12])
 by relay14i.sun.com with ESMTP id BT-MMP-2757894 for psarc-ext@sun.com; Thu,
 05 Nov 2009 19:25:19 +0000 (Z)
Received: from relay13i.sun.com (relay13i.sun.com [129.179.4.123])
 by mmp12es.mmp.us.syntegra.com with ESMTP id BT-MMP-53334708 for
 psarc-ext@sun.com; Thu, 05 Nov 2009 19:25:19 +0000 (Z)
Received: from gv-out-0910.google.com ([216.239.58.184] [216.239.58.184])
 by relay1i.sun.com with ESMTP id BT-MMP-23854828 for psarc-ext@sun.com; Thu,
 05 Nov 2009 19:25:19 +0000 (Z)
Received: by gv-out-0910.google.com with SMTP id l14so110952gvf.8 for
 <psarc-ext@sun.com>; Thu, 05 Nov 2009 11:25:15 -0800 (PST)
Received: by 10.239.139.161 with SMTP id t33mr327664hbt.115.1257449113373; Thu,
 05 Nov 2009 11:25:13 -0800 (PST)
Date: Thu, 05 Nov 2009 13:25:12 -0600
From: Jason King <jason@ansipunx.net>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AF0C226.6020600@sun.com>
Sender: jason.brian.king@gmail.com
To: PSARC-ext <psarc-ext@sun.com>
Message-id: <fa9202c30911051125keb519fbpeabba58bcbe07ed8@mail.gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com;
 s=gamma;        h=domainkey-signature:mime-version:sender:received:in-reply-to
         :references:date:x-google-sender-auth:message-id:subject:from:to
 :content-type:content-transfer-encoding;
 bh=v1CcRboeoaWIElpIFLPM6kCcWvXmq4JLGPhDDJewhm4=;
 b=gic1Be+JXnvQx3eSq3j/rZ2XDuloLV2ksr0FAu82UWmRdBglP7vX2A7fQ+ILPiMwoV
 E4qK997rKh0BtANG+KSBBaKan0gMYY1jH+STR7fPcapNgUj2P9JTMOADliJAgdaCSogc
 IC+CbCWcPZgZtRer5hJR3yrzJKjjK0uNWY528=
DomainKey-Signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;
 h=mime-version:sender:in-reply-to:references:date
 :x-google-sender-auth:message-id:subject:from:to:content-type
 :content-transfer-encoding;
 b=r5BDC3A0WwoqYbqp5cZkVV023noaiwhG67YGWhLu3kmkW3AUPS68wBVjRxVCvxt6Nd
 BB/1nJ+aX6KcPe7wFqUFph0loJ9agV9IaCr+6TIwk6/Y7NlOo8omq4c9xIFaRgNtoIre
 te4t+HikVI5CJfjpwJvIy1gCUvy2RlfnMEka0=
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Google-Sender-Auth: 28688e7ea7388a97
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE85364.7030604@sun.com> <4AE954A9.10808@sun.com> <4AE9A0FB.2000108@sun.com>
 <4AF0C226.6020600@sun.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by sac.sfbay.sun.com id nA5JPMjq021437
Status: RO
Content-Length: 2108

On Tue, Nov 3, 2009 at 5:52 PM, Jim Walker <James.Walker@sun.com> wrote:
> Garrett D'Amore wrote:
>>
>> Jim Walker wrote:
>>>
>>> Garrett D'Amore wrote:
>>>>
>>>> Can you add *which* kstats are being used?  Individual kstats are
>>>> normally not documented, and some of them are more volatile than others.  If
>>>> this case is going to use kstats, then I think we need to document which
>>>> ones are used in case someone decides to change them in the future.
>>>
>>> Appendix A. in the proposal file has been updated to include the
>>> individual kstat information.
>>>
>>> Cheers,
>>> Jim
>>
>> Thanks.  The stats you're using look reasonable to me, but I'd like to
>> hear from someone more familiar with the VM subsystem -- the anoninfo and
>> cpu_vminfo stats might be unreliable...
>
> Here are the anoninfo and cpu_vminfo stats being used.
>
> anoninfo.ani_max;
> anoninfo.ani_resv;
> cpu_vminfo.pgpgin;
> cpu_vminfo.pgpgout;
>
> Can someone knowledgeable give an idea of their reliability?
>
> Currently, we are assuming they are as reliable as any
> other stat.
>
> I would like to wrap up this case.
>
> Here's the full proposal:
> http://arc.opensolaris.org/caselog/PSARC/2009/583/proposal.txt
>

I am curious if there is any existing case, or any documentation that
can be referenced that provides better guidance about kstats, or if
not, would it be appropriate to ask ARC to provide some guidance with
this case.  I know it would help me greatly in a project I'd like to
bring before ARC at some point, and would probably help others in the
future as well.

I've been told that use of _any_ kstats that haven't been classified
as !private is verboten (at least in the 'don't bother trying to get
it integrated sense -- it can always be published external to
opensolaris.org), even if the consumer was in the _same_
consolidation.

I was also told that currently the only kstats that are !private are a
number of network interface (and possibly tcp/ip) related kstats.
This case is clearly using more than those, and that is where I'd like
to know more about when they can and can't be used.


From Michael.Corcoran@sun.com Mon Nov  9 14:14:13 2009
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id nA9MEDIK016099
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 9 Nov 2009 14:14:13 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id nA9MEAq5007913
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 9 Nov 2009 14:14:13 -0800 (PST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KSV00K0V4FN0U00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@Sun.COM); Mon, 09 Nov 2009 15:14:11 -0700 (MST)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KSV00J6U4FNN200@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@Sun.COM); Mon,
 09 Nov 2009 15:14:11 -0700 (MST)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id nA9MEBg5008832	for
 <PSARC-ext@Sun.COM>; Mon, 09 Nov 2009 22:14:11 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KSV00B004935100@mail-amer.sun.com> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Mon, 09 Nov 2009 15:14:11 -0700 (MST)
Received: from [192.168.0.101]
 (cpe-24-25-218-236.san.res.rr.com [24.25.218.236])
 by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit
 (built Jul  2 2009)) with ESMTPSA id <0KSV00EGR4FI5Y10@mail-amer.sun.com> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Mon,
 09 Nov 2009 15:14:07 -0700 (MST)
Date: Mon, 09 Nov 2009 14:14:06 -0800
From: Michael Corcoran <Michael.Corcoran@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AF0C226.6020600@sun.com>
Sender: Michael.Corcoran@sun.com
To: James.Walker@sun.com
Cc: Michael Corcoran <Michael.Corcoran@sun.com>, PSARC-ext@sun.com,
        Robert.Sohigian@sun.com
Message-id: <C931020B-2759-49E0-88BF-BB469AB167FE@sun.com>
MIME-version: 1.0
X-Mailer: Apple Mail (2.936)
Content-type: text/plain; CHARSET=US-ASCII; delsp=yes; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE85364.7030604@sun.com> <4AE954A9.10808@sun.com> <4AE9A0FB.2000108@sun.com>
 <4AF0C226.6020600@sun.com>
Status: RO
Content-Length: 1418


On Nov 3, 2009, at 3:52 PM, Jim Walker wrote:

> Garrett D'Amore wrote:
>> Jim Walker wrote:
>>> Garrett D'Amore wrote:
>>>> Can you add *which* kstats are being used?  Individual kstats are  
>>>> normally not documented, and some of them are more volatile than  
>>>> others.  If this case is going to use kstats, then I think we  
>>>> need to document which ones are used in case someone decides to  
>>>> change them in the future.
>>>
>>> Appendix A. in the proposal file has been updated to include the
>>> individual kstat information.
>>>
>>> Cheers,
>>> Jim
>> Thanks.  The stats you're using look reasonable to me, but I'd like  
>> to hear from someone more familiar with the VM subsystem -- the  
>> anoninfo and cpu_vminfo stats might be unreliable...
>
> Here are the anoninfo and cpu_vminfo stats being used.
>
> anoninfo.ani_max;
> anoninfo.ani_resv;
> cpu_vminfo.pgpgin;
> cpu_vminfo.pgpgout;
>
> Can someone knowledgeable give an idea of their reliability?

I ran these by a few VM people and we all agree that these should be  
relatively stable.

--Mike

>
> Currently, we are assuming they are as reliable as any
> other stat.
>
> I would like to wrap up this case.
>
> Here's the full proposal:
> http://arc.opensolaris.org/caselog/PSARC/2009/583/proposal.txt
>
> Cheers,
> Jim
> _______________________________________________
> opensolaris-arc mailing list
> opensolaris-arc@opensolaris.org


From gdamore@Sun.COM Mon Nov  9 15:01:38 2009
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id nA9N1bKO017022
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 9 Nov 2009 15:01:37 -0800 (PST)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id nA9N1a6m017856
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 9 Nov 2009 16:01:37 -0700 (MST)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KSV00G1L6MPA500@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 09 Nov 2009 15:01:37 -0800 (PST)
Received: from sca-es-mail-2.sun.com ([192.18.43.133])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KSV007IK6MOYC80@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 09 Nov 2009 15:01:37 -0800 (PST)
Received: from fe-sfbay-09.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id nA9N1agv003618	for
 <PSARC-ext@sun.com>; Mon, 09 Nov 2009 15:01:36 -0800 (PST)
Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KSV0060069SX500@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 09 Nov 2009 15:01:36 -0800 (PST)
Received: from [192.168.251.11] ([unknown] [76.93.15.33])
 by fe-sfbay-09.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 with ESMTPSA id <0KSV00G956MO4SD0@fe-sfbay-09.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 09 Nov 2009 15:01:36 -0800 (PST)
Date: Mon, 09 Nov 2009 15:01:35 -0800
From: "Garrett D'Amore" <gdamore@Sun.COM>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <C931020B-2759-49E0-88BF-BB469AB167FE@sun.com>
Sender: Garrett.Damore@Sun.COM
To: Michael Corcoran <Michael.Corcoran@Sun.COM>
Cc: James.Walker@Sun.COM, PSARC-ext@Sun.COM, Robert.Sohigian@Sun.COM
Message-id: <4AF89F4F.9080709@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE85364.7030604@sun.com> <4AE954A9.10808@sun.com> <4AE9A0FB.2000108@sun.com>
 <4AF0C226.6020600@sun.com> <C931020B-2759-49E0-88BF-BB469AB167FE@sun.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090909)
Status: RO
Content-Length: 1600

Michael Corcoran wrote:
>
> On Nov 3, 2009, at 3:52 PM, Jim Walker wrote:
>
>> Garrett D'Amore wrote:
>>> Jim Walker wrote:
>>>> Garrett D'Amore wrote:
>>>>> Can you add *which* kstats are being used?  Individual kstats are 
>>>>> normally not documented, and some of them are more volatile than 
>>>>> others.  If this case is going to use kstats, then I think we need 
>>>>> to document which ones are used in case someone decides to change 
>>>>> them in the future.
>>>>
>>>> Appendix A. in the proposal file has been updated to include the
>>>> individual kstat information.
>>>>
>>>> Cheers,
>>>> Jim
>>> Thanks.  The stats you're using look reasonable to me, but I'd like 
>>> to hear from someone more familiar with the VM subsystem -- the 
>>> anoninfo and cpu_vminfo stats might be unreliable...
>>
>> Here are the anoninfo and cpu_vminfo stats being used.
>>
>> anoninfo.ani_max;
>> anoninfo.ani_resv;
>> cpu_vminfo.pgpgin;
>> cpu_vminfo.pgpgout;
>>
>> Can someone knowledgeable give an idea of their reliability?
>
> I ran these by a few VM people and we all agree that these should be 
> relatively stable.

Thank you, that makes me happier.  Are any of them willing to have their 
names listed here?

    -- Garrett
>
> --Mike
>
>>
>> Currently, we are assuming they are as reliable as any
>> other stat.
>>
>> I would like to wrap up this case.
>>
>> Here's the full proposal:
>> http://arc.opensolaris.org/caselog/PSARC/2009/583/proposal.txt
>>
>> Cheers,
>> Jim
>> _______________________________________________
>> opensolaris-arc mailing list
>> opensolaris-arc@opensolaris.org
>


From Michael.Corcoran@sun.com Mon Nov  9 15:22:23 2009
Received: from sunmail4.singapore.sun.com (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id nA9NMLpH017150
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 9 Nov 2009 15:22:22 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail4.singapore.sun.com (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id nA9NMDad022064
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Tue, 10 Nov 2009 07:22:20 +0800 (SGT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KSV004097L41A00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 09 Nov 2009 16:22:16 -0700 (MST)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KSV00J137L4N740@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 09 Nov 2009 16:22:16 -0700 (MST)
Received: from fe-amer-09.sun.com ([192.18.109.79])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id nA9NMGaJ005442	for
 <PSARC-ext@sun.com>; Mon, 09 Nov 2009 23:22:16 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KSV00A007E56400@mail-amer.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Mon, 09 Nov 2009 16:22:16 -0700 (MST)
Received: from [192.168.0.101]
 (cpe-24-25-218-236.san.res.rr.com [24.25.218.236])
 by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit
 (built Jul  2 2009)) with ESMTPSA id <0KSV00E7G7L25Y40@mail-amer.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Mon,
 09 Nov 2009 16:22:15 -0700 (MST)
Date: Mon, 09 Nov 2009 15:22:14 -0800
From: Michael Corcoran <Michael.Corcoran@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <4AF89F4F.9080709@sun.com>
Sender: Michael.Corcoran@sun.com
To: "Garrett D'Amore" <gdamore@sun.com>
Cc: Michael Corcoran <Michael.Corcoran@sun.com>, James.Walker@sun.com,
        PSARC-ext@sun.com, Robert.Sohigian@sun.com
Message-id: <359EB490-D8BD-4E79-9A8D-5F8185B834AC@Sun.COM>
MIME-version: 1.0
X-Mailer: Apple Mail (2.936)
Content-type: text/plain; CHARSET=US-ASCII; delsp=yes; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE85364.7030604@sun.com> <4AE954A9.10808@sun.com> <4AE9A0FB.2000108@sun.com>
 <4AF0C226.6020600@sun.com> <C931020B-2759-49E0-88BF-BB469AB167FE@sun.com>
 <4AF89F4F.9080709@sun.com>
Status: RO
Content-Length: 1791


On Nov 9, 2009, at 3:01 PM, Garrett D'Amore wrote:

> Michael Corcoran wrote:
>>
>> On Nov 3, 2009, at 3:52 PM, Jim Walker wrote:
>>
>>> Garrett D'Amore wrote:
>>>> Jim Walker wrote:
>>>>> Garrett D'Amore wrote:
>>>>>> Can you add *which* kstats are being used?  Individual kstats  
>>>>>> are normally not documented, and some of them are more volatile  
>>>>>> than others.  If this case is going to use kstats, then I think  
>>>>>> we need to document which ones are used in case someone decides  
>>>>>> to change them in the future.
>>>>>
>>>>> Appendix A. in the proposal file has been updated to include the
>>>>> individual kstat information.
>>>>>
>>>>> Cheers,
>>>>> Jim
>>>> Thanks.  The stats you're using look reasonable to me, but I'd  
>>>> like to hear from someone more familiar with the VM subsystem --  
>>>> the anoninfo and cpu_vminfo stats might be unreliable...
>>>
>>> Here are the anoninfo and cpu_vminfo stats being used.
>>>
>>> anoninfo.ani_max;
>>> anoninfo.ani_resv;
>>> cpu_vminfo.pgpgin;
>>> cpu_vminfo.pgpgout;
>>>
>>> Can someone knowledgeable give an idea of their reliability?
>>
>> I ran these by a few VM people and we all agree that these should  
>> be relatively stable.
>
> Thank you, that makes me happier.  Are any of them willing to have  
> their names listed here?
First there's my name, then Blake Jones and Stan Studzinski.

--Mike

>
>   -- Garrett
>>
>> --Mike
>>
>>>
>>> Currently, we are assuming they are as reliable as any
>>> other stat.
>>>
>>> I would like to wrap up this case.
>>>
>>> Here's the full proposal:
>>> http://arc.opensolaris.org/caselog/PSARC/2009/583/proposal.txt
>>>
>>> Cheers,
>>> Jim
>>> _______________________________________________
>>> opensolaris-arc mailing list
>>> opensolaris-arc@opensolaris.org
>>
>


From James.Walker@sun.com Mon Nov  9 19:04:47 2009
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id nAA34l9Z021521
	for <psarc-ext@sac.sfbay.sun.com>; Mon, 9 Nov 2009 19:04:47 -0800 (PST)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id nAA34j04007881
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Mon, 9 Nov 2009 19:04:46 -0800 (PST)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0KSV0050HHVXEZ00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@Sun.COM); Mon, 09 Nov 2009 20:04:45 -0700 (MST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0KSV004ZQHVXBO10@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@Sun.COM); Mon,
 09 Nov 2009 20:04:45 -0700 (MST)
Received: from fe-amer-10.sun.com ([192.18.109.80])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id nAA34jDY021712	for
 <PSARC-ext@Sun.COM>; Tue, 10 Nov 2009 03:04:45 +0000 (GMT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com
 (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul  2 2009))
 id <0KSV00J00HMCBT00@mail-amer.sun.com> for PSARC-ext@Sun.COM
 (ORCPT PSARC-ext@Sun.COM); Mon, 09 Nov 2009 20:04:45 -0700 (MST)
Received: from [192.168.0.5] ([unknown] [209.169.24.222])
 by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit
 (built Jul  2 2009)) with ESMTPSA id <0KSV007CUHVU6HE0@mail-amer.sun.com> for
 PSARC-ext@Sun.COM (ORCPT PSARC-ext@Sun.COM); Mon,
 09 Nov 2009 20:04:43 -0700 (MST)
Date: Mon, 09 Nov 2009 20:04:39 -0700
From: jim Walker <James.Walker@sun.com>
Subject: Re: libstatgrab [PSARC/2009/583 FastTrack timeout 11/01/2009]
In-reply-to: <359EB490-D8BD-4E79-9A8D-5F8185B834AC@Sun.COM>
Sender: James.Walker@sun.com
To: Michael Corcoran <Michael.Corcoran@sun.com>
Cc: PSARC-ext@sun.com, Robert.Sohigian@sun.com
Reply-to: James.Walker@sun.com
Message-id: <4AF8D847.1070107@sun.com>
MIME-version: 1.0
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200910260323.n9Q3N3Ln004087@sac.sfbay.sun.com>
 <4AE5A4D2.2020406@sun.com> <4AE800C2.3060703@sun.com>
 <4AE85364.7030604@sun.com> <4AE954A9.10808@sun.com> <4AE9A0FB.2000108@sun.com>
 <4AF0C226.6020600@sun.com> <C931020B-2759-49E0-88BF-BB469AB167FE@sun.com>
 <4AF89F4F.9080709@sun.com> <359EB490-D8BD-4E79-9A8D-5F8185B834AC@Sun.COM>
User-Agent: Thunderbird 2.0.0.22 (X11/20090909)
Status: RO
Content-Length: 697

Thanks Mike.

Since this was the remaining item to be addressed, and the timeout has
been reached, I'm going to mark this case closed approved.

Cheers,
Jim

Michael Corcoran wrote:
>>>>
>>>> Here are the anoninfo and cpu_vminfo stats being used.
>>>>
>>>> anoninfo.ani_max;
>>>> anoninfo.ani_resv;
>>>> cpu_vminfo.pgpgin;
>>>> cpu_vminfo.pgpgout;
>>>>
>>>> Can someone knowledgeable give an idea of their reliability?
>>>
>>> I ran these by a few VM people and we all agree that these should be 
>>> relatively stable.
>>
>> Thank you, that makes me happier.  Are any of them willing to have 
>> their names listed here?
> First there's my name, then Blake Jones and Stan Studzinski.
>
> --Mike


