Skip to content

Commit

Permalink
Enhance cstate single cpu turbo frequency function
Browse files Browse the repository at this point in the history
Signed-off-by: qwang59 <[email protected]>
  • Loading branch information
qwang59 committed Aug 23, 2024
1 parent 2e1bc06 commit 4be6264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BM/cstate/powermgr_cstate_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ verify_single_cpu_freq() {
turbo_on=$(cat "$cpu_no_turbo_mode")

test_print_trc "Executing stress -c 1 -t 90 & in background"
taskset -c 1 stress -c 1 -t 90 &
taskset -c 0 stress -c 1 -t 90 &
stress_pid=$!

cpu_stat_debug=$(turbostat -i 1 sleep 1 2>&1)
Expand All @@ -796,7 +796,7 @@ verify_single_cpu_freq() {

current_freq=$(echo "$cpu_stat" |
awk '{for(k=0;++k<=NF;)a[k]=a[k]?a[k] FS $k:$k} END{for(k=0;k++<NF;)print a[k]}' |
grep "Bzy_MHz" | awk -F " " '{print $2}')
grep "Bzy_MHz" | awk -F " " '{print $3}')
do_cmd "do_kill_pid $stress_pid"
test_print_trc "current freq: $current_freq"
test_print_trc "max freq: $max_freq"
Expand Down

0 comments on commit 4be6264

Please sign in to comment.