• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

cpufreq-set Command Examples in Linux

by Deepika

The cpufreq-set command is a utility in Linux that is used to adjust the CPU frequency scaling settings of a system. CPU frequency scaling is the process of adjusting the speed at which a CPU is able to process instructions in order to save energy or improve performance.

To set the CPU frequency to a specific value, use the following command:

# cpufreq-set -f FREQUENCY -c CPU

This will set the frequency of the specified CPU to the specified value.

cpufrequtils Command Examples

1. Set the CPU frequency policy of CPU 1 to “userspace”:

# sudo cpufreq-set -c 1 -g userspace

2. Set the current minimum CPU frequency of CPU 1:

# sudo cpufreq-set -c 1 --min min_frequency

3. Set the current maximum CPU frequency of CPU 1:

# sudo cpufreq-set -c 1 --max max_frequency

4. Set the current work frequency of CPU 1:

# sudo cpufreq-set -c 1 -f work_frequency

Filed Under: Linux

Some more articles you might also be interested in …

  1. pmap: command not found
  2. gradle: command not found
  3. Oracle OS watcher (OSWatcher) – Understanding oswmpstat
  4. understanding “yum history” command output
  5. How To Configure Timeout On SSH Client Putty
  6. How to Access VNC Server Through A Web Browser in Linux
  7. ark Command Examples in Linux
  8. How to Convert Ext File Systems to Btrfs
  9. How to find which rpm package provides a specific file or library in RHEL / CentOS
  10. How to Log dropped packets using firewalld in CentOS/RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright