Sleep_Stress_With_IO

The Sleep_Stress_With_IO script (Sleep_Stress_With_IO.wsf) uses the Microsoft Windows Device Testing Framework (WDTF) to expose devices to power management stress testing. This script also runs simple I/O stress tests on all the specified devices as soon as the system has resumed from sleep mode.

    Cscript Sleep_Stress_With_IO.wsf 
        [/Devices:
    Devices
    ] 
        [/MinutesToRun:
    MinutesToRun
    ] 
        [/SleepPeriod:
    SleepPeriod
    ] 
        [/MinIOPeriod:
    MinIOPeriod
    ] 
        [/MaxIOPeriod:
    MaxIOPeriod
    ] 
        [/ResumeDelay:
    ResumeDelay
    ] 
        [/RandomSeed:
    RandomSeed
    ]
   

Parameters

  • Devices
    This is an optional parameter and is used to specify one or more device hardware IDs or classes to run the simple I/O stress tests on. If this parameter is not specified, the script runs the I/O stress tests on all devices that currently support the SimpleIO interface.

  • MinutesToRun
    This is an optional parameter and specifies the minimum number of minutes that the script will run. If this parameter is not specified, the default MinutesToRun value is 30.

    Note  The script continues to run past the MinutesToRun interval time if the CyclesToRun value has not been exceeded.

  • CyclesToRun
    This is an optional parameter and specifies the minimum number of cycles that the script runs. If this parameter is not specified, the default CyclesToRun value is 12.

    Note  The script continues to run past the CyclesToRun value if the MinutesToRun interval has not yet been exceeded.

  • SleepPeriod
    This is an optional parameter and specifies the number of seconds that the real-time clock (RTC) wake timer is set to every time that the system goes into sleep mode. When the SleepPeriod interval is exceeded, the system is resumed.

    If this parameter is not specified, the default SleepPeriod value is 45 seconds.

  • MinIOPeriod
    This is an optional parameter and specifies the minimum number of milliseconds that the simple I/O stress tests run during each cycle.

    If this parameter is not specified, the default MinIOPeriod value is 1000.

  • MaxIOPeriod
    This is an optional parameter and specifies the maximum number of milliseconds that the simple I/O stress tests run during each cycle.

    If this parameter is not specified, the default MaxIOPeriod value is 20000.

  • ResumeDelay
    This is an optional parameter and specifies the delay, in milliseconds, after the system resumes from sleep before the next simple I/O stress test is started. This parameter is useful for those devices that have to restore their working state following a system resume. For example, this parameter can be used to provide network devices with enough time to renew their IP addresses.

    If this parameter is not specified, the default ResumeDelay value is 10000.

  • RandomSeed
    This is an optional parameter and is used to specify a RandomSeed value that was used previously. This lets developers try to reproduce a specific run.

    If this parameter is not specified, the default RandomSeed value is selected based on the current system time.

    Note  The random seed that was used during each run of a test is reported in the trace log. For more information, see Creating WDTF Scenarios.

    Note  The RandomSeed parameter is not currently used by WDTF.

The Sleep_Stress_With_IO script runs tests on specified devices or device setup classes. By default, the script runs tests for all devices of every device setup class that is present on the system.

As an option, the tests can be limited to specific classes or to specific devices by using the /Devices parameter. Devices are specified by using device identifiers (IDs). Device setup classes are specified by using the class name as defined in Device Setup Classes.

The /Devices parameter must be in the format of a Simple Data Evaluation Language (SDEL) query.

Example

The following command-line runs the Sleep_Stress_With_IO script only on multimedia devices that are present and enabled on the system. In this example, the tests run a maximum of twp times with a sleep period of 25 seconds:

Cscript Common_Scenario_Stress_With_IO.wsf /Devices:"Class='MEDIA'" /CyclesToRun:2 /SleepPeriod:45

 

 

Send comments about this topic to Microsoft

Build date: 1/30/2012