diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-14 14:49:51 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-14 14:49:51 +0200 |
commit | 0cd78674904b3a27cc18682095a0f51446cded90 (patch) | |
tree | 64d258e782e34d9955901cf39079228b5cfe57e1 /units/stress | |
parent | 0ae5b46e8d86811d07200998bf78186970a27a98 (diff) |
p-p-r:bin:cpuinfo_resource -> cpuinfo_resource.py
Diffstat (limited to 'units/stress')
-rw-r--r-- | units/stress/jobs.pxu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/units/stress/jobs.pxu b/units/stress/jobs.pxu index 302fae3..37c9472 100644 --- a/units/stress/jobs.pxu +++ b/units/stress/jobs.pxu @@ -5,7 +5,7 @@ estimated_duration: 7200.0 requires: package.name == 'stress' user: root -command: num_vm=$(awk '/MemTotal/ {x=$2/262144; print ((x == int(x)) ? x : int(x) +1)}' /proc/meminfo); vm_bytes=$(($(awk '/MemTotal/ {print int($2/1024)}' /proc/meminfo)/$num_vm/4))M; stress --cpu `cpuinfo_resource | awk '/count:/ {print $2}'` --vm $num_vm --vm-bytes $vm_bytes --timeout 7200s +command: num_vm=$(awk '/MemTotal/ {x=$2/262144; print ((x == int(x)) ? x : int(x) +1)}' /proc/meminfo); vm_bytes=$(($(awk '/MemTotal/ {print int($2/1024)}' /proc/meminfo)/$num_vm/4))M; stress --cpu `cpuinfo_resource.py | awk '/count:/ {print $2}'` --vm $num_vm --vm-bytes $vm_bytes --timeout 7200s _description: Simulate high system load using the 'stress' tool to exercise the CPU for several hours. The test is considered passed if the system does not freeze or |