Overview

 This is the central location for all things PowerTOP testing-related.

Status

  1. 06-11-08 - Bugs/issues with PowerTOP are still being discovered.
  2. 06-11-08 - A preliminary test plan for PowerTOP has been developed but is in its infancy and will be changed in the weeks to come.
  3. 06-11-08 - An initial attempt at assertions is underway and a non-exhaustive list should be presented soon.

Test Plan

Section I - Introduction

  1. ===== Author(s):
  2. ===== Revision History|=Date (yyyy-mm-dd)|=Revision|=Comments|=Status
2008-03-060.1Initial draftComplete
2008-06-110.2Revised in light of newer features to PowerTOP and add references to manual testing.Complete
2008-06-230.3Fixed typos, add dependency information, clarify term definitions.Complete
  1. ===== References
  2. ===== Glossary
     P-state - A level of frequency in which the processor operates, which increments and decrements depending upon demand. Specific to x86.
     residency - A percentage of time how long a processor stays in a given C-state.
     wakeup - The action of a CPU being brought out of a C-state

Section 2 - Operational Factors

  1. ===== Project Dependencies
     cyclic-{start,end} and cpu-change-speed probes
     DTrace(7D) user privileges
     cpu_info kstat(3KSTAT) module
  2. ===== Risks
  3. ===== Assumptions

Section 3 - Test Program Operational Plan

  1. ===== Functional Testing
  2. ===== Stress Testing
  3. ===== Performance Regression Testing
  4. ===== Performance Benefit Resting
  5. ===== Functional Regression Testing

Section 4 - Test Development Information

  1. ===== Test Development|=Test Name|=Automated/Manual|=Test Type|=Project Component|=Description
ptop_testAutomatedFunctionalCommand Line InterfaceThis test suite shall verify the functionality of the various (combined with -d) options PowerTOP utilizes and that the output is correct.
ptop_manualManualFunctional/StressCommand Line InterfaceWithout the -d option, PowerTOP will display information that updates every  seconds, so this will need to be monitored manually. Also, some behavior (i.e. multiple instances of PowerTOP) is better tested manually to be efficient.

Section 5 - Areas of Testing

  1. ===== Functional Testing
  2. ===== Regression Testing
     STC2 cpupm
  3. ===== Conformance Testing
  4. ===== Stress/Robustness Testing
     psrset stress
     togproc (online/offline) stress
  5. ===== Performance Testing
  6. ===== Zones Testing
  7. ===== Interoperability Testing
  8. ===== Documentation Testing

Section 6 - Test Execution

  1. ===== Hardware Test Configurations
  2. ===== Software Test Configurations
  3. ===== Pre-Integration (PIT) Run
  4. ===== Test Execution Matrix

Observations

    1. 01-29-08 - There is no documentation for PowerTOP save a sparse man page available off of lesswatts.org. Resolved
    2. 01-29-08 - Executing PowerTOP with -d and -time  results in no output under "Top causes for wakeups" and skewed statistics. Resolved 03-05-08, usage error
    3. 01-29-08 - PowerTOP "works" with inappropriate options such as -1, -1d, -1l, *, ]. Resolved
# powertop -1 -d
powertop: illegal option ~-- 1
Solaris PowerTOP 1.0   (C) 2007 Intel Corporation 
Collecting data for 5 seconds 
Cn                      Avg     residency
C0 (cpu running)                (48.4%)
C1                      2.4ms   (51.6%)
P-states (frequencies)
2191 Mhz        100.0%
Wakeups-from-idle per second: 440.4     interval: 5.0s
Top causes for wakeups:
22.8% (100.2)             :unix`cbe_hres_tick  
.
.
    • Updated 03-05-08. Resolved
    1. 01-29-08 - PowerTOP accepts large values but doesn't really do much and wraps. Resolved
# ./powertop -t 100000000000000
Solaris PowerTOP 1.0   (C) 2007 Intel Corporation
Collecting data for -2147483648 seconds
    1. 01-29-08 - zero or characters used as sub-options to -t or --time causes PowerTOP to rapidly spew illegible data. Resolved
    2. 03-05-08 - pressing the "P" key to enable power management seems to do nothing (may be expected at this time). Resolved
    3. 03-05-08 - pressing any key during powertop activity causes interval time to shrink and doesn't return to time specified by user or the default time interval. Resolved
    4. 05-22-08 - PowerTop works with options such as "2", "patb", "l", "-", and so on. It doesn't appear to do anything with them.
    5. 05-22-08 - any keystroke, with the exception of 'q', causes PowerTOP to refresh.
    6. 05-22-08 - "Successfull" should be "Successful" in the man page under "EXIT STATUS."
    7. 05-22-08 - The man page indicates that not all wakeups are listed by PowerTOP but doesn't specify which wakeups are being displayed. Is there a maximum number?
    8. 05-23-08 - PowerTOP executed with no options should use 5 seconds for a time interval. It does for the first iteration, but then uses 8 seconds for each iteration thereafter.
    9. 05-23-08 - Multiple PowerTOP instances experience time intervals fluctuating between < 1 sec. and 11-16 seconds.
Tags:
Created by admin on 2009/10/26 12:17
Last modified by admin on 2009/10/26 13:12

Collectives

Project


© 2010, Oracle Corporation and/or its affiliates
XWiki Enterprise 2.1.1.25889 - Documentation
Terms Of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines | Site map | Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
Oracle