Skip to content

Instantly share code, notes, and snippets.

View nrobinaubertin's full-sized avatar

Niels Robin-Aubertin nrobinaubertin

View GitHub Profile
@wmealing
wmealing / C-states.md
Last active November 19, 2024 19:47
What are CPU "C-states" and how to disable them if needed?

To limit a CPU to a certain C-state, you can pass the processor.max_cstate=X option in the kernel line of /boot/grub/grub.conf.

Here we limit the system to only C-State 1:

    kernel /vmlinuz-2.6.18-371.1.2.el5 ... processor.max_cstate=1

On some systems, the kernel can override the BIOS setting, and the parameter intel_idle.max_cstate=0 may be required to ensure sleep states are not entered: