#!/usr/bin/env bash last=$(( $(nproc) - 1 )) (for N in $(seq 0 $last); do echo "$(cat /sys/devices/system/cpu/cpu${N}/acpi_cppc/highest_perf) ${N}" done) | sort -n