Merge "Modify grafana config for TC037_Network Latency, Throughput, Packet Loss and...
[yardstick.git] / yardstick / benchmark / scenarios / availability / ha_tools / node / stress_cpu.bash
1 #!/bin/bash
2
3 ##############################################################################
4 # (c) OPNFV, Yin Kanglin and others.
5 # 14_ykl@tongji.edu.cn
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 # stress CPU usage to 100%.
13
14 for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done