Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the Core C6 residency case #225

Merged
merged 1 commit into from
May 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions BM/cstate/powermgr_cstate_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,14 @@ test_server_all_cpus_deepest_cstate() {
all_deepest_cstate=$(echo "$turbostat_output" |
awk '{for(i=0;++i<=NF;)a[i]=a[i]?a[i] FS $i:$i} END{for(i=0;i++<=NF;)print a[i]}' | grep "CPU%c6")
test_print_trc "The deepest core cstate is: $all_deepest_cstate"
if [[ $all_deepest_cstate =~ $unexpected_cstate ]]; then
die "CPU core did not enter the deepest cstate!"
if [[ -z $all_deepest_cstate ]]; then
block_test "The CPUs cstate is not available."
elif [[ $all_deepest_cstate =~ $unexpected_cstate ]] && [[ ! "$all_deepest_cstate" == *"100.00"* ]]; then
test_print_trc "Getting CPU C6 state by reading MSR 0x3fd:"
rdmsr -a 0x3fd
die "The CPU Core did not enter the deepest cstate!"
else
test_print_trc "All the CPU enter the deepest cstate!"
test_print_trc "All the CPUs core enter the deepest cstate!"
fi
}

Expand Down
Loading