Comment 23 for bug 774947

Revision history for this message
Jeff Lane  (bladernr) wrote :

Colin:

The stress test uses the "stress" tool found in the package of the same name in universe.

so 'apt-get install stress' should get it for you.

As for the actual runtime parameters used:

stress --cpu `cpuinfo_resource | awk '/count:/ {print $2}'` --vm `awk '/MemTotal/ {num_vm = $2/262144; if (num_vm != int(num_vm)) num_vm = int(num_vm) + 1; print num_vm}' /proc/meminfo` --timeout 7200

From the man page for 'stress':
--cpu N spawn N workers spinning on sqrt()
--vm N spawn N workers spinning on malloc()/free()