From randyf@eng.sun.com Wed Sep 10 13:25:59 2008
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 m8AKPwIQ005913
	for <psarc-ext@sac.sfbay.Sun.COM>; Wed, 10 Sep 2008 13:25:58 -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 m8AKPttN008847;
	Thu, 11 Sep 2008 04:25:55 +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 <0K6Z00C0LY34PH00@nwk-avmta-2.sfbay.sun.com>; Wed,
 10 Sep 2008 13:25:52 -0700 (PDT)
Received: from grimmy.sfbay.sun.com ([129.146.108.114])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0K6Z007D5Y33IZ90@nwk-avmta-2.sfbay.sun.com>; Wed,
 10 Sep 2008 13:25:51 -0700 (PDT)
Received: from grimmy.eng.sun.com (localhost [127.0.0.1])
	by grimmy.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id m8AKPie1029425; Wed,
 10 Sep 2008 13:25:44 -0700 (PDT)
Received: from localhost (randyf@localhost)
	by grimmy.eng.sun.com (8.13.8+Sun/8.13.8/Submit) with ESMTP id m8AKPiOB029422;
 Wed, 10 Sep 2008 13:25:44 -0700 (PDT)
Date: Wed, 10 Sep 2008 13:25:43 -0700 (PDT)
From: Randy Fishel <randyf@eng.sun.com>
Subject: PSARC/2008/376 - PowerTOP_for_OpenSolaris Self Review
X-X-Sender: randyf@grimmy
To: psarc-ext@sun.com
Cc: rafael.vanoni@sun.com
Message-id: <alpine.GSO.1.10.0809101306120.29384@grimmy>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Authentication-warning: grimmy.eng.sun.com: randyf owned process doing -bs
User-Agent: Alpine 1.10 (GSO 962 2008-03-14)
Status: RO
Content-Length: 6750



I am sponsoring the following PSARC case for Rafael Vanoni. This case 
will bring the current PowerTOP utility with additional work that has 
been done by the OpenSolaris Tesla project into Solaris.  This is an 
observability tool with significant Solaris benefit and Linux roots.  
As we don't control the user interfaces and it consumes Solaris 
committed interfaces, we believe this qualifies as a self review.  If 
someone believes it is not, then it can be turned into a regular 
fasttrack.



1. Introduction

   1.1. Project/Component Working Name:
    PowerTOP for OpenSolaris

   1.2. Name of Document Author/Supplier:
        rafael.vanoni@sun.com

   1.3. Date of This Document:
        09/01/08

   1.4. Name of Major Document Customer(s)/Consumer(s):
        PSARC

    1.5.4. Interest List:
        tesla-dev@opensolaris.org

2. Project Summary

   2.1. Project Description:

	PowerTOP is an observability tool that shows how effectively
	the system is taking advantage of the CPU's power management
	features. By running the tool on an otherwise idle system, the
	user can see for how long the CPU is running at different power
	states. The utility analyzes system activity through DTrace and
	reports activity that is preventing the CPU from being power
	efficient.

	PowerTOP is an Intel utility initially developed for Linux that
	is being jointly ported by Sun and Intel through OpenSolaris,
	and has been released through OpenSolaris. The development team
	also aims at maintaining sync with the Linux version of the
	utility whenever possible by communicating with PowerTOP's
	Linux community and maintainers to discuss possible merges.

   2.2. Risks and Assumptions:
   
	PowerTOP uses DTrace sdt probes that were putback into Solaris
	Nevada 82.  Therefore, the user must be running snv82 or a
	later version of Solaris and have DTrace privileges.

3. Business Summary

   3.1. Problem Area:
   
	It allows end users to improve their system towards power
	efficiency.

   3.2. Market/Requester:
   
	Solaris users, developers, and system administrators interested
	in improving system power efficiency.

   3.3. Business Justification:
   
	PowerTOP enables sysadmins, customers, developers, etc. to
	understand how the OS and applications impact power
	management.  Considering the interest in improving Solaris'
	power efficiency, eco responsability, joint and open
	development through OpenSolaris, we believe this utility would
	be a positive addition to the sfw consolidation.

   3.4. Competitive Analysis:
   
	PowerTOP for OpenSolaris was ported from the original Linux
	version.  Linux has had this tool for some time.

   3.5. Opportunity Window/Exposure:
   
	The tool has already seen a good deal of exposure through
	OpenSolaris.

   3.6. How will you know when you are done?
   
	The tool has already reached version 1.1.

4. Technical Description:

    4.1. Background/problem:

	Power efficiency has become a critical aspect of computer
	systems. Hardware manufacturers have responded to this
	necessity by offering CPUs (and other components) that can
	operate at different power consumption levels.  Operating
	systems have followed by managing the hardware to achieve
	higher power efficiency, but have not exported the knowledge to
	allow system administrators and software developers to improve
	power efficiency at the application layer. The end user doesn't
	not know how the system is behaving in terms of PM.

    4.2 Proposed Solution:

	PowerTOP is an open source project originally developped by
	Intel for Linux systems. It reports the behavior of the
	system's power management features (CPU frequency and energy
	state transitions) and an analysis of the system activity that
	is causing the CPU to go to higher power consumption states.
	Thus, the user can optimize its system towards power efficiency
	by interpreting the event report and acting in the appropriate
	manner.

	PowerTOP was ported to OpenSolaris through the Tesla project on
	opensolaris.org, and has had outside contributions (mainly from
	Intel) since the beggining. It contains GPLv2 source code with
	CDDL licensed makefiles.

	PowerTOP was redesigned as a DTrace consumer for power
	management related events, observing CPU state transitions and
	specific system activity through libdtrace(3) and a set of sdt
	probes. The utility executes three DTrace scripts on a pre
	defined interval, each script observes a specific aspect of
	power management: CPU idle state transitions, system events
	that can cause CPU wakeups and CPU frequency changes.

	The tool also consumes kstat data for laptop battery usage and
	to correlate the CPU frequency data gathered by DTrace with the
	system's current frequency. It provides a curses(3CURSES) based
	user interface, creating different subwindows to report the
	analysis of its DTrace scripts.

    4.3. Bug/RFE Number(s):
    
	6713863

    4.4. Interfaces:

	(a) Exported Interfaces
	Pathnames are "Committed", User options are "Volatile".

	Interface				Description
	
------------------------------------------------------------------------
	SFWpowertop				package name
	/usr/bin/powertop			symbolic link
	/usr/bin/amd64/powertop			executable
	/usr/bin/i386/powertop			executable
	/usr/bin/sparcv9/powertop		executable
	/usr/share/man/man1/powertop.1m		manpage (CR 6723453)

	User options:
	    -d, --dump [count]			Read wakeups count times
	    					and print list of top
	    					offenders
	    -t, --time [interval]		Default time to gather
	    					data in seconds [1-100s]
	    -v, --verbose			Verbose mode, reports
	    					kernel cyclic activity
	    -h, --help				Show this help message


    	(b) Imported Interfaces
         
	Interface		Classification	ARC case
	
------------------------------------------------------------------------
	DTrace			Commited	PSARC/2001/466 DTrace
	libkstat		Commited	
	/etc/power.conf		Commited	PSARC/1992/202 Power
						Management

	(c) Release Binding

		Micro/Patch

    4.6. Dependencies:
    
	DTrace probes introduced in snv82, kstat acpi_drv module (so it
	can report laptop battery status). Running the tool without the
	necessary DTrace probes causes the application to exit and
	output a DTrace message reporting the cause of the error.

5. Reference Documents:

	CR's 6713863, 6635705, 6643464 and man page.

	PSARC/2001/466  DTrace
	http://sac.sfbay/PSARC/2001/466/

	PSARC/2003/425 DTrace sdt Provider
	http://sac.sfbay/PSARC/2003/425/

6. Resources and Schedule:

   6.1. Projected Availability:
   
	Currently available through OpenSolaris.

   6.2. Product Approval Committee requested information:
   
       6.4.1. Consolidation or Component Name:
       
	ON
          
   6.3. ARC review type:
   
	Self Review


From Alan.Coopersmith@sun.com Wed Sep 10 13:33:33 2008
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 m8AKXXVM006891
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 10 Sep 2008 13:33:33 -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 m8AKXLIu019985
	for <@sunmail2sca.sfbay.sun.com:psarc-ext@sun.com>; Wed, 10 Sep 2008 21:33:32 +0100 (BST)
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 <0K6Z0030RYFUWT00@nwk-avmta-1.sfbay.Sun.COM> for psarc-ext@sun.com
 (ORCPT psarc-ext@sun.com); Wed, 10 Sep 2008 13:33:30 -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 <0K6Z00M20YFUEW30@nwk-avmta-1.sfbay.Sun.COM> for
 psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Wed,
 10 Sep 2008 13:33:30 -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 m8AKXU4v029922	for
 <psarc-ext@sun.com>; Wed, 10 Sep 2008 13:33:30 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0K6Z00L01XSRCD00@fe-sfbay-10.sun.com>
 (original mail from Alan.Coopersmith@Sun.COM)
 for psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Wed,
 10 Sep 2008 13:33:30 -0700 (PDT)
Received: from almas.sfbay.sun.com ([129.146.106.93])
 by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb
 28 2007)) with ESMTPSA id <0K6Z005VWYFBHQB0@fe-sfbay-10.sun.com>; Wed,
 10 Sep 2008 13:33:12 -0700 (PDT)
Date: Wed, 10 Sep 2008 13:33:11 -0700
From: Alan Coopersmith <Alan.Coopersmith@sun.com>
Subject: Re: PSARC/2008/376 - PowerTOP_for_OpenSolaris Self Review
In-reply-to: <alpine.GSO.1.10.0809101306120.29384@grimmy>
Sender: Alan.Coopersmith@sun.com
To: Randy Fishel <randyf@eng.sun.com>
Cc: psarc-ext@sun.com, rafael.vanoni@sun.com
Message-id: <48C82F07.4050306@sun.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Enigmail-Version: 0.95.1
References: <alpine.GSO.1.10.0809101306120.29384@grimmy>
User-Agent: Thunderbird 2.0.0.6 (X11/20071203)
Status: RO
Content-Length: 477

Randy Fishel wrote:
> 	Interface				Description
> 	
> ------------------------------------------------------------------------
> 	SFWpowertop				package name

You mean SUNWpowertop, right?   (SFW* prefix packages are for the old
Companion CD, not things integrated into Solaris/OpenSolaris.)

> 	/usr/bin/powertop			symbolic link

To isaexec?

Otherwise, cool!

-- 
	-Alan Coopersmith-           alan.coopersmith@sun.com
	 Sun Microsystems, Inc. - X Window System Engineering


From gdamore@sun.com Wed Sep 10 13:37:54 2008
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 m8AKbs3D007918
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 10 Sep 2008 13:37:54 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail2sca.sfbay.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id m8AKbsqU009664
	for <@sunmail2sca.sfbay.sun.com:psarc-ext@sun.com>; Wed, 10 Sep 2008 13:37:54 -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 <0K6Z00D03YN66P00@nwk-avmta-2.sfbay.sun.com> for psarc-ext@sun.com
 (ORCPT psarc-ext@sun.com); Wed, 10 Sep 2008 13:37:54 -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 <0K6Z007VQYN5IY80@nwk-avmta-2.sfbay.sun.com> for
 psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Wed,
 10 Sep 2008 13:37:53 -0700 (PDT)
Received: from fe-sfbay-10.sun.com ([192.18.43.129])
	by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m8AKbrk4026954	for
 <psarc-ext@sun.com>; Wed, 10 Sep 2008 13:37:53 -0700 (PDT)
Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0K6Z00L01XSRCD00@fe-sfbay-10.sun.com> (original mail from gdamore@sun.com)
 for psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Wed,
 10 Sep 2008 13:37:53 -0700 (PDT)
Received: from [10.7.251.172] by fe-sfbay-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0K6Z005AKYN1HQE0@fe-sfbay-10.sun.com>; Wed,
 10 Sep 2008 13:37:50 -0700 (PDT)
Date: Wed, 10 Sep 2008 13:36:40 -0700
From: "Garrett D'Amore" <gdamore@sun.com>
Subject: Re: PSARC/2008/376 - PowerTOP_for_OpenSolaris Self Review
In-reply-to: <alpine.GSO.1.10.0809101306120.29384@grimmy>
Sender: Garrett.Damore@sun.com
To: Randy Fishel <randyf@eng.sun.com>
Cc: psarc-ext@sun.com, Rafael.Vanoni@sun.com
Message-id: <48C82FD8.6000503@sun.com>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <alpine.GSO.1.10.0809101306120.29384@grimmy>
User-Agent: Thunderbird 2.0.0.14 (X11/20080616)
Status: RO
Content-Length: 7456

I don't think this project falls under the new rules (self review's 
don't require +1's, do they?)  If they do, then please add my +1 to this 
project.

    -- Garrett

PS: A neat future project would be to move the data collection portions 
of this into a separate library and provide a Gnome GUI interface.

Randy Fishel wrote:
> I am sponsoring the following PSARC case for Rafael Vanoni. This case 
> will bring the current PowerTOP utility with additional work that has 
> been done by the OpenSolaris Tesla project into Solaris.  This is an 
> observability tool with significant Solaris benefit and Linux roots.  
> As we don't control the user interfaces and it consumes Solaris 
> committed interfaces, we believe this qualifies as a self review.  If 
> someone believes it is not, then it can be turned into a regular 
> fasttrack.
>
>
>
> 1. Introduction
>
>    1.1. Project/Component Working Name:
>     PowerTOP for OpenSolaris
>
>    1.2. Name of Document Author/Supplier:
>         rafael.vanoni@sun.com
>
>    1.3. Date of This Document:
>         09/01/08
>
>    1.4. Name of Major Document Customer(s)/Consumer(s):
>         PSARC
>
>     1.5.4. Interest List:
>         tesla-dev@opensolaris.org
>
> 2. Project Summary
>
>    2.1. Project Description:
>
> 	PowerTOP is an observability tool that shows how effectively
> 	the system is taking advantage of the CPU's power management
> 	features. By running the tool on an otherwise idle system, the
> 	user can see for how long the CPU is running at different power
> 	states. The utility analyzes system activity through DTrace and
> 	reports activity that is preventing the CPU from being power
> 	efficient.
>
> 	PowerTOP is an Intel utility initially developed for Linux that
> 	is being jointly ported by Sun and Intel through OpenSolaris,
> 	and has been released through OpenSolaris. The development team
> 	also aims at maintaining sync with the Linux version of the
> 	utility whenever possible by communicating with PowerTOP's
> 	Linux community and maintainers to discuss possible merges.
>
>    2.2. Risks and Assumptions:
>    
> 	PowerTOP uses DTrace sdt probes that were putback into Solaris
> 	Nevada 82.  Therefore, the user must be running snv82 or a
> 	later version of Solaris and have DTrace privileges.
>
> 3. Business Summary
>
>    3.1. Problem Area:
>    
> 	It allows end users to improve their system towards power
> 	efficiency.
>
>    3.2. Market/Requester:
>    
> 	Solaris users, developers, and system administrators interested
> 	in improving system power efficiency.
>
>    3.3. Business Justification:
>    
> 	PowerTOP enables sysadmins, customers, developers, etc. to
> 	understand how the OS and applications impact power
> 	management.  Considering the interest in improving Solaris'
> 	power efficiency, eco responsability, joint and open
> 	development through OpenSolaris, we believe this utility would
> 	be a positive addition to the sfw consolidation.
>
>    3.4. Competitive Analysis:
>    
> 	PowerTOP for OpenSolaris was ported from the original Linux
> 	version.  Linux has had this tool for some time.
>
>    3.5. Opportunity Window/Exposure:
>    
> 	The tool has already seen a good deal of exposure through
> 	OpenSolaris.
>
>    3.6. How will you know when you are done?
>    
> 	The tool has already reached version 1.1.
>
> 4. Technical Description:
>
>     4.1. Background/problem:
>
> 	Power efficiency has become a critical aspect of computer
> 	systems. Hardware manufacturers have responded to this
> 	necessity by offering CPUs (and other components) that can
> 	operate at different power consumption levels.  Operating
> 	systems have followed by managing the hardware to achieve
> 	higher power efficiency, but have not exported the knowledge to
> 	allow system administrators and software developers to improve
> 	power efficiency at the application layer. The end user doesn't
> 	not know how the system is behaving in terms of PM.
>
>     4.2 Proposed Solution:
>
> 	PowerTOP is an open source project originally developped by
> 	Intel for Linux systems. It reports the behavior of the
> 	system's power management features (CPU frequency and energy
> 	state transitions) and an analysis of the system activity that
> 	is causing the CPU to go to higher power consumption states.
> 	Thus, the user can optimize its system towards power efficiency
> 	by interpreting the event report and acting in the appropriate
> 	manner.
>
> 	PowerTOP was ported to OpenSolaris through the Tesla project on
> 	opensolaris.org, and has had outside contributions (mainly from
> 	Intel) since the beggining. It contains GPLv2 source code with
> 	CDDL licensed makefiles.
>
> 	PowerTOP was redesigned as a DTrace consumer for power
> 	management related events, observing CPU state transitions and
> 	specific system activity through libdtrace(3) and a set of sdt
> 	probes. The utility executes three DTrace scripts on a pre
> 	defined interval, each script observes a specific aspect of
> 	power management: CPU idle state transitions, system events
> 	that can cause CPU wakeups and CPU frequency changes.
>
> 	The tool also consumes kstat data for laptop battery usage and
> 	to correlate the CPU frequency data gathered by DTrace with the
> 	system's current frequency. It provides a curses(3CURSES) based
> 	user interface, creating different subwindows to report the
> 	analysis of its DTrace scripts.
>
>     4.3. Bug/RFE Number(s):
>     
> 	6713863
>
>     4.4. Interfaces:
>
> 	(a) Exported Interfaces
> 	Pathnames are "Committed", User options are "Volatile".
>
> 	Interface				Description
> 	
> ------------------------------------------------------------------------
> 	SFWpowertop				package name
> 	/usr/bin/powertop			symbolic link
> 	/usr/bin/amd64/powertop			executable
> 	/usr/bin/i386/powertop			executable
> 	/usr/bin/sparcv9/powertop		executable
> 	/usr/share/man/man1/powertop.1m		manpage (CR 6723453)
>
> 	User options:
> 	    -d, --dump [count]			Read wakeups count times
> 	    					and print list of top
> 	    					offenders
> 	    -t, --time [interval]		Default time to gather
> 	    					data in seconds [1-100s]
> 	    -v, --verbose			Verbose mode, reports
> 	    					kernel cyclic activity
> 	    -h, --help				Show this help message
>
>
>     	(b) Imported Interfaces
>          
> 	Interface		Classification	ARC case
> 	
> ------------------------------------------------------------------------
> 	DTrace			Commited	PSARC/2001/466 DTrace
> 	libkstat		Commited	
> 	/etc/power.conf		Commited	PSARC/1992/202 Power
> 						Management
>
> 	(c) Release Binding
>
> 		Micro/Patch
>
>     4.6. Dependencies:
>     
> 	DTrace probes introduced in snv82, kstat acpi_drv module (so it
> 	can report laptop battery status). Running the tool without the
> 	necessary DTrace probes causes the application to exit and
> 	output a DTrace message reporting the cause of the error.
>
> 5. Reference Documents:
>
> 	CR's 6713863, 6635705, 6643464 and man page.
>
> 	PSARC/2001/466  DTrace
> 	http://sac.sfbay/PSARC/2001/466/
>
> 	PSARC/2003/425 DTrace sdt Provider
> 	http://sac.sfbay/PSARC/2003/425/
>
> 6. Resources and Schedule:
>
>    6.1. Projected Availability:
>    
> 	Currently available through OpenSolaris.
>
>    6.2. Product Approval Committee requested information:
>    
>        6.4.1. Consolidation or Component Name:
>        
> 	ON
>           
>    6.3. ARC review type:
>    
> 	Self Review
>
>   


From randyf@jurassic.eng.sun.com Wed Sep 10 13:52:18 2008
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 m8AKqHaj009091
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 10 Sep 2008 13:52:18 -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 m8AKqAqi027622;
	Wed, 10 Sep 2008 21:52:14 +0100 (BST)
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 <0K6Z00N1NZB03C00@brm-avmta-1.central.sun.com>; Wed,
 10 Sep 2008 14:52:12 -0600 (MDT)
Received: from jurassic.eng.sun.com ([129.146.226.130])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0K6Z00MKQZAXMO10@brm-avmta-1.central.sun.com>; Wed,
 10 Sep 2008 14:52:09 -0600 (MDT)
Received: from grimmy (grimmy.SFBay.Sun.COM [129.146.108.114])
	by jurassic.eng.sun.com (8.13.8+Sun/8.13.8) with SMTP id m8AKq5vS359397; Wed,
 10 Sep 2008 13:52:05 -0700 (PDT)
Date: Wed, 10 Sep 2008 13:51:58 -0700 (PDT)
From: Randy Fishel <randyf@jurassic.eng.sun.com>
Subject: Re: PSARC/2008/376 - PowerTOP_for_OpenSolaris Self Review
To: randyf@eng.sun.com, Alan.Coopersmith@sun.com
Cc: psarc-ext@sun.com, Rafael.Vanoni@sun.com
Reply-to: Randy Fishel <randyf@jurassic.eng.sun.com>
Message-id: <200809102052.m8AKq5vS359397@jurassic.eng.sun.com>
MIME-version: 1.0
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.6.2 SunOS 5.10 sun4u sparc
Content-type: text/PLAIN
Content-transfer-encoding: 7BIT
X-Sun-Text-type: ascii
X-PMX-Version: 5.4.1.325704
Status: RO
Content-Length: 603

> 
> Randy Fishel wrote:
> > 	Interface				Description
> > 	
> > ------------------------------------------------------------------------
> > 	SFWpowertop				package name
> 
> You mean SUNWpowertop, right?   (SFW* prefix packages are for the old
> Companion CD, not things integrated into Solaris/OpenSolaris.)

  Yes, that is the correct package name.

> 
> > 	/usr/bin/powertop			symbolic link
> 
> To isaexec?

  That should also be the correct symlink.

> 
> Otherwise, cool!
> 
> -- 
> 	-Alan Coopersmith-           alan.coopersmith@sun.com
> 	 Sun Microsystems, Inc. - X Window System Engineering

From daleg@elemental.org Wed Sep 10 22:50:20 2008
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 m8B5oJDG026646
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 10 Sep 2008 22:50:20 -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 m8B5oCcp019258;
	Thu, 11 Sep 2008 06:50:15 +0100 (BST)
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 <0K7000K01O7P8Z00@nwk-avmta-1.sfbay.Sun.COM>; Wed,
 10 Sep 2008 22:50:13 -0700 (PDT)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0K7000GAPO7PZC40@nwk-avmta-1.sfbay.Sun.COM>; Wed,
 10 Sep 2008 22:50:13 -0700 (PDT)
Received: from relay23.sun.com
 (relay23.sun.com [192.12.251.54] (may be forged))	by brmea-mail-2.sun.com
 (8.13.6+Sun/8.12.9) with ESMTP id m8B5mGeG022298; Thu,
 11 Sep 2008 05:50:13 +0000 (GMT)
Received: from mms22es.mms.us.syntegra.com ([150.143.232.30] [150.143.232.30])
 by relay23i.sun.com with ESMTP id BT-MMP-3378499; Thu,
 11 Sep 2008 05:50:13 +0000 (Z)
Received: from relay22.sun.com (relay22.sun.com [192.12.251.34])
 by mms22es.mms.us.syntegra.com with ESMTP id BT-MMP-36595848; Thu,
 11 Sep 2008 05:50:12 +0000 (Z)
Received: from mercury.elemental.org ([205.134.191.194] [205.134.191.194])
 by relay22i.sun.com with ESMTP id BT-MMP-3581150; Thu,
 11 Sep 2008 05:50:12 +0000 (Z)
Received: from [192.168.1.99]
 (pool-71-163-37-180.washdc.fios.verizon.net [71.163.37.180])
	(authenticated bits=0)	by mercury.elemental.org (8.14.3/8.14.3/ELEMENTAL-4.0)
 with ESMTP id m8B5oBmG020629
	(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu,
 11 Sep 2008 01:50:11 -0400 (EDT)
Date: Thu, 11 Sep 2008 01:50:11 -0400
From: Dale Ghent <daleg@elemental.org>
Subject: Re: PSARC/2008/376 - PowerTOP_for_OpenSolaris Self Review
In-reply-to: <200809102052.m8AKq5vS359397@jurassic.eng.sun.com>
To: Randy Fishel <randyf@jurassic.eng.sun.com>
Cc: randyf@eng.sun.com, Alan.Coopersmith@sun.com, Rafael.Vanoni@sun.com,
        psarc-ext@sun.com
Message-id: <4FE3A087-72F8-40F9-87AC-B5A80F5233FD@elemental.org>
MIME-version: 1.0
X-Mailer: Apple Mail (2.928.1)
Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Greylist: Sender succeeded SMTP AUTH,
 not delayed by milter-greylist-4.0 (mercury.elemental.org [205.134.191.194]);
 Thu, 11 Sep 2008 01:50:11 -0400 (EDT)
X-Virus-Scanned: ClamAV version 0.93.1,
 clamav-milter version 0.93.1 on mercury.elemental.org
X-Virus-Status: Clean
X-Antispam: No, score=0.0/5.0, scanned in 0.046sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <200809102052.m8AKq5vS359397@jurassic.eng.sun.com>
Status: RO
Content-Length: 353

On Sep 10, 2008, at 4:51 PM, Randy Fishel wrote:

>>> 	/usr/bin/powertop			symbolic link
>>
>> To isaexec?
>
>  That should also be the correct symlink.

not to nit pick, but just toss out a observation in passing... I am  
under the impression that links to isaexec are typically  
(traditionally?) hard links, not symbolic ones. Am I off-base?

/dale

From Norm.Jacobs@sun.com Wed Sep 10 23:07:48 2008
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 m8B67laD027233
	for <psarc-ext@sac.sfbay.Sun.COM>; Wed, 10 Sep 2008 23:07:47 -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 m8B67dpx021306
	for <@sunmail2sca.sfbay.sun.com:psarc-ext@Sun.COM>; Thu, 11 Sep 2008 14:07:46 +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 <0K7000M05P0S8900@nwk-avmta-1.sfbay.Sun.COM> for psarc-ext@Sun.COM
 (ORCPT psarc-ext@Sun.COM); Wed, 10 Sep 2008 23:07:40 -0700 (PDT)
Received: from dm-sfbay-02.sfbay.sun.com ([129.146.11.31])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0K7000GBSP0RZC70@nwk-avmta-1.sfbay.Sun.COM> for
 psarc-ext@Sun.COM (ORCPT psarc-ext@Sun.COM); Wed,
 10 Sep 2008 23:07:39 -0700 (PDT)
Received: from printing.eng.sun.com (printing.SFBay.Sun.COM [129.146.178.26])
	by dm-sfbay-02.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.2)
 with ESMTP id m8B67aZZ024489; Wed, 10 Sep 2008 23:07:36 -0700 (PDT)
Received: from [10.7.251.237] (punchin-jacobs.SFBay.Sun.COM [10.7.251.237])
	by printing.eng.sun.com (8.14.3+Sun/8.14.3) with ESMTP id m8B69Fhi015351; Wed,
 10 Sep 2008 23:09:15 -0700 (PDT)
Date: Thu, 11 Sep 2008 01:07:28 -0500
From: Norm Jacobs <Norm.Jacobs@sun.com>
Subject: Re: PSARC/2008/376 - PowerTOP_for_OpenSolaris Self Review
In-reply-to: <4FE3A087-72F8-40F9-87AC-B5A80F5233FD@elemental.org>
To: Dale Ghent <daleg@elemental.org>
Cc: Randy Fishel <randyf@jurassic.eng.sun.com>, randyf@eng.sun.com,
        Alan.Coopersmith@sun.com, Rafael.Vanoni@sun.com, psarc-ext@sun.com
Message-id: <48C8B5A0.6010706@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200809102052.m8AKq5vS359397@jurassic.eng.sun.com>
 <4FE3A087-72F8-40F9-87AC-B5A80F5233FD@elemental.org>
User-Agent: Thunderbird 2.0.0.14 (X11/20080728)
Status: RO
Content-Length: 539

Dale Ghent wrote:
> On Sep 10, 2008, at 4:51 PM, Randy Fishel wrote:
>
>>>>     /usr/bin/powertop            symbolic link
>>>
>>> To isaexec?
>>
>>  That should also be the correct symlink.
>
> not to nit pick, but just toss out a observation in passing... I am 
> under the impression that links to isaexec are typically 
> (traditionally?) hard links, not symbolic ones. Am I off-base?
No you are not.  Because isaexec uses getexecname() to get the pathname 
of the executable, they have to be hard links for it to work.

       -Norm


From Darren.Moffat@Sun.COM Thu Sep 11 03:08:43 2008
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 m8BA8gXO003599
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 11 Sep 2008 03:08:42 -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 m8BA8b7J010636
	for <@sunmail2sca.sfbay.sun.com:psarc-ext@sun.com>; Thu, 11 Sep 2008 11:08:40 +0100 (BST)
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 <0K710030106GQI00@nwk-avmta-2.sfbay.sun.com> for psarc-ext@sun.com
 (ORCPT psarc-ext@sun.com); Thu, 11 Sep 2008 03:08:40 -0700 (PDT)
Received: from gmp-eb-inf-2.sun.com ([192.18.6.24])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0K7100JLK06FZ280@nwk-avmta-2.sfbay.sun.com> for
 psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Thu,
 11 Sep 2008 03:08:39 -0700 (PDT)
Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11])
	by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m8BA8c9H017561	for
 <psarc-ext@sun.com>; Thu, 11 Sep 2008 10:08:38 +0000 (GMT)
Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 id <0K7000F01X0MRN00@fe-emea-10.sun.com>
 (original mail from Darren.Moffat@Sun.COM)
 for psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Thu,
 11 Sep 2008 11:08:38 +0100 (BST)
Received: from [129.156.173.199] by fe-emea-10.sun.com
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTPSA id <0K7100431068UCA0@fe-emea-10.sun.com>; Thu,
 11 Sep 2008 11:08:33 +0100 (BST)
Date: Thu, 11 Sep 2008 11:08:32 +0100
From: Darren J Moffat <Darren.Moffat@Sun.COM>
Subject: Re: PSARC/2008/376 - PowerTOP_for_OpenSolaris Self Review
In-reply-to: <200809102052.m8AKq5vS359397@jurassic.eng.sun.com>
Sender: Darren.Moffat@Sun.COM
To: Randy Fishel <randyf@jurassic.eng.sun.com>
Cc: randyf@eng.sun.com, Alan.Coopersmith@Sun.COM, psarc-ext@Sun.COM,
        Rafael.Vanoni@Sun.COM
Message-id: <48C8EE20.1050505@Sun.COM>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200809102052.m8AKq5vS359397@jurassic.eng.sun.com>
User-Agent: Thunderbird 2.0.0.14 (X11/20080714)
Status: RO
Content-Length: 641

Randy Fishel wrote:
>> Randy Fishel wrote:
>>> 	Interface				Description
>>> 	
>>> ------------------------------------------------------------------------
>>> 	SFWpowertop				package name
>> You mean SUNWpowertop, right?   (SFW* prefix packages are for the old
>> Companion CD, not things integrated into Solaris/OpenSolaris.)
> 
>   Yes, that is the correct package name.
> 
>>> 	/usr/bin/powertop			symbolic link
>> To isaexec?
> 
>   That should also be the correct symlink.

The links to isaexec are delivered as hardlinks not symlinks (76 of them 
on SPARC and 95 on x86).  I don't remember the reason why though.

-- 
Darren J Moffat

From carlsonj@phorcys.east.sun.com Thu Sep 11 04:45:44 2008
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 m8BBji1H005901
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 11 Sep 2008 04:45:44 -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.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id m8BBjfpv022404;
	Thu, 11 Sep 2008 04:45:41 -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 <0K71008054O42300@nwk-avmta-2.sfbay.sun.com>; Thu,
 11 Sep 2008 04:45:40 -0700 (PDT)
Received: from phorcys.east.sun.com ([129.148.174.143])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0K71007004O3AH10@nwk-avmta-2.sfbay.sun.com>; Thu,
 11 Sep 2008 04:45:39 -0700 (PDT)
Received: from phorcys.east.sun.com (localhost [127.0.0.1])
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3) with ESMTP id m8BBjcd2004556; Thu,
 11 Sep 2008 07:45:38 -0400 (EDT)
Received: (from carlsonj@localhost)
	by phorcys.east.sun.com (8.14.3+Sun/8.14.3/Submit) id m8BBjcmK004553; Thu,
 11 Sep 2008 07:45:38 -0400 (EDT)
Date: Thu, 11 Sep 2008 07:45:38 -0400
From: James Carlson <james.d.carlson@sun.com>
Subject: Re: PSARC/2008/376 - PowerTOP_for_OpenSolaris Self Review
In-reply-to: <48C8EE20.1050505@Sun.COM>
To: Darren J Moffat <Darren.Moffat@sun.com>
Cc: Rafael.Vanoni@sun.com, psarc-ext@sun.com, Alan.Coopersmith@sun.com,
        randyf@eng.sun.com
Message-id: <18633.1250.435326.339031@gargle.gargle.HOWL>
MIME-version: 1.0
X-Mailer: VM 7.01 under Emacs 21.3.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
References: <200809102052.m8AKq5vS359397@jurassic.eng.sun.com>
 <48C8EE20.1050505@Sun.COM>
Status: RO
Content-Length: 760

Darren J Moffat writes:
> Randy Fishel wrote:
> >   That should also be the correct symlink.
> 
> The links to isaexec are delivered as hardlinks not symlinks (76 of them 
> on SPARC and 95 on x86).  I don't remember the reason why though.

The reason is because it doesn't work.

  # cd /usr/bin
  # cp echo amd64/foobar
  # ln -s /usr/lib/isaexec foobar
  # foobar hello
  foobar: cannot find/execute "isaexec" in ISA subdirectories
  # rm foobar
  # ln /usr/lib/isaexec foobar
  # foobar hello
  hello
  # 

A hard link is required.

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

