diff options
author | rexlee8776 <limingjiang@huawei.com> | 2017-08-17 09:08:41 +0000 |
---|---|---|
committer | rexlee8776 <limingjiang@huawei.com> | 2017-08-17 10:38:06 +0000 |
commit | cdf76b78abc004fb375fe08e4465abe8f137721e (patch) | |
tree | a1f4ca6fc29d2b27454f8326f67cc87a14886c05 | |
parent | 255ae5b1e6e85f118ef42298bfbc8dce1ad1969f (diff) |
improve tc055 results
Change-Id: Ib1282c75c5f9cdc416bedf5c7a2e2d3f44c737f1
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
-rw-r--r-- | yardstick/benchmark/scenarios/compute/computecapacity.bash | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/yardstick/benchmark/scenarios/compute/computecapacity.bash b/yardstick/benchmark/scenarios/compute/computecapacity.bash index 68741a94f..d49638fe3 100644 --- a/yardstick/benchmark/scenarios/compute/computecapacity.bash +++ b/yardstick/benchmark/scenarios/compute/computecapacity.bash @@ -27,12 +27,11 @@ run_capacity() # Number of logical cores THREAD=$(grep 'processor' /proc/cpuinfo | sort -u | wc -l) # Total memory size - MEMORY=$(grep 'MemTotal' /proc/meminfo | sort -u) - ME=$(echo $MEMORY | awk '/ /{printf "%s %s", $2, $3}') + MEMORY=$(grep 'MemTotal' /proc/meminfo | sort -u | awk '{print $2}') + # Cache size per CPU - CACHE=$(grep 'cache size' /proc/cpuinfo | sort -u) - CA=$(echo $CACHE | awk '/ /{printf "%s", $4}') - CACHES=$[$CA * $CPU] + CACHE=$(grep 'cache size' /proc/cpuinfo | sort -u | awk '{print $4}') + CACHES=$[$CACHE * $CPU] HT_Value=$[$HT_Para * $CORES] if [ $HT_Value -eq $THREAD ]; then HT_OPEN=1 @@ -48,8 +47,8 @@ output_json() \"Cpu_number\":\"$CPU\", \ \"Core_number\":\"$CORES\", \ \"Thread_number\":\"$THREAD\", \ - \"Memory_size\": \"$ME\", \ - \"Cache_size\": \"$CACHES KB\", \ + \"Memory_size\": \"$MEMORY\", \ + \"Cache_size\": \"$CACHES\", \ \"HT_Open\": \"$HT_OPEN\" \ }" } |