How to disable Intel Turbo Boost

There are certain situations where I disable Intel Turbo Boost, for example to keep fans quiet during the night time.

Ensure that P-State driver is works in active (governor) or passive (cpufreq) mode.

$ cat /sys/devices/system/cpu/intel_pstate/status
active

Inspect current Intel Turbo Boost status. 0 states that it is not disabled, 1 that it disabled.

$ cat /sys/devices/system/cpu/intel_pstate/no_turbo
0

Disable Intel Turbo Boost.

$ echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo

Additional information

Intel P-State driver for the SandyBridge+ Intel processors