Stress Test: mcpu

### TEST NAME

> mcpu - multiple CPU test

### SYNOPSIS

> `sh mcpu.sh`

### DESCRIPTION

> The `mcpu.sh` script performs several matrix multiplication operations to stress the CPUs in the system. The matrices used for the calculations are 1000x1000 in size. The number of simultaneous multiplication operations depends on the number of CPUs in the system. For every one CPU in the system, `mcpu.sh` executes two instances of the matrix multiplication. Each pair of instances runs for approximately 1 minute. After all of the instances have been executed, the test sleeps for 30 minutes before repeating.

> The `RUNTIME` environment variable specifies, in seconds, the duration of the test.

### SETUP

> Change the test duration by changing the value of the `RUNTIME` variable. For example, to run the test for 5 hours, calculate the total number of seconds (5*60*60=18000) and set the `RUNTIME` variable.

> >     # export RUNTIME=18000
> >     # mcpu.sh

### OUTPUT

> The `mcpu` test outputs a `!PASS` message on completion.

### POSSIBLE CONCURRENT TESTS

> This test can run concurrently with `memory` after the `flp` test finishes.

Copyright 2005 Sun Microsystems, Inc. All rights reserved.