Commit cbda39d5 authored by Zi Yan's avatar Zi Yan

guess CPU frequency from lscpu.

Signed-off-by: Zi Yan's avatarZi Yan <ziy@nvidia.com>
parent 5ae7bd53
......@@ -2,7 +2,11 @@
EXCHANGE_METHOD="u64 per_page"
CPU_FREQ_MHZ=2600
# CPU_FREQ_MHZ=2600 # if the cpu is 2600MHz
# The following might only work on Intel CPUs.
CPU_FREQ_MHZ=$(lscpu | grep GHz | awk '{print $NF}' | cut -d"G" -f 1)
CPU_FREQ_MHZ=$(echo ${CPU_FREQ_MHZ}*1000|bc)
echo "Throughput (GB/s)"
echo "|2mb_page_order|0 |1 |2 |3 |4 |5 |6 |7 |8 |9"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment