Skip to content

Instantly share code, notes, and snippets.

@dhensen
Created January 28, 2025 23:38
Show Gist options
  • Save dhensen/37a9cf1bddb62db8317a28091a2d9c1c to your computer and use it in GitHub Desktop.
Save dhensen/37a9cf1bddb62db8317a28091a2d9c1c to your computer and use it in GitHub Desktop.
Script that prints scaling driver, governor and EPP hint currently being used. I only care about cpu0.
#!/bin/bash
set -x
# Scaling driver
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
# for example: amd-pstate-epp
# Scaling governor
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# for example: performance
# EPP hint
cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference
# for example: performance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment