Forrest logo
back to the cpufreq-set tool

cpufreq-set:tldr:bd725

cpufreq-set: Set the current minimum CPU frequency of CPU 1.
$ sudo cpufreq-set -c ${1} --min ${min_frequency}
try on your machine

This command is used to set the minimum frequency of the CPU (Central Processing Unit) on a Linux system. Here's a breakdown of the different parts of the command:

  • sudo: It is used to execute the subsequent command as a superuser or root user. This is necessary because changing CPU frequency settings typically requires administrative privileges.

  • cpufreq-set: It is a command-line tool that allows you to modify the CPU frequency settings.

  • -c ${1}: It specifies the CPU core for which you want to set the frequency. The ${1} here refers to the first command-line argument passed to the script or command. For example, if you run the command as command.sh 2, it will set the frequency for the CPU core 2.

  • --min ${min_frequency}: This option sets the minimum frequency for the specified CPU core. The ${min_frequency} represents the value of the minimum frequency you want to set for the CPU. You need to replace ${min_frequency} with the desired value.

By running this command with appropriate values for ${1} and ${min_frequency}, you can adjust the minimum frequency of the CPU core and control its power and performance behavior.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the cpufreq-set tool