Out of the box, Linux operating systems are designed to be energy efficient. To save power and reduce heat, the kernel utilizes scaling governors that constantly throttle your CPU frequencies up and down through various P-states (performance states) and C-states (power-saving sleep states).
For standard web hosting or background data processing, this default behavior is perfectly fine. However, for latency-sensitive applications—such as High-Frequency Trading (HFT) platforms, VoIP servers, or competitive multiplayer game servers hosted on iDatam dedicated servers—these power-saving measures are catastrophic.
When a CPU core enters a deep sleep state (like C3 or C6), it takes precious microseconds for that core to "wake up" and process a newly arrived network packet. In the world of real-time compute, those microsecond delays compound, resulting in unacceptable network jitter, lag spikes, and dropped ticks. The solution is to bypass the Linux scaling governor, disable deep sleep C-states at the kernel level, and lock your Intel or AMD processors at their maximum turbo frequency for true zero-latency compute.
What You'll Learn
Understanding C-States and the "Wake-Up" Penalty
Step 1: Installing cpupower and tuned
Step 2: Monitoring Current CPU Frequencies
Step 3: Setting the CPU Governor for Maximum Performance
Step 4: Disabling Deep Sleep C-States via GRUB
Understanding C-States and the "Wake-Up" Penalty
Modern processors are incredibly complex power managers. When a core has no immediate work, the OS instructs it to halt and enter a C-state.
C0: The active state. The CPU is executing instructions.
C1/C1E: The halt state. The CPU clock is stopped, but the core retains its cache. It can wake up almost instantly.
C3/C6 and beyond: Deep sleep states. The core flushes its L1/L2 cache and powers down completely.
The deeper the sleep state, the more power is saved. However, the exit latency (the time it takes to return to C0 to process a task) grows exponentially. By locking the server in C0/C1 and forcing the CPU frequency governor to "performance," we trade power efficiency for absolute, predictable responsiveness.
Step 1: Installing cpupower and tuned
To take control of your CPU, we need two utilities: cpupower (to inspect and manipulate CPU frequency) and tuned (a daemon that dynamically adapts the OS for specific performance profiles).
Install on Ubuntu/Debian
sudo apt update
sudo apt install linux-tools-common linux-tools-generic tuned -y
Install on CentOS/RHEL/AlmaLinux
sudo dnf install kernel-tools tuned -y
Enable and start the tuned service so it runs automatically on boot:
sudo systemctl enable --now tuned
Step 2: Monitoring Current CPU Frequencies
Before making changes, let's observe how the CPU is currently behaving. You can use the watch command to view your CPU core frequencies fluctuating in real-time as they throttle up and down.
watch -n 1 "grep 'cpu MHz' /proc/cpuinfo"
To see which governor is currently in charge (usually powersave or ondemand), run:
cpupower frequency-info
Take note of the "current policy" block. It will tell you the minimum and maximum frequencies, as well as the active governor causing the fluctuations.
Step 3: Setting the CPU Governor for Maximum Performance
Instead of manually tweaking dozens of kernel parameters, the tuned-adm utility provides pre-configured enterprise profiles. For real-time applications, we want the network-latency or latency-performance profile.
List the available profiles:
tuned-adm list
Apply the latency-performance profile. This profile automatically disables power-saving mechanisms, forces the CPU frequency governor to performance, and locks the CPU at the highest possible P-state.
sudo tuned-adm profile latency-performance
Verify that the profile is active:
tuned-adm active
Now, re-run cpupower frequency-info. You should see that the active governor is now set to performance, and your CPU cores should be sitting at their maximum clock speed.
Step 4: Disabling Deep Sleep C-States via GRUB
While tuned handles the frequency scaling (P-states), the processor can still occasionally attempt to enter deep sleep C-states. To strictly forbid the CPU from going into anything deeper than C1, we must pass instructions directly to the kernel at boot.
Edit your GRUB configuration file:
sudo nano /etc/default/grub
Locate the GRUB_CMDLINE_LINUX_DEFAULT line and append the following parameters:
processor.max_cstate=1 intel_idle.max_cstate=1
(Note: intel_idle.max_cstate=1 applies to Intel CPUs. If you are using an AMD EPYC processor, processor.max_cstate=1 handles the limitation).
Your line should look something like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash processor.max_cstate=1 intel_idle.max_cstate=1"
Update GRUB to apply the changes
For Ubuntu/Debian:
sudo update-grub
For CentOS/RHEL:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Finally, reboot your server for the kernel parameters to take effect:
sudo reboot
Conclusion
By combining the latency-performance profile in tuned with strict C-state kernel parameters, you have successfully transformed your server into a zero-latency powerhouse. The CPUs will now run hotter and draw more power, but they will never "fall asleep" on the job. For financial trading nodes, VoIP, and competitive game servers, eliminating this CPU jitter guarantees the smooth, uninterrupted compute performance that your users demand.
iDatam Recommended Tutorials
Cpu
Troubleshooting: 'CPU Over Temperature Error' After Bootup
Learn how to troubleshoot and resolve the 'CPU Over Temperature Error' issue after bootup. Follow step-by-step instructions to check CPU cooler fans, reapply thermal paste, restore BIOS settings, and more.
Dedicated Server
Why Is Your Dedicated Server Slowing Down? Tips on How to Fix It
Discover why your dedicated server is slowing down and learn practical tips to resolve performance issues, ensuring optimal speed and reliability.
Dedicated Server
Optimize a Dedicated Server for High-Speed Solana RPC Node
Discover the 2026 hardware specs, kernel optimizations, and NVMe disk setups required to stay at the network tip.
Discover iDatam Dedicated Server Locations
iDatam servers are available around the world, providing diverse options for hosting websites. Each region offers unique advantages, making it easier to choose a location that best suits your specific hosting needs.