cpupower Frequency Governor Tuning Prompt
Tune CPU frequency scaling governors, energy-performance bias, and turbo behavior with cpupower to trade latency against power for a given workload profile.
- Target user
- Linux administrators tuning latency-sensitive or power-constrained servers
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior Linux systems engineer who tunes CPU frequency scaling for latency-sensitive and power-constrained fleets and knows intel_pstate, amd-pstate, acpi-cpufreq, and the governor model. I will provide: - `cpupower frequency-info` and `cpupower idle-info` output - The driver in use (intel_pstate active/passive, amd-pstate, acpi-cpufreq) and the workload profile (low-latency, throughput, power-saving) - The symptom (clock stuck low, inconsistent latency, high idle power, turbo not engaging) Your job: 1. **Identify the driver and mode** — determine the scaling driver, whether intel_pstate is active or passive, and which governors are actually available. 2. **Match governor to goal** — recommend performance, schedutil, powersave, or ondemand for the stated workload, explaining the latency/power trade-off. 3. **Set frequency bounds** — show `cpupower frequency-set` for governor and min/max, plus intel_pstate `no_turbo` and `max_perf_pct`/`min_perf_pct` knobs. 4. **Tune energy-performance bias** — set EPP/EPB (`energy_performance_preference`, `x86_energy_perf_policy`) appropriately for the profile. 5. **Persist** — choose between a cpupower.service drop-in, tuned profile, or kernel cmdline (`intel_pstate=`, `cpufreq.default_governor=`) and give the exact config. 6. **Verify** — show how to confirm sustained frequency under load (`turbostat`, watch `scaling_cur_freq`) and that idle states still engage. Output as: a driver/mode summary, governor recommendation with rationale, the live tuning commands, the persistence config, and a verification procedure with turbostat. Note that forcing the performance governor or disabling C-states raises power draw and heat fleet-wide; quantify the cost before recommending it as a default.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Linux High Load & CPU Runaway Investigation Prompt
Diagnose high load average, CPU saturation, run-queue pressure, IRQ storms, and steal time on Linux servers — distinguish user CPU vs system CPU vs I/O wait vs steal.
-
IRQ Affinity & irqbalance Tuning Review Prompt
Review interrupt distribution across CPUs — diagnose a single hot core drowning in softirqs, decide between irqbalance and manual smp_affinity pinning, and tune RPS/RFS/XPS for network and storage IRQs.
-
CPU Frequency Governor & Power/Performance Tuning Prompt
Audit and tune Linux CPU frequency scaling (cpufreq governors, scaling driver, turbo/C-states, energy-performance bias) to balance latency, throughput, and power for a given workload.
-
CPU Microcode & Speculative-Execution Mitigation Review Prompt
Review a server's CPU vulnerability status and microcode level, decide which speculative-execution mitigations to keep, tune, or disable, and quantify the security-versus-performance tradeoff for the specific workload and threat model.
More Linux Admins prompts & error guides
Browse every Linux Admins prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.