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.

Revisions

  1. dhensen created this gist Jan 28, 2025.
    15 changes: 15 additions & 0 deletions pp.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/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