< Back
Start-CPUStressTest
Post
NAME Start-CPUStressTest
SYNOPSIS
Start a CPU stress test
SYNTAX
Start-CPUStressTest [[-loadPct] <Int32>] [[-CPUs] <Object>] [-Priority <Object>] [<CommonParameters>]
DESCRIPTION
Start a CPU stress test. It is possible to choose a specific load percentage and a specific number of CPUs to
target.
PARAMETERS
-CPUs <Object>
Number of CPUs to test. Windows distributes the workload, but usualy each job gets its own CPU assigned. If
the CPUs number is higher then the actual amount of CPUs, the number is reduced to the actual number of CPUs
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-loadPct <Int32>
The amount of load to put on the CPUs. If set to 50 %, each job will do $i++ ???? second and then sleep for ????
second. If set to 100, the jobs will do $i++ continously
Required? false
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Priority <Object>
Job priority can be set according to possibilities. Make sure that the scope that starts and stops the test
has a higher Priority then the priority on the stress test if both loadPct and CPUs is maxed out. If not, it
might be nessesary to close the console running the test or even reboot the machine to stop the test.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Object
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Start-CPUStressTest -loadPct 50 -CPUs 4
Starts 4 Jobs that calculates $++ for ???? second and then sleeps for ???? second until the jobs are removed, usualy by
Stop-CPUStressTest
RELATED LINKS
SYNOPSIS
Start a CPU stress test
SYNTAX
Start-CPUStressTest [[-loadPct] <Int32>] [[-CPUs] <Object>] [-Priority <Object>] [<CommonParameters>]
DESCRIPTION
Start a CPU stress test. It is possible to choose a specific load percentage and a specific number of CPUs to
target.
PARAMETERS
-CPUs <Object>
Number of CPUs to test. Windows distributes the workload, but usualy each job gets its own CPU assigned. If
the CPUs number is higher then the actual amount of CPUs, the number is reduced to the actual number of CPUs
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-loadPct <Int32>
The amount of load to put on the CPUs. If set to 50 %, each job will do $i++ ???? second and then sleep for ????
second. If set to 100, the jobs will do $i++ continously
Required? false
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Priority <Object>
Job priority can be set according to possibilities. Make sure that the scope that starts and stops the test
has a higher Priority then the priority on the stress test if both loadPct and CPUs is maxed out. If not, it
might be nessesary to close the console running the test or even reboot the machine to stop the test.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Object
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Start-CPUStressTest -loadPct 50 -CPUs 4
Starts 4 Jobs that calculates $++ for ???? second and then sleeps for ???? second until the jobs are removed, usualy by
Stop-CPUStressTest
RELATED LINKS